Compartir a través de


ComputeBatchModelFactory.ContainerRegistryReference Method

Definition

A private container registry.

public static Azure.Compute.Batch.ContainerRegistryReference ContainerRegistryReference(string username = default, string password = default, Uri registryServerUri = default, Azure.Compute.Batch.BatchNodeIdentityReference identityReference = default);
static member ContainerRegistryReference : string * string * Uri * Azure.Compute.Batch.BatchNodeIdentityReference -> Azure.Compute.Batch.ContainerRegistryReference
Public Shared Function ContainerRegistryReference (Optional username As String = Nothing, Optional password As String = Nothing, Optional registryServerUri As Uri = Nothing, Optional identityReference As BatchNodeIdentityReference = Nothing) As ContainerRegistryReference

Parameters

username
String

The user name to log into the registry server.

password
String

The password to log into the registry server.

registryServerUri
Uri

The registry URL. If omitted, the default is "docker.io".

identityReference
BatchNodeIdentityReference

The reference to the user assigned identity to use to access an Azure Container Registry instead of username and password.

Returns

A new ContainerRegistryReference instance for mocking.

Applies to