Get-AzContainerRegistry

Gets a container registry.

Syntax

Get-AzContainerRegistry
   [[-ResourceGroupName] <String>]
   [-IncludeDetail]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzContainerRegistry
   [-ResourceGroupName] <String>
   [-Name] <String>
   [-IncludeDetail]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzContainerRegistry
   [-IncludeDetail]
   -ResourceId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

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

Examples

Example 1: Get a specified container registry

Get-AzContainerRegistry -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

Get-AzContainerRegistry -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

Get-AzContainerRegistry

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.

Parameters

-DefaultProfile

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

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-IncludeDetail

Show more details about the container registry.

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

-Name

Container Registry Name.

Type:String
Aliases:ContainerRegistryName, RegistryName, ResourceName
Position:1
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

-ResourceGroupName

Resource Group Name.

Type:String
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

-ResourceId

The container registry resource id

Type:String
Aliases:Id
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String

Outputs

PSContainerRegistry