Get-AzureRmContainerRegistryCredential

Gets the login credentials for a container registry.

Syntax

Get-AzureRmContainerRegistryCredential
   [-ResourceGroupName] <String>
   [-Name] <String>
   [<CommonParameters>]
Get-AzureRmContainerRegistryCredential
   -Registry <PSContainerRegistry>
   [<CommonParameters>]

Description

The Get-AzureRmContainerRegistryCredential cmdlet gets the login credentials for a container registry.

Examples

Example 1: Get the login credentials for a container registry

PS C:\>Get-AzureRmContainerRegistryCredential -ResourceGroupName "MyResourceGroup" -Name "MyRegistry"

Username   Password                         Password2
--------   --------                         ---------
MyRegistry +Y+==B==KdT=YV=ZgH=p/zQ/e1sNQq/d //JRPkgxx+r+z/ztU=R//E==vum=pRKL

This command gets the login credentials for the specified container registry. Admin user has to be enabled for the container registry MyRegistry to get login credentials.

Required Parameters

-Name

Container Registry Name.

Type:String
Aliases:ContainerRegistryName, RegistryName, ResourceName
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Registry

Container Registry Object.

Type:PSContainerRegistry
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ResourceGroupName

Resource Group Name.

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

PSContainerRegistry

Parameter 'Registry' accepts value of type 'PSContainerRegistry' from the pipeline

Outputs

Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryCredential