Microsoft.AVS privateClouds/clusters/placementPolicies 2022-05-01

Bicep リソース定義

privateClouds/clusters/placementPolicies リソースの種類は、次をターゲットとする操作でデプロイできます。

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.AVS/privateClouds/clusters/placementPolicies リソースを作成するには、次の Bicep をテンプレートに追加します。

resource symbolicname 'Microsoft.AVS/privateClouds/clusters/placementPolicies@2022-05-01' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    displayName: 'string'
    state: 'string'
    type: 'string'
    // For remaining properties, see PlacementPolicyProperties objects
  }
}

PlacementPolicyProperties オブジェクト

オブジェクトの を指定するには、type プロパティを設定します。

VmHost の場合は、次を使用します。

  type: 'VmHost'
  affinityStrength: 'string'
  affinityType: 'string'
  azureHybridBenefitType: 'string'
  hostMembers: [
    'string'
  ]
  vmMembers: [
    'string'
  ]

VmVm の場合は、次の値を使用します。

  type: 'VmVm'
  affinityType: 'string'
  vmMembers: [
    'string'
  ]

プロパティ値

privateClouds/clusters/placementPolicies

名前 説明
name リソース名

Bicep で子リソースの名前と型を設定する方法を参照してください。
string (必須)
parent Bicep では、子リソースの親リソースを指定できます。 このプロパティを追加する必要があるのは、子リソースが親リソースの外部で宣言されている場合のみです。

詳細については、「 親リソースの外部の子リソース」を参照してください。
種類のリソースのシンボル名: クラスター
properties 配置ポリシーのプロパティ PlacementPolicyProperties

PlacementPolicyProperties

名前 説明
displayName 配置ポリシーの表示名 string
state 配置ポリシーが有効か無効か 'Disabled'
'Enabled'
type オブジェクトの種類を設定する VmHost
VmVm (必須)

VmHostPlacementPolicyProperties

名前 説明
type 配置ポリシーの種類 'VmHost' (必須)
affinityStrength vm-host 配置ポリシーのアフィニティ強度 (必要/必須) 'Must'
'Should'
affinityType 配置ポリシーのアフィニティの種類 'Affinity'
'AntiAffinity' (必須)
azureHybridBenefitType 配置ポリシー Azure ハイブリッド特典のオプトインの種類 'None'
'SqlHost'
hostMembers ホスト メンバーの一覧 string[] (必須)
vmMembers 仮想マシン メンバーの一覧 string[] (必須)

VmPlacementPolicyProperties

名前 説明
type 配置ポリシーの種類 'VmVm' (必須)
affinityType 配置ポリシーのアフィニティの種類 'Affinity'
'AntiAffinity' (必須)
vmMembers 仮想マシン メンバーの一覧 string[] (必須)

ARM テンプレート リソース定義

privateClouds/clusters/placementPolicies リソースの種類は、次をターゲットとする操作でデプロイできます。

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.AVS/privateClouds/clusters/placementPolicies リソースを作成するには、テンプレートに次の JSON を追加します。

{
  "type": "Microsoft.AVS/privateClouds/clusters/placementPolicies",
  "apiVersion": "2022-05-01",
  "name": "string",
  "properties": {
    "displayName": "string",
    "state": "string",
    "type": "string"
    // For remaining properties, see PlacementPolicyProperties objects
  }
}

PlacementPolicyProperties オブジェクト

オブジェクトの を指定するには、type プロパティを設定します。

VmHost の場合は、次を使用します。

  "type": "VmHost",
  "affinityStrength": "string",
  "affinityType": "string",
  "azureHybridBenefitType": "string",
  "hostMembers": [ "string" ],
  "vmMembers": [ "string" ]

VmVm の場合は、次の値を使用します。

  "type": "VmVm",
  "affinityType": "string",
  "vmMembers": [ "string" ]

プロパティ値

privateClouds/clusters/placementPolicies

