ArmContainerRegistryModelFactory.ContainerRegistryImportSource 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.
Initializes a new instance of ContainerRegistryImportSource.
public static Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryImportSource ContainerRegistryImportSource (Azure.Core.ResourceIdentifier resourceId = default, string registryAddress = default, Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryImportSourceCredentials credentials = default, string sourceImage = default);
static member ContainerRegistryImportSource : Azure.Core.ResourceIdentifier * string * Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryImportSourceCredentials * string -> Azure.ResourceManager.ContainerRegistry.Models.ContainerRegistryImportSource
Public Shared Function ContainerRegistryImportSource (Optional resourceId As ResourceIdentifier = Nothing, Optional registryAddress As String = Nothing, Optional credentials As ContainerRegistryImportSourceCredentials = Nothing, Optional sourceImage As String = Nothing) As ContainerRegistryImportSource
Parameters
- resourceId
- ResourceIdentifier
The resource identifier of the source Azure Container Registry.
- registryAddress
- String
The address of the source registry (e.g. 'mcr.microsoft.com').
- credentials
- ContainerRegistryImportSourceCredentials
Credentials used when importing from a registry uri.
- sourceImage
- String
Repository name of the source image. Specify an image by repository ('hello-world'). This will use the 'latest' tag. Specify an image by tag ('hello-world:latest'). Specify an image by sha256-based manifest digest ('hello-world@sha256:abc123').
Returns
A new ContainerRegistryImportSource instance for mocking.
Applies to
Azure SDK for .NET