New-AzContainerGroupImageRegistryCredentialObject

Create a in-memory object for ImageRegistryCredential

Syntax

New-AzContainerGroupImageRegistryCredentialObject
   -Server <String>
   [-AcrIdentity <String>]
   [-Password <SecureString>]
   [-Username <String>]
   [<CommonParameters>]

Description

Create a in-memory object for ImageRegistryCredential

Examples

Example 1: Set up an image registry credential to create a container group

New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password (ConvertTo-SecureString "******" -AsPlainText -Force)

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

ImageRegistryCredential

Notes

ALIASES