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/virtual-machines/dedicated-hosts-how-to.md
+50-12Lines changed: 50 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ ms.date: 09/01/2021
11
11
ms.reviewer: mattmcinnes
12
12
13
13
14
+
14
15
#Customer intent: As an IT administrator, I want to learn about more about using a dedicated host for my Azure virtual machines
15
16
---
16
17
@@ -24,18 +25,23 @@ This article guides you through how to create an Azure [dedicated host](dedicate
24
25
## Limitations
25
26
26
27
- The sizes and hardware types available for dedicated hosts vary by region. Refer to the host [pricing page](https://aka.ms/ADHPricing) to learn more.
28
+
- Not all Azure VM SKUs, regions and availability zones support ultra disks, for more information about this topic, see [Azure ultra disks](disks-enable-ultra-ssd.md) . Ultra disk support for dedicated hosts is currently in preview.
27
29
- The fault domain count of the virtual machine scale set can't exceed the fault domain count of the host group.
28
30
29
31
## Create a host group
30
32
31
-
A **host group** is a resource that represents a collection of dedicated hosts. You create a host group in a region and an availability zone, and add hosts to it. When planning for high availability, there are more options. You can use one or both of the following options with your dedicated hosts:
33
+
A **host group** is a resource that represents a collection of dedicated hosts. You create a host group in a region and an availability zone, and add hosts to it. You can use one or both of the following options with your dedicated hosts to ensure high availability:
32
34
- Span across multiple availability zones. In this case, you're required to have a host group in each of the zones you wish to use.
33
35
- Span across multiple fault domains, which are mapped to physical racks.
34
36
35
37
In either case, you need to provide the fault domain count for your host group. If you don't want to span fault domains in your group, use a fault domain count of 1.
36
38
37
39
You can also decide to use both availability zones and fault domains.
38
40
41
+
Enabling ultra disks (Preview) is a host group level setting and can't be changed after a host group is created.
42
+
43
+
If you intend to use LSv2 or M series VMs, with ultra disks (Preview) on dedicated hosts, set host group's **Fault domain count** to **1**.
44
+
39
45
### [Portal](#tab/portal)
40
46
41
47
In this example, we'll create a host group using one availability zone and two fault domains.
@@ -49,6 +55,7 @@ In this example, we'll create a host group using one availability zone and two f
49
55
1. For **Host group name**, type *myHostGroup*.
50
56
1. For **Location**, select **East US**.
51
57
1. For **Availability Zone**, select **1**.
58
+
1. Select **Enable Ultra SSD** (Preview) to use ultra disks with supported Virtual Machines.
52
59
1. For **Fault domain count**, select **2**.
53
60
1. Select **Automatic placement** to automatically assign VMs and scale set instances to an available host in this group.
54
61
1. Select **Review + create** and then wait for validation.
@@ -64,6 +71,17 @@ Not all host SKUs are available in all regions, and availability zones. You can
64
71
```azurecli-interactive
65
72
az vm list-skus -l eastus2 -r hostGroups/hosts -o table
66
73
```
74
+
You can also verify if a VM series supports ultra disks (Preview).
75
+
76
+
```azurecli-interactive
77
+
subscription="<mySubID>"
78
+
# example value is southeastasia
79
+
region="<myLocation>"
80
+
# example value is Standard_E64s_v3
81
+
vmSize="<myVMSize>"
82
+
83
+
az vm list-skus --resource-type virtualMachines --location $region --query "[?name=='$vmSize'].locationInfo[0].zoneDetails[0].Name" --subscription $subscription
84
+
```
67
85
68
86
In this example, we'll use [az vm host group create](/cli/azure/vm/host/group#az-vm-host-group-create) to create a host group using both availability zones and fault domains.
69
87
@@ -77,6 +95,8 @@ az vm host group create \
77
95
78
96
Add the `--automatic-placement true` parameter to have your VMs and scale set instances automatically placed on hosts, within a host group. For more information, see [Manual vs. automatic placement](dedicated-hosts.md#manual-vs-automatic-placement).
79
97
98
+
Add the `--ultra-ssd-enabled true` (Preview) parameter to enable creation of VMs that can support ultra disks.
99
+
80
100
81
101
**Other examples**
82
102
@@ -99,6 +119,17 @@ az vm host group create \
99
119
--platform-fault-domain-count 2
100
120
```
101
121
122
+
The following code snippet uses [az vm host group create](/cli/azure/vm/host/group#az-vm-host-group-create) to create a host group that supports ultra disks (Preview) and auto placement of VMs enabled.
123
+
124
+
```azurecli-interactive
125
+
az vm host group create \
126
+
--name myFDHostGroup \
127
+
-g myDHResourceGroup \
128
+
-z 1 \
129
+
--ultra-ssd-enabled true \
130
+
--platform-fault-domain-count 2 \
131
+
--automatic-placement true
132
+
```
102
133
### [PowerShell](#tab/powershell)
103
134
104
135
This example uses [New-AzHostGroup](/powershell/module/az.compute/new-azhostgroup) to create a host group in zone 1, with 2 fault domains.
Add the `-SupportAutomaticPlacement true` parameter to have your VMs and scale set instances automatically placed on hosts, within a host group. For more information about this topic, see [Manual vs. automatic placement ](dedicated-hosts.md#manual-vs-automatic-placement).
154
+
155
+
156
+
Add the `-EnableUltraSSD` (Preview) parameter to enable creation of VMs that can support ultra disks.
120
157
121
-
Add the `-SupportAutomaticPlacement true` parameter to have your VMs and scale set instances automatically placed on hosts, within a host group. For more information, see [Manual vs. automatic placement](dedicated-hosts.md#manual-vs-automatic-placement).
122
158
123
159
---
124
160
@@ -177,6 +213,8 @@ $dHost = New-AzHost `
177
213
178
214
Now create a VM on the host.
179
215
216
+
If you would like to create a VM with ultra disks support, make sure the host group in which the VM will be placed is ultra SSD enabled (Preview). Once you've confirmed, create the VM in the same host group. See [Deploy an ultra disk](disks-enable-ultra-ssd.md#deploy-an-ultra-disk) for the steps to attach an ultra disk to a VM.
217
+
180
218
### [Portal](#tab/portal)
181
219
182
220
1. Choose **Create a resource** in the upper left corner of the Azure portal.
@@ -301,7 +339,7 @@ You can add an existing VM to a dedicated host, but the VM must first be Stop\De
301
339
302
340
- The VM size must be in the same size family as the dedicated host. For example, if your dedicated host is DSv3, then the VM size could be Standard_D4s_v3, but it couldn't be a Standard_A4_v2.
303
341
- The VM needs to be located in same region as the dedicated host.
304
-
- The VM can't be part of a proximity placement group. Remove the VM from the proximity placement group before moving it to a dedicated host. For more information, see [Move a VM out of a proximity placement group](./windows/proximity-placement-groups.md#move-an-existing-vm-out-of-a-proximity-placement-group)
342
+
- The VM can't be part of a proximity placement group. Remove the VM from the proximity placement group before moving it to a dedicated host. For more information about this topic, see [Move a VM out of a proximity placement group](./windows/proximity-placement-groups.md#move-an-existing-vm-out-of-a-proximity-placement-group)
305
343
- The VM can't be in an availability set.
306
344
- If the VM is in an availability zone, it must be the same availability zone as the host group. The availability zone settings for the VM and the host group must match.
307
345
@@ -330,7 +368,7 @@ az vm update - n myVM -g myResourceGroup --host myHost
330
368
az vm start -n myVM -g myResourceGroup
331
369
```
332
370
333
-
For automatically placed VMs, only update the host group. For more information, see [Manual vs. automatic placement](dedicated-hosts.md#manual-vs-automatic-placement).
371
+
For automatically placed VMs, only update the host group. For more information about this topic, see [Manual vs. automatic placement](dedicated-hosts.md#manual-vs-automatic-placement).
334
372
335
373
Replace the values with your own information.
336
374
@@ -402,7 +440,7 @@ az vm host get-instance-view \
402
440
--name myHost
403
441
```
404
442
405
-
The output will look similar to this:
443
+
The output will look similar to the below example:
406
444
407
445
```json
408
446
{
@@ -513,7 +551,7 @@ Get-AzHost `
513
551
-InstanceView
514
552
```
515
553
516
-
The output will look similar to this:
554
+
The output will look similar to the below example:
517
555
518
556
```
519
557
ResourceGroupName : myDHResourceGroup
@@ -611,7 +649,7 @@ Once you've deleted all of your hosts, you may delete the host group using [az v
611
649
az vm host group delete -g myDHResourceGroup --host-group myHostGroup
612
650
```
613
651
614
-
You can also delete the entire resource group in a single command. This will delete all resources created in the group, including all of the VMs, hosts and host groups.
652
+
You can also delete the entire resource group in a single command. The following command will delete all resources created in the group, including all of the VMs, hosts and host groups.
615
653
616
654
```azurecli-interactive
617
655
az group delete -n myDHResourceGroup
@@ -638,7 +676,7 @@ Once you've deleted all of your hosts, you may delete the host group using [Remo
You can also delete the entire resource group in a single command using [Remove-AzResourceGroup](/powershell/module/az.resources/remove-azresourcegroup). This will delete all resources created in the group, including all of the VMs, hosts and host groups.
679
+
You can also delete the entire resource group in a single command using [Remove-AzResourceGroup](/powershell/module/az.resources/remove-azresourcegroup). This following command will delete all resources created in the group, including all of the VMs, hosts and host groups.
- For more information, see the [Dedicated hosts](dedicated-hosts.md) overview.
689
+
- For more information about this topic, see the [Dedicated hosts](dedicated-hosts.md) overview.
652
690
653
691
- There's sample template, available at [Azure Quickstart Templates](https://github.com/Azure/azure-quickstart-templates/blob/master/quickstarts/microsoft.compute/vm-dedicated-hosts/README.md), which uses both zones and fault domains for maximum resiliency in a region.
0 commit comments