You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-vmware/create-placement-policy.md
+7-26Lines changed: 7 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Create placement policy
3
3
description: Learn how to create a placement policy in Azure VMware Solution to control the placement of virtual machines (VMs) on hosts within a cluster through the Azure portal.
4
4
ms.topic: how-to
5
5
ms.service: azure-vmware
6
-
ms.date: 12/07/2023
6
+
ms.date: 1/8/2024
7
7
ms.custom: engagement-fy23
8
8
9
9
#Customer intent: As an Azure service administrator, I want to control the placement of virtual machines on hosts within a cluster in my private cloud.
@@ -14,10 +14,7 @@ ms.custom: engagement-fy23
14
14
15
15
In Azure VMware Solution, clusters in a private cloud are a managed resource. As a result, the CloudAdmin role can't make certain changes to the cluster from the vSphere Client, including the management of Distributed Resource Scheduler (DRS) rules.
16
16
17
-
The placement policy feature is available in all Azure VMware Solution regions.
18
-
Placement policies let you control the placement of virtual machines (VMs) on hosts within a cluster through the Azure portal.
19
-
When you create a placement policy, it includes a DRS rule in the specified vSphere cluster.
20
-
It also includes other logic for interoperability with Azure VMware Solution operations.
17
+
The placement policy feature is available in all Azure VMware Solution regions. Placement policies let you control the placement of virtual machines (VMs) on hosts within a cluster through the Azure portal. When you create a placement policy, it includes a DRS rule in the specified vSphere cluster. It also includes other logic for interoperability with Azure VMware Solution operations.
21
18
22
19
A placement policy has at least five required components:
23
20
@@ -31,12 +28,10 @@ A placement policy has at least five required components:
31
28
32
29
-**Virtual machine** - Defines the VMs and hosts for the policy. Depending on the type of rule you create, your policy might require you to specify some number of VMs and hosts. For more information, see [Placement policy types](#placement-policy-types).
33
30
34
-
35
31
## Prerequisite
36
32
37
33
You must have _Contributor_ level access to the private cloud to manage placement policies.
38
34
39
-
40
35
## Placement policy types
41
36
42
37
### VM-VM policies
@@ -49,7 +44,6 @@ The assignment of hosts isn't required or permitted for this policy type.
49
44
50
45
-**VM-VM Anti-Affinity** policies instruct DRS to try keeping the specified VMs apart from each other on separate hosts. It's useful in availability scenarios where a problem with one host doesn't affect multiple VMs within the same policy.
51
46
52
-
53
47
### VM-Host policies
54
48
55
49
**VM-Host** policies specify if selected VMs can run on selected hosts. To avoid interference with platform-managed operations such as host maintenance mode and host replacement, **VM-Host** policies in Azure VMware Solution are always preferential (also known as "should" rules). Accordingly, **VM-Host** policies [may not be honored in certain scenarios](https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.resmgmt.doc/GUID-793013E2-0976-43B7-9A00-340FA76859D0.html). For more information, see [Monitor the operation of a policy](#monitor-the-operation-of-a-policy).
@@ -62,24 +56,20 @@ In addition to choosing a name and cluster for the policy, a **VM-Host** policy
62
56
63
57
-**VM-Host Anti-Affinity** policies instruct DRS to try running the specified VMs on hosts other than the ones defined.
64
58
65
-
66
59
## Considerations
67
60
68
-
### Cluster scalein
61
+
### Cluster scale-in
69
62
70
63
Azure VMware Solution attempts to prevent certain DRS rule violations from occurring when performing cluster scale-in operations.
71
64
72
65
You can't remove the last host from a VM-Host policy. However, if you need to remove the last host from the policy, you can remediate it by adding another host to the policy before removing the host from the cluster. Alternatively, you can delete the placement policy before removing the host.
73
66
74
67
You can't have a VM-VM Anti Affinity policy with more VMs than the number of hosts in a cluster. If removing a host results in fewer hosts in the cluster than VMs, you receive an error preventing the operation. You can remediate it by first removing VMs from the rule and then removing the host from the cluster.
75
68
76
-
77
69
### Rule conflicts
78
70
79
71
If DRS rule conflicts are detected when you create a VM-VM policy, it results in that policy being created in a disabled state following standard [VMware DRS Rule behavior](https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.resmgmt.doc/GUID-69C738B6-5FC8-4189-9CB5-DD90A5A05979.html). For more information on viewing rule conflicts, see [Monitor the operation of a policy](#monitor-the-operation-of-a-policy).
80
72
81
-
82
-
83
73
## Create a placement policy
84
74
85
75
There's no defined limit to the number of policies that you create. However, the more placement constraints you create, the more challenging it is for vSphere DRS to effectively move virtual machines within the cluster and provide the resources needed by the workloads.
@@ -92,23 +82,19 @@ Make sure to review the requirements for the [policy type](#placement-policy-typ
92
82
>You may also select the Cluster from the Placement Policy overview pane and then select **Create**.
93
83
>
94
84
95
-
96
-
97
85
1. Provide a descriptive name, select the policy type, and select the cluster where the policy is created. Then select **Enabled**.
98
86
99
87
>[!WARNING]
100
88
>If you disable the policy, then the policy and the underlying DRS rule are created, but the policy actions are ignored until you enable the policy.
101
89
102
-
103
90
1. If you selected **VM-Host affinity** or **VM-Host anti-affinity** as the type, select **+ Add hosts** and the hosts to include in the policy. You can select multiple hosts.
104
91
105
92
>[!NOTE]
106
93
>The select hosts pane shows how many VM-Host policies are associated with the host and the total number of VMs contained in those associated policies.
107
94
>
108
95
109
96
1. Select **+ Add virtual machine** and the VMs to include in the policy. You can select multiple VMs.
110
-
111
-
97
+
112
98
>[!NOTE]
113
99
>The select hosts pane shows how many VM-Host policies are associated with the host and the total number of VMs contained in those associated policies.
114
100
@@ -122,7 +108,6 @@ Make sure to review the requirements for the [policy type](#placement-policy-typ
122
108
123
109
:::image type="content" source="media/placement-policies/create-placement-policy-8.png" alt-text="Screenshot showing the placement policy as Enabled after it gets created." lightbox="media/placement-policies/create-placement-policy-8.png":::
124
110
125
-
126
111
## Edit a placement policy
127
112
128
113
You can change the state of a policy, add a new resource, or unassign an existing resource.
@@ -144,7 +129,6 @@ You can change the state of a policy to **Enabled** or **Disabled**.
144
129
145
130
1. Review the changes and select **Update policy**. If you want to make changes, select **Back: Basics**.
146
131
147
-
148
132
### Update the resources in a policy
149
133
150
134
You can add new resources, such as a VM or a host, to a policy or remove existing ones.
@@ -159,7 +143,6 @@ To add a new resource, select **Edit virtual machine** or **Edit host**, select
159
143
160
144
1. Review the changes and select **Update policy**. If you want to make changes, select **Back : Basics**.
161
145
162
-
163
146
## Delete a policy
164
147
165
148
You can delete a placement policy and its corresponding DRS rule.
@@ -198,12 +181,11 @@ Manual vMotion of the VM and automatic initial placement of the VM continues to
198
181
### Are placement policies the same as DRS affinity rules?
199
182
Yes, and no. While vSphere DRS implements the current set of policies, we simplified the experience. Modifying VM groups and Host groups are a cumbersome operation, especially as hosts are ephemeral in nature and could be replaced in a cloud environment. As hosts are replaced in the vSphere inventory in an on-premises environment, the vSphere admin must modify the host group to ensure that the desired VM-Host placement constraints remain in effect. Placement policies in Azure VMware Solution update the Host groups when a host is rotated or changed. Similarly, if you scale in a cluster, the Host Group is automatically updated, as applicable. The automatic update eliminates the overhead of managing the Host Groups for the customer.
200
183
184
+
### As this is an existing functionality available in vCenter Server, why can't I use it directly?
201
185
202
-
### As this is an existing functionality available in vCenter, why can't I use it directly?
186
+
Azure VMware Solution provides a private cloud in Azure. In this managed VMware solution infrastructure, Microsoft manages the clusters, hosts, datastores, and distributed virtual switches in the private cloud. At the same time, the tenant is responsible for managing the workloads deployed on the private cloud. As a result, the tenant administering the private cloud doesn't have the [same set of privileges](concepts-identity.md) as available to the VMware solution administrator in an on-premises deployment.
203
187
204
-
Azure VMware Solution provides a VMware private cloud in Azure. In this managed VMware infrastructure, Microsoft manages the clusters, hosts, datastores, and distributed virtual switches in the private cloud. At the same time, the tenant is responsible for managing the workloads deployed on the private cloud. As a result, the tenant administering the private cloud doesn't have the [same set of privileges](concepts-identity.md) as available to the VMware administrator in an on-premises deployment.
205
-
206
-
Further, the lack of the desired granularity in the vSphere privileges presents some challenges when managing the placement of the workloads on the private cloud. For example, vSphere DRS rules commonly used on-premises to define affinity and anti-affinity rules can't be used as-is in an Azure VMware Solution environment, as some of those rules can block day-to-day operation the private cloud. Placement Policies provides a way to define those rules using the Azure VMware Solution portal, thereby circumventing the need to use DRS rules. Coupled with a simplified experience, Placement Policies ensure the rules don't impact the day-to-day infrastructure maintenance and operation activities.
188
+
Further, the lack of the desired granularity in the vSphere privileges presents some challenges when managing the placement of the workloads on the private cloud. For example, vSphere DRS rules commonly used on-premises to define affinity and anti-affinity rules can't be used as-is in an Azure VMware Solution environment, as some of those rules can block day-to-day operation the private cloud. Placement Policies provides a way to define those rules using the Azure portal, thereby circumventing the need to use DRS rules. Coupled with a simplified experience, Placement Policies ensure the rules don't impact the day-to-day infrastructure maintenance and operation activities.
207
189
208
190
### What is the difference between the VM-Host affinity policy and Restrict VM movement?
209
191
@@ -216,4 +198,3 @@ The VM-Host **MUST** rules aren't supported because they block maintenance opera
216
198
VM-Host **SHOULD** rules are preferential rules, where vSphere DRS tries to accommodate the rules to the extent possible. Occasionally, vSphere DRS may vMotion VMs subjected to the VM-Host **SHOULD** rules to ensure that the workloads get the resources they need. It's a standard vSphere DRS behavior, and the Placement policies feature doesn't change the underlying vSphere DRS behavior.
217
199
218
200
If you create conflicting rules, those conflicts can show up on the vCenter Server, and the newly defined rules might not take effect. It's a standard vSphere DRS behavior, the logs for which can be observed in the vCenter Server.
0 commit comments