The privateClouds/clusters/placementPolicies resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.AVS/privateClouds/clusters/placementPolicies resource, add the following JSON to your template.
{
"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
}
}
Set the type property to specify the type of object.
For VmHost, use:
"type": "VmHost",
"affinityStrength": "string",
"affinityType": "string",
"azureHybridBenefitType": "string",
"hostMembers": [ "string" ],
"vmMembers": [ "string" ]
For VmVm, use:
"type": "VmVm",
"affinityType": "string",
"vmMembers": [ "string" ]
Name | Description | Value |
---|---|---|
type | The resource type | 'Microsoft.AVS/privateClouds/clusters/placementPolicies' |
apiVersion | The resource api version | '2022-05-01' |
name | The resource name See how to set names and types for child resources in JSON ARM templates. |
string (required) |
properties | placement policy properties | PlacementPolicyProperties |
Name | Description | Value |
---|---|---|
displayName | Display name of the placement policy | string |
state | Whether the placement policy is enabled or disabled | 'Disabled' 'Enabled' |
type | Set the object type | VmHost VmVm (required) |
Name | Description | Value |
---|---|---|
type | placement policy type | 'VmHost' (required) |
affinityStrength | vm-host placement policy affinity strength (should/must) | 'Must' 'Should' |
affinityType | placement policy affinity type | 'Affinity' 'AntiAffinity' (required) |
azureHybridBenefitType | placement policy azure hybrid benefit opt-in type | 'None' 'SqlHost' |
hostMembers | Host members list | string[] (required) |
vmMembers | Virtual machine members list | string[] (required) |
Name | Description | Value |
---|---|---|
type | placement policy type | 'VmVm' (required) |
affinityType | placement policy affinity type | 'Affinity' 'AntiAffinity' (required) |
vmMembers | Virtual machine members list | string[] (required) |