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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure PowerShell