Get-AzContainerRegistry
Gets the properties of the specified container registry.
Syntax
List2 (Default)
Get-AzContainerRegistry
[-SubscriptionId <String[]>]
[-IncludeDetail]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
List1
Get-AzContainerRegistry
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-IncludeDetail]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get
Get-AzContainerRegistry
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-IncludeDetail]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
GetViaIdentity
Get-AzContainerRegistry
-InputObject <IContainerRegistryIdentity>
[-IncludeDetail]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Gets the properties of the specified container registry.
Examples
Example 1: Get a specified container registry
Get-AzContainerRegistry -ResourceGroupName "MyResourceGroup" -Name "MyRegistry"
Name SkuName LoginServer CreationDate ProvisioningState AdminUserEnabled
---- ------- ----------- ------------ ----------------- ----------------
testc Premium testc.azurecr.io 16/01/2023 8:45:50 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"
Name SkuName LoginServer CreationDate ProvisioningState AdminUserEnabled
---- ------- ----------- ------------ ----------------- ----------------
testc2 Premium testc2.azurecr.io 17/01/2023 3:47:50 pm Succeeded True
testc Premium testc.azurecr.io 16/01/2023 8:45:50 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
Name SkuName LoginServer CreationDate ProvisioningState AdminUserEnabled
---- ------- ----------- ------------ ----------------- ----------------
testc2 Premium testc2.azurecr.io 17/01/2023 3:47:50 pm Succeeded True
testc Premium testc.azurecr.io 16/01/2023 8:45:50 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.
Parameter properties
Type: PSObject
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzureRMContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-IncludeDetail
Usage of an azure container registry.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
GetViaIdentity
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-Name
The name of the container registry.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Aliases: RegistryName, ResourceName, ContainerRegistryName
Parameter sets
Get
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ResourceGroupName
The name of the resource group.
The name is case insensitive.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
List1
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Get
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-SubscriptionId
The ID of the target subscription.
The value must be an UUID.
Parameter properties
Type: String [ ]
Default value: (Get-AzContext).Subscription.Id
Supports wildcards: False
DontShow: False
Parameter sets
List2
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
List1
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Get
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs