Get-AzContainerRegistry
語法
List2 (預設值)
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
範例
範例 1:取得指定的容器登錄
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
此命令會取得指定的容器登錄。
範例 2:取得資源群組中的所有容器登錄
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
此指令會取得資源群組中的所有儲存器登錄。
範例 3:取得訂用帳戶中的所有容器登錄
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
此命令會取得訂閱中的所有容器登錄。
參數
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
參數屬性
| 類型: | PSObject
|
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
| 別名: | AzureRMContext, AzureCredential |
參數集
(All)
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-IncludeDetail
Azure 容器登錄的使用方式。
參數屬性
參數集
(All)
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
GetViaIdentity
| Position: | Named |
| 必要: | True |
| 來自管線的值: | True |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-Name
容器登錄的名稱。
參數屬性
| 類型: | String
|
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
| 別名: | 登錄名稱, 資源名稱, ContainerRegistryName |
參數集
Get
| Position: | Named |
| 必要: | True |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-ResourceGroupName
資源群組的名稱。
名稱不區分大小寫。
參數屬性
| 類型: | String
|
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
List1
| Position: | Named |
| 必要: | True |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
Get
| Position: | Named |
| 必要: | True |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-SubscriptionId
目標訂用帳戶的標識碼。
此值必須是 UUID。
參數屬性
| 類型: | String[]
|
| 預設值: | (Get-AzContext).Subscription.Id |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
List2
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
List1
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
Get
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
CommonParameters
此 cmdlet 支援常見參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters。
輸出