< Back

Update-AzureRmContainerRegistryCredential

Tue Jan 29, 2019 9:41 pm

NAME Update-AzureRmContainerRegistryCredential



SYNOPSIS

Regenerates a login credential for a container registry.





SYNTAX

Update-AzureRmContainerRegistryCredential [-ResourceGroupName] <String> [-Name] <String> -PasswordName {Password | Password2} [-Confirm] [-WhatIf]

[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]



Update-AzureRmContainerRegistryCredential -PasswordName {Password | Password2} -Registry <PSContainerRegistry> [-Confirm] [-WhatIf]

[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]



Update-AzureRmContainerRegistryCredential -PasswordName {Password | Password2} [-Confirm] [-WhatIf] [-DefaultProfile <IAzureContextContainer>]

-ResourceId <String> [<CommonParameters>]





DESCRIPTION

The Update-AzureRmContainerRegistryCredential cmdlet regenerates a login credential 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



-PasswordName <PasswordName>

The name of password to regenerate. Allowed values: password, password2.



Required? true

Position? named

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? True (ByValue)

Accept wildcard characters? false



-ResourceGroupName <String>

Resource Group Name.



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

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: Regenerate a login credential for a container registry



PS C:\\>Update-AzureRmContainerRegistryCredential -ResourceGroupName "MyResourceGroup" -Name "MyRegistry" -PasswordName "Password"



Username Password Password2

-------- -------- ---------

MyRegistry ++q/=K9+RH/+hwg2+3A=N+/w=J/12Ph9 //JRPkgxx+r+z/ztU=R//E==vum=pRKL



This command regenerates a login credential for the specified container registry. Admin user has to be enabled for the container registry

`MyRegistry` to regenerate login credentials.







RELATED LINKS

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

New-AzureRmContainerRegistry

Update-AzureRmContainerRegistry

Get-AzureRmContainerRegistryCredential