你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzVMwarePrivateCloud
获取 PrivateCloud
语法
Get-AzVMwarePrivateCloud
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzVMwarePrivateCloud
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzVMwarePrivateCloud
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzVMwarePrivateCloud
-InputObject <IVMwareIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
获取 PrivateCloud
示例
示例 1:列出订阅下的私有云
Get-AzVMwarePrivateCloud
Location Name Type
-------- ---- ----
australiaeast azps_test_cloud Microsoft.AVS/privateClouds
列出订阅下的私有云
示例 2:列出资源组下的私有云
Get-AzVMwarePrivateCloud -ResourceGroupName azps_test_group
Location Name Type ResourceGroupName
-------- ---- ---- -----------------
australiaeast azps_test_cloud Microsoft.AVS/privateClouds azps_test_group
列出资源组下的私有云
示例 3:按名称获取私有云
Get-AzVMwarePrivateCloud -ResourceGroupName azps_test_group -Name azps_test_cloud
Location Name Type ResourceGroupName
-------- ---- ---- -----------------
australiaeast azps_test_cloud Microsoft.AVS/privateClouds azps_test_group
按名称获取私有云
参数
-DefaultProfile
DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。
类型: | PSObject |
别名: | AzureRMContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-InputObject
标识参数
类型: | IVMwareIdentity |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Name
私有云的名称
类型: | String |
别名: | PrivateCloudName |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
资源组的名称。 名称不区分大小写。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-SubscriptionId
目标订阅的 ID。 该值必须是 UUID。
类型: | String[] |
Position: | Named |
默认值: | (Get-AzContext).Subscription.Id |
必需: | False |
接受管道输入: | False |
接受通配符: | False |