Skip to content
DocsTry Aspire
DocsTry

asHostedAgent

Method
📦 Aspire.Hosting.Foundry v13.4.0-preview.1.26281.18
interface ContainerResource {
// ... omitted for brevity
asHostedAgent(
project: AzureCognitiveServicesProjectResource,
options?: HostedAgentOptions): IResourceWithEndpoints;
}

Signature

methodasHostedAgentbuilder
Configures the resource to run and publish as a hosted agent in Microsoft Foundry, targeting the specified Foundry project.
asHostedAgent(
project: AzureCognitiveServicesProjectResource,
options?: HostedAgentOptions): IResourceWithEndpoints
projectAzureCognitiveServicesProjectResource
optionsHostedAgentOptionsoptional
IResourceWithEndpoints

Applies to

This method applies to the following types: