< Back

Get-AzureRmContainerRegistry

Tue Jan 29, 2019 9:40 pm

NAME Get-AzureRmContainerRegistry



SYNOPSIS

Gets a container registry.





SYNTAX

Get-AzureRmContainerRegistry [-ResourceGroupName] <String> [-Name] <String> [-DefaultProfile <IAzureContextContainer>] [-IncludeDetail]

[<CommonParameters>]



Get-AzureRmContainerRegistry [[-ResourceGroupName] <String>] [-DefaultProfile <IAzureContextContainer>] [-IncludeDetail] [<CommonParameters>]



Get-AzureRmContainerRegistry [-DefaultProfile <IAzureContextContainer>] [-IncludeDetail] -ResourceId <String> [<CommonParameters>]





DESCRIPTION

The Get-AzureRmContainerRegistry cmdlet gets a specified container registry or all the container registries in a resource group or the

subscription.





PARAMETERS

-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? false

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

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



-IncludeDetail [<SwitchParameter>]

Show more details about the container registry.



Required? false

Position? named

Default value False

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

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Commands.ContainerRegistry.PSContainerRegistry







NOTES









Example 1: Get a specified container registry



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



Container registry location: westus



Registry Name Sku LoginServer CreationDate Provisioni AdminUserE StorageAccountN

ngState nabled ame

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

myregistry Premium myregistry.azurecr.io 10/31/2017 6:49:31 PM Succeeded True



This command gets the specified container registry.





Example 2: Get all the container registries in a resource group



PS C:\\>Get-AzureRmContainerRegistry -ResourceGroupName "MyResourceGroup"



Container registry location: westus



Registry Name Sku LoginServer CreationDate Provisioni AdminUserE StorageAccountN

ngState nabled ame

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

myregistry Premium myregistry.azurecr.io 10/31/2017 6:49:31 PM Succeeded True





Container registry location: eastus



Registry Name Sku LoginServer CreationDate Provisioni AdminUserE StorageAccountN

ngState nabled ame

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

myregistry1 Premium myregistry1.azurecr.io 10/31/2017 6:29:31 PM Succeeded True



This command gets all the container registries in a resource group.





Example 3: Get all the container registries in the subscription



PS C:\\>Get-AzureRmContainerRegistry



Container registry location: westus



Registry Name Sku LoginServer CreationDate Provisioni AdminUserE StorageAccountN

ngState nabled ame

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

myregistry Premium myregistry.azurecr.io 10/31/2017 6:49:31 PM Succeeded True





Container registry location: eastus



Registry Name Sku LoginServer CreationDate Provisioni AdminUserE StorageAccountN

ngState nabled ame

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

myregistry1 Premium myregistry1.azurecr.io 10/31/2017 6:29:31 PM Succeeded True



This command gets all the container registries in the subscription.







RELATED LINKS

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

New-AzureRmContainerRegistry

Update-AzureRmContainerRegistry

Remove-AzureRmContainerRegistry