< Back

Update-AzureRmContainerRegistry

Tue Jan 29, 2019 9:41 pm

NAME Update-AzureRmContainerRegistry



SYNOPSIS

Updates a container registry.





SYNTAX

Update-AzureRmContainerRegistry [-ResourceGroupName] <String> [-Name] <String> -DisableAdminUser [-StorageAccountName <String>] [-Tag <Hashtable>]

[-Confirm] [-WhatIf] [-DefaultProfile <IAzureContextContainer>] [-Sku <String>] [<CommonParameters>]



Update-AzureRmContainerRegistry -DisableAdminUser [-StorageAccountName <String>] [-Tag <Hashtable>] [-Confirm] [-WhatIf] [-DefaultProfile

<IAzureContextContainer>] -ResourceId <String> [-Sku <String>] [<CommonParameters>]



Update-AzureRmContainerRegistry [-ResourceGroupName] <String> [-Name] <String> -EnableAdminUser [-StorageAccountName <String>] [-Tag <Hashtable>]

[-Confirm] [-WhatIf] [-DefaultProfile <IAzureContextContainer>] [-Sku <String>] [<CommonParameters>]



Update-AzureRmContainerRegistry -EnableAdminUser [-StorageAccountName <String>] [-Tag <Hashtable>] [-Confirm] [-WhatIf] [-DefaultProfile

<IAzureContextContainer>] -ResourceId <String> [-Sku <String>] [<CommonParameters>]



Update-AzureRmContainerRegistry [-ResourceGroupName] <String> [-Name] <String> [-StorageAccountName <String>] [-Tag <Hashtable>] [-Confirm]

[-WhatIf] [-DefaultProfile <IAzureContextContainer>] [-Sku <String>] [<CommonParameters>]



Update-AzureRmContainerRegistry [-StorageAccountName <String>] [-Tag <Hashtable>] [-Confirm] [-WhatIf] [-DefaultProfile <IAzureContextContainer>]

-ResourceId <String> [-Sku <String>] [<CommonParameters>]





DESCRIPTION

The Update-AzureRmContainerRegistry cmdlet updates a container registry.





PARAMETERS

-DisableAdminUser [<SwitchParameter>]

Enable admin user for the container registry.



Required? true

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-EnableAdminUser [<SwitchParameter>]

Enable admin user for the container registry.



Required? true

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Container Registry Name.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Resource Group Name.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-StorageAccountName <String>

The name of an existing storage account.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Tag <Hashtable>

Key-value pairs in the form of a hash table. For example:



@{key0="value0";key1=$null;key2="value2"}



Required? false

Position? named

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



-Sku <String>

Container Registry SKU.



Required? false

Position? named

Default value None

Accept pipeline input? False

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

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry







NOTES









Example 1: Enable admin user for a specified container registry



PS C:\\>Update-AzureRmContainerRegistry -ResourceGroupName "MyResourceGroup" -Name "MyRegistry" -EnableAdminUser



Container registry location: eastus



Registry Name Sku LoginServer CreationDate Provisioni AdminUserE StorageAccountName

ngState nabled

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

MyRegistry Basic myregistry.azurecr.io 11/20/2017 10:05:... Succeeded True



This command enables admin user for the specified container registry.





Example 2: Set the storage account used by a specified container registry



PS C:\\>Update-AzureRmContainerRegistry -ResourceGroupName "MyResourceGroup" -Name "MyRegistry" -StorageAccountName "mystorageaccount"



Container registry location: eastus



Registry Name Sku LoginServer CreationDate Provisioni AdminUserE StorageAccountName

ngState nabled

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

MyRegistry Basic myregistry.azurecr.io 11/20/2017 10:05:... Succeeded True mystorageaccount



This command sets the specified container registry to use an existing storage account `mystorageaccount` in the same subscription.







RELATED LINKS

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

New-AzureRmContainerRegistry

Get-AzureRmContainerRegistry

Remove-AzureRmContainerRegistry