ProjectsAgentsModelFactory.ContainerConfiguration(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Container-based deployment configuration for a hosted agent.
public static Azure.AI.Projects.Agents.ContainerConfiguration ContainerConfiguration(string image = default, string registryConnectionId = default);
static member ContainerConfiguration : string * string -> Azure.AI.Projects.Agents.ContainerConfiguration
Public Shared Function ContainerConfiguration (Optional image As String = Nothing, Optional registryConnectionId As String = Nothing) As ContainerConfiguration
Parameters
- image
- String
The container image for the hosted agent.
- registryConnectionId
- String
The id (or name) of the Foundry project connection that provides the credentials used to
authenticate to the private container registry hosting image. The connection abstracts the
auth mechanism — for example a managed-identity-federated token exchange, or a username/token
secret — so registry credentials are never part of the agent definition. Omit for public images
or registries already reachable by the platform's default identity (for example, Azure Container Registry).
Returns
A new ContainerConfiguration instance for mocking.