Skip to content

Commit bb9293b

Browse files
Merge pull request #226228 from vamckMS/adh-autoreplace-host
Added host service healing and related commands
2 parents 04cbec9 + ecd3008 commit bb9293b

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

articles/virtual-machines/dedicated-host-retirement.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ A:
6666

6767
A: You'll need to [exchange your reservation](../cost-management-billing/reservations/exchange-and-refund-azure-reservations.md#how-to-exchange-or-refund-an-existing-reservation) through the Azure portal to match the new Dedicated Host SKU.
6868

69-
### Q: What would happen if I do not migrate by March 31, 2023?
69+
### Q: What would happen to my host if I do not migrate by March 31, 2023?
7070

71-
A: After March 31, 2023 any dedicated hosts running the SKUs that are marked for retirement will be pushed to 'Host Pending Deallocate' before eventually deallocating the host. For additional assistance please reach out to Azure support.
71+
A: After March 31, 2023 any dedicated host running on the SKUs that are marked for retirement will be set to 'Host Pending Deallocate' state before eventually deallocating the host. For additional assistance please reach out to Azure support.
7272

7373
### Q: What will happen to my VMs if a Host is automatically deallocated?
7474

articles/virtual-machines/dedicated-hosts-how-to.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ If you set a fault domain count for your host group, you'll need to specify the
178178
1. Select *myDedicatedHostsRG* as the **Resource group**.
179179
1. In **Instance details**, type *myHost* for the **Name** and select *East US* for the location.
180180
1. In **Hardware profile**, select *Standard Es3 family - Type 1* for the **Size family**, select *myHostGroup* for the **Host group** and then select *1* for the **Fault domain**. Leave the defaults for the rest of the fields.
181+
1. Leave the **Automatically replace host on failure** setting *Enabled* to automatically service heal the host in case of any host level failure.
181182
1. When you're done, select **Review + create** and wait for validation.
182183
1. Once you see the **Validation passed** message, select **Create** to create the host.
183184

@@ -191,6 +192,7 @@ az vm host create \
191192
--name myHost \
192193
--sku DSv3-Type1 \
193194
--platform-fault-domain 1 \
195+
--auto-replace true \
194196
-g myDHResourceGroup
195197
```
196198

@@ -205,7 +207,7 @@ $dHost = New-AzHost `
205207
-Location $location -Name myHost `
206208
-ResourceGroupName $rgName `
207209
-Sku DSv3-Type1 `
208-
-AutoReplaceOnFailure 1 `
210+
-AutoReplaceOnFailure True `
209211
-PlatformFaultDomain 1
210212
```
211213

articles/virtual-machines/dedicated-hosts.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,27 @@ Known issues and limitations when using automatic VM placement:
8888
- You won't be able to redeploy your VM.
8989
- You won't be able to use DCv2, Lsv2, NVasv4, NVsv3, Msv2, or M-series VMs with dedicated hosts.
9090

91+
## Host Service Healing
92+
93+
In case of any failure relating to the underlying node, network connectivity or software issues can push the host and VMs on the host to a non-healthy state causing disruption and downtime to your workloads. The default action is for Azure to automatically service heal the impacted host to a healthy node and move all VMs to the healthy host. Once the VMs are service healed and restarted the impacted host will be deallocated. During the service healing process the host and VMs would become unavailable incurring a slight downtime.
94+
95+
The newly created host would have all the same constraints as the old host:
96+
- Resource group
97+
- Region
98+
- Fault Domain
99+
- Host Group
100+
- ADH SKU
101+
- Auto replace on failure setting
102+
103+
Users with compliance requirements might need a strong affinity between the host and underlying node and would not like to be automatically service healed, in such scenarios users can choose to opt out of auto service healing at host level by disabling the 'Automatically replace host on failure setting'.
104+
105+
### Implications
106+
107+
If you decide to disable auto service healing and if the underlying node encounters a failure your host state will change to 'Host Pending Deallocate' and will eventually be deallocated.
108+
109+
To avoid deallocation, you would need to manually redeploy the host by creating a new dedicated host and moving all the VMs from the old host to the new host.
110+
111+
The auto replace host setting is a create time setting and cannot be changed once the host is created. VMs that are manually stopped/deallocated from the impacted host are not moved as part of the automatic service healing.
91112

92113
## Virtual Machine Scale Set support
93114

0 commit comments

Comments
 (0)