AzureHostedAgentResource
Class net8.0
A Microsoft Foundry hosted agent resource.
namespace Aspire.Hosting.Foundry;
public class AzureHostedAgentResource : Aspire.Hosting.ApplicationModel.Resource, Aspire.Hosting.ApplicationModel.IComputeResource, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithEnvironment{ // ...} ResourceIComputeResourceIResourceIResourceWithEnvironment
8 members
Constructors1
Section titled ConstructorsAzureHostedAgentResource(string, IResource, Action<HostedAgentConfiguration>) Creates a new instance of the
AzureHostedAgentResource class. Properties4
Section titled PropertiesConfigureget; setAction<HostedAgentConfiguration> Configuration action to customize the hosted agent definition during deployment.
ImagegetContainerImageReference The fully qualified image name for the hosted agent.
TargetgetIResource The target containerized workload that this hosted agent deploys.
VersiongetStaticValueProvider<string> Once deployed, the version that is assigned to this hosted agent.
Methods3
Section titled MethodsDeployAsync(PipelineStepContext, AzureCognitiveServicesProjectResource)Task<AgentVersion> Deploys the specified agent to the given Microsoft Foundry project.
PublishAsync(ManifestPublishingContext)Task Publishes the hosted agent during the manifest publishing phase.
ToHostedAgentConfigurationAsync(PipelineStepContext) Convert all dynamic values into concrete values for deployment.