Get-AzContainerInstanceContainerGroupProfile
获取指定订阅和资源组中指定容器组配置文件的属性。
该操作返回容器组配置文件的属性,包括容器、映像注册表凭据、重启策略、IP 地址类型、OS 类型、卷、当前修订号等。
语法
List (默认值)
Get-AzContainerInstanceContainerGroupProfile
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get1
Get-AzContainerInstanceContainerGroupProfile
-Name <String>
-ResourceGroupName <String>
-RevisionNumber <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get
Get-AzContainerInstanceContainerGroupProfile
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
List1
Get-AzContainerInstanceContainerGroupProfile
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
GetViaIdentity1
Get-AzContainerInstanceContainerGroupProfile
-InputObject <IContainerInstanceIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
GetViaIdentity
Get-AzContainerInstanceContainerGroupProfile
-InputObject <IContainerInstanceIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
获取指定订阅和资源组中指定容器组配置文件的属性。
该操作返回容器组配置文件的属性,包括容器、映像注册表凭据、重启策略、IP 地址类型、OS 类型、卷、当前修订号等。
示例
示例 1:列出当前订阅中的所有容器组配置文件
Get-AzContainerInstanceContainerGroupProfile
Location Name Zone ResourceGroupName
-------- ---- ---- -----------------
eastus test-cgp1 test-rg
eastus test-cgp2 test-rg
此命令获取当前订阅中的所有容器组配置文件。
示例 2:获取资源组中的容器组配置文件
Get-AzContainerInstanceContainerGroupProfile -ResourceGroupName test-rg
Location Name Zone ResourceGroupName
-------- ---- ---- -----------------
eastus test-cgp1 test-rg
eastus test-cgp2 test-rg
该命令获取资源组 test-rg中的容器组配置文件。
示例 3:获取特定的容器组配置文件
Get-AzContainerInstanceContainerGroupProfile -Name test-cgp1 -ResourceGroupName test-rg | Format-List
ConfidentialComputeProperty : {}
ConfidentialComputePropertyCcePolicy :
Container : {test-container}
Diagnostic : {}
DiagnosticLogAnalytic : {}
EncryptionProperty : {}
EncryptionPropertyIdentity :
EncryptionPropertyKeyName :
EncryptionPropertyKeyVersion :
EncryptionPropertyVaultBaseUrl :
Extension :
IPAddress : {
"type": "Public"
}
IPAddressAutoGeneratedDomainNameLabelScope :
IPAddressDnsNameLabel :
IPAddressFqdn :
IPAddressIP :
IPAddressPort :
IPAddressType : Public
Id : /subscriptions/00000000-0000-0000-0000-000000000000
0/resourceGroups/test-rg/providers/Microsoft.Contai
nerInstance/containerGroupProfiles/test-cgp1
ImageRegistryCredentials :
InitContainer : {}
Location : eastus
LogAnalyticLogType :
LogAnalyticMetadata : {
}
LogAnalyticWorkspaceId :
LogAnalyticWorkspaceKey :
LogAnalyticWorkspaceResourceId :
Name : test-cgp1
NetworkProfileId :
OSType : Linux
ResourceGroupName : test-rg
RestartPolicy : Never
Revision : 1
Sku : Standard
Tag : {}
Type : Microsoft.ContainerInstance/containerGroupProfiles
Volume :
该命令获取指定的容器组配置文件。
示例 4:获取资源组中容器组配置文件的特定修订
Get-AzContainerInstanceContainerGroupProfile -Name test-cgp -ResourceGroupName test-rg -RevisionNumber 1 | Format-List
ConfidentialComputeProperty : {}
ConfidentialComputePropertyCcePolicy :
Container : {test-container}
Diagnostic : {}
DiagnosticLogAnalytic : {}
EncryptionProperty : {}
EncryptionPropertyIdentity :
EncryptionPropertyKeyName :
EncryptionPropertyKeyVersion :
EncryptionPropertyVaultBaseUrl :
Extension :
IPAddress : {
"type": "Public"
}
IPAddressAutoGeneratedDomainNameLabelScope :
IPAddressDnsNameLabel :
IPAddressFqdn :
IPAddressIP :
IPAddressPort :
IPAddressType : Public
Id : /subscriptions/00000000-0000-0000-0000-000000000000
0/resourceGroups/test-rg/providers/Microsoft.Contai
nerInstance/containerGroupProfiles/test-cgp1
ImageRegistryCredentials :
InitContainer : {}
Location : eastus
LogAnalyticLogType :
LogAnalyticMetadata : {
}
LogAnalyticWorkspaceId :
LogAnalyticWorkspaceKey :
LogAnalyticWorkspaceResourceId :
Name : test-cgp
NetworkProfileId :
OSType : Linux
ResourceGroupName : test-rg
RestartPolicy : Never
Revision : 1
Sku : Standard
Tag : {}
Type : Microsoft.ContainerInstance/containerGroupProfiles
Volume :
该命令获取资源组test-cgp中容器组配置文件test-rg的第一个修订版。
参数
-DefaultProfile
DefaultProfile 参数不起作用。
如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。
参数属性
| 类型: | PSObject
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
| 别名: | AzureRMContext, AzureCredential |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
要构造的标识参数,请参阅 INPUTOBJECT 属性的 NOTES 部分并创建哈希表。
GetViaIdentity1
| Position: | Named |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
GetViaIdentity
| Position: | Named |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-Name
容器组配置文件的名称。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
| 别名: | ContainerGroupProfileName |
参数集
Get1
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
Get
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ResourceGroupName
资源组的名称。
此名称不区分大小写。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
Get1
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
Get
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
List1
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-RevisionNumber
容器组配置文件的修订号。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
Get1
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-SubscriptionId
目标订阅的 ID。
该值必须是 UUID。
参数属性
| 类型: | String[]
|
| 默认值: | (Get-AzContext).Subscription.Id |
| 支持通配符: | False |
| 不显示: | False |
参数集
List
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
Get1
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
Get
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
List1
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。
输出