< Back

Get-AzureRmContainerRegistryCredential

Tue Jan 29, 2019 9:40 pm

NAME Get-AzureRmContainerRegistryCredential



SYNOPSIS

Gets the login credentials for a container registry.





SYNTAX

Get-AzureRmContainerRegistryCredential [-ResourceGroupName] <String> [-Name] <String> [-DefaultProfile <IAzureContextContainer>]

[<CommonParameters>]



Get-AzureRmContainerRegistryCredential -Registry <PSContainerRegistry> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]



Get-AzureRmContainerRegistryCredential [-DefaultProfile <IAzureContextContainer>] -ResourceId <String> [<CommonParameters>]





DESCRIPTION

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





PARAMETERS

-Name <String>

Container Registry Name.



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Registry <PSContainerRegistry>

Container Registry Object.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceGroupName <String>

Resource Group Name.



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceId <String>

The container registry resource id



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

PSContainerRegistry

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





OUTPUTS

Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryCredential







NOTES









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.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... credential

New-AzureRmContainerRegistry

Update-AzureRmContainerRegistry

Update-AzureRmContainerRegistryCredential