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
+44Lines changed: 44 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -614,6 +614,50 @@ Tags : {}
614
614
615
615
---
616
616
617
+
## Restart a host (Preview)
618
+
619
+
You can restart the entire host, meaning that the host's not **completely** powered off. Because the host will be restarted, the underlying VMs will also be restarted. The host will remain on the same underlying physical hardware as it restarts and both the host ID and asset ID will remain the same after the restart. The host SKU will also remain the same after the restart.
620
+
621
+
Note: Host restart is in preview.
622
+
623
+
### [Portal](#tab/portal)
624
+
1. Search for and select the host.
625
+
1. In the top menu bar, select the **Restart** button. Note, this feature is in Preview.
626
+
1. In the **Essentials** section of the Host Resource Pane, Host Status will switch to **Host undergoing restart** during the restart.
627
+
1. Once the restart has completed, the Host Status will return to **Host available**.
628
+
629
+
### [CLI](#tab/cli)
630
+
631
+
Restart the host using [az vm host restart](/cli/azure/vm#az-vm-host-restart) (Preview).
632
+
633
+
```azurecli-interactive
634
+
az vm host restart --resource-group myResourceGroup --host-group myHostGroup --name myDedicatedHost
635
+
```
636
+
637
+
To view the status of the restart, you can use the [az vm host get-instance-view](/cli/azure/vm#az-vm-host-get-instance-view) command. The **displayStatus** will be set to **Host undergoing restart** during the restart. Once the restart has completed, the displayStatus will return to **Host available**.
638
+
639
+
```azurecli-interactive
640
+
az vm host get-instance-view --resource-group myResourceGroup --host-group myHostGroup --name myDedicatedHost
641
+
```
642
+
643
+
### [PowerShell](#tab/powershell)
644
+
645
+
Restart the host using the [Restart-AzHost](/powershell/module/az.compute/restart-azhost) (Preview) command.
To view the status of the restart, you can use the [Get-AzHost](/powershell/module/az.compute/get-azhost) commandlet using the **InstanceView** parameter. The **displayStatus** will be set to **Host undergoing restart** during the restart. Once the restart has completed, the displayStatus will return to **Host available**.
0 commit comments