Update-​Azure​Rm​Container​Registry​Credential

Regenerates a login credential for a container registry.

Syntax

Update-AzureRmContainerRegistryCredential
      [-ResourceGroupName] <String>
      [-Name] <String>
      -PasswordName <PasswordName>
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]
Update-AzureRmContainerRegistryCredential
      -PasswordName <PasswordName>
      -Registry <PSContainerRegistry>
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]

Description

The Update-AzureRmContainerRegistryCredential cmdlet regenerates a login credential for a container registry.

Examples

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.

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
-PasswordName

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

Type:PasswordName
Parameter Sets:Password, Password2
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistryCredential