Interface ContainerGroup.DefinitionStages.WithPrivateImageRegistry
- All Known Subinterfaces:
ContainerGroup.Definition,ContainerGroup.DefinitionStages.WithPrivateImageRegistryOrVolume,ContainerGroup.DefinitionStages.WithPublicOrPrivateImageRegistry
- Enclosing interface:
ContainerGroup.DefinitionStages
public static interface ContainerGroup.DefinitionStages.WithPrivateImageRegistry
The stage of the container group definition allowing to specify a private image registry.
-
Method Summary
Modifier and TypeMethodDescriptionwithPrivateImageRegistry(String server, Identity identity) Specifies the private container image registry server login for the container group.withPrivateImageRegistry(String server, String username, String password) Specifies the private container image registry server login for the container group.
-
Method Details
-
withPrivateImageRegistry
ContainerGroup.DefinitionStages.WithPrivateImageRegistryOrVolume withPrivateImageRegistry(String server, String username, String password) Specifies the private container image registry server login for the container group.- Parameters:
server- Docker image registry server, without protocol such as "http" and "https"username- the username for the private registrypassword- the password for the private registry- Returns:
- the next stage of the definition
-
withPrivateImageRegistry
ContainerGroup.DefinitionStages.WithPrivateImageRegistryOrVolume withPrivateImageRegistry(String server, Identity identity) Specifies the private container image registry server login for the container group.- Parameters:
server- Docker image registry server, without protocol such as "http" and "https"identity- the managed identity (with "acrpull" role)- Returns:
- the next stage of the definition
-