New-AzContainerGroupImageRegistryCredentialObject
Create a in-memory object for ImageRegistryCredential
Syntax
New-AzContainerGroupImageRegistryCredentialObject
-Server <String>
[-Password <SecureString>]
[-Username <String>]
[-AcrIdentity <String>]
[<CommonParameters>]
Description
Create a in-memory object for ImageRegistryCredential
Examples
Example 1: Set up an image registry credential to create a container group
$pwd = ConvertTo-SecureString -String "****" -AsPlainText -Force
New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password $pwd
Password Server Username
-------- ------ --------
****** myserver.com username
This command sets up an image registry credential to create a container group
Parameters
-AcrIdentity
The identity with access to the ACR.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Password
The password for the private registry.
Type: | SecureString |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Server
The Docker image registry server without a protocol such as "http" and "https".
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Username
The username for the private registry.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.