Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Get-AzContainerRegistry
- Module:
- Az.ContainerRegistry Module
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
-IncludeDetail
Usage of an azure container registry.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Parameter properties
| Type: | IContainerRegistryIdentity |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-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
-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
-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
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.
Inputs
IContainerRegistryIdentity
Outputs
IRegistry
Azure PowerShell
Feedback
Was this page helpful?
