共用方式為


Get-AzVMwarePlacementPolicy

取得 PlacementPolicy

語法

Get-AzVMwarePlacementPolicy
   -ClusterName <String>
   -PrivateCloudName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzVMwarePlacementPolicy
   -ClusterName <String>
   -Name <String>
   -PrivateCloudInputObject <IVMwareIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzVMwarePlacementPolicy
   -ClusterName <String>
   -Name <String>
   -PrivateCloudName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzVMwarePlacementPolicy
   -Name <String>
   -ClusterInputObject <IVMwareIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzVMwarePlacementPolicy
   -InputObject <IVMwareIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

取得 PlacementPolicy

範例

範例 1:列出私人雲端叢集的放置原則

Get-AzVMwarePlacementPolicy -ClusterName cluster1 -PrivateCloudName cloud1 -ResourceGroupName group1

Name    ResourceGroupName
----    -----------------
policy1 group1
policy2 group1

列出私人雲端叢集的放置原則

範例 2:依名稱在私人雲端叢集中取得放置原則

Get-AzVMwarePlacementPolicy -ClusterName cluster1 -Name policy1 -PrivateCloudName cloud1 -ResourceGroupName group1

Name    ResourceGroupName
----    -----------------
policy1 group1

依名稱在私人雲端叢集中取得放置原則

參數

-ClusterInputObject

Identity 參數

類型:IVMwareIdentity
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ClusterName

叢集的名稱

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-DefaultProfile

DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。

類型:PSObject
別名:AzureRMContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-InputObject

Identity 參數

類型:IVMwareIdentity
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-Name

放置原則的名稱。

類型:String
別名:PlacementPolicyName
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-PrivateCloudInputObject

Identity 參數

類型:IVMwareIdentity
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-PrivateCloudName

私人雲端的名稱

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-ResourceGroupName

資源群組的名稱。 名稱不區分大小寫。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-SubscriptionId

目標訂用帳戶的標識碼。 此值必須是 UUID。

類型:String[]
Position:Named
預設值:(Get-AzContext).Subscription.Id
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

輸出