名前 説明
type リソースの種類 'Microsoft.AVS/privateClouds/clusters/placementPolicies'
apiVersion リソース API のバージョン '2022-05-01'
name リソース名

JSON ARM テンプレートで子リソースの名前と型を設定する方法を参照してください。
string (必須)
properties 配置ポリシーのプロパティ PlacementPolicyProperties

PlacementPolicyProperties

名前 説明
displayName 配置ポリシーの表示名 string
state 配置ポリシーが有効か無効か 'Disabled'
'Enabled'
type オブジェクトの種類を設定する VmHost
VmVm (必須)

VmHostPlacementPolicyProperties

名前 説明
type 配置ポリシーの種類 'VmHost' (必須)
affinityStrength vm-host 配置ポリシーのアフィニティ強度 (必要/必須) 'Must'
'Should'
affinityType 配置ポリシーのアフィニティの種類 'Affinity'
'AntiAffinity' (必須)
azureHybridBenefitType 配置ポリシー Azure ハイブリッド特典のオプトインの種類 'None'
'SqlHost'
hostMembers ホスト メンバーの一覧 string[] (必須)
vmMembers 仮想マシン メンバーの一覧 string[] (必須)

VmPlacementPolicyProperties

名前 説明
type 配置ポリシーの種類 'VmVm' (必須)
affinityType 配置ポリシーのアフィニティの種類 'Affinity'
'AntiAffinity' (必須)
vmMembers 仮想マシン メンバーの一覧 string[] (必須)

Terraform (AzAPI プロバイダー) リソース定義

privateClouds/clusters/placementPolicies リソースの種類は、次をターゲットとする操作でデプロイできます。

  • リソース グループ

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.AVS/privateClouds/clusters/placementPolicies リソースを作成するには、次の Terraform をテンプレートに追加します。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.AVS/privateClouds/clusters/placementPolicies@2022-05-01"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      displayName = "string"
      state = "string"
      type = "string"
      // For remaining properties, see PlacementPolicyProperties objects
    }
  })
}

PlacementPolicyProperties オブジェクト

オブジェクトの を指定するには、type プロパティを設定します。

VmHost の場合は、次を使用します。

  type = "VmHost"
  affinityStrength = "string"
  affinityType = "string"
  azureHybridBenefitType = "string"
  hostMembers = [
    "string"
  ]
  vmMembers = [
    "string"
  ]

VmVm の場合は、次の値を使用します。

  type = "VmVm"
  affinityType = "string"
  vmMembers = [
    "string"
  ]

プロパティ値

privateClouds/clusters/placementPolicies

名前 説明
type リソースの種類 "Microsoft.AVS/privateClouds/clusters/placementPolicies@2022-05-01"
name リソース名 string (必須)
parent_id このリソースの親であるリソースの ID。 種類のリソースの ID: クラスター
properties 配置ポリシーのプロパティ PlacementPolicyProperties

PlacementPolicyProperties

名前 説明
displayName 配置ポリシーの表示名 string
state 配置ポリシーが有効か無効か "無効"
"有効"
type オブジェクトの種類を設定する VmHost
VmVm (必須)

VmHostPlacementPolicyProperties

名前 説明
type 配置ポリシーの種類 "VmHost" (必須)
affinityStrength vm-host 配置ポリシーのアフィニティ強度 (必要/必須) "Must"
"Should"
affinityType 配置ポリシーのアフィニティの種類 "Affinity"
"AntiAffinity" (必須)
azureHybridBenefitType 配置ポリシー Azure ハイブリッド特典のオプトインの種類 "None"
"SqlHost"
hostMembers ホスト メンバーの一覧 string[] (必須)
vmMembers 仮想マシン メンバーの一覧 string[] (必須)

VmPlacementPolicyProperties

名前 説明
type 配置ポリシーの種類 "VmVm" (必須)
affinityType 配置ポリシーのアフィニティの種類 "Affinity"
"AntiAffinity" (必須)
vmMembers 仮想マシン メンバーの一覧 string[] (必須)