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/includes/dedicated-hosts-resize.md
+21-5Lines changed: 21 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: mattmcinnes
6
6
ms.topic: include
7
7
ms.service: virtual-machines
8
8
ms.subservice: azure-dedicated-host
9
-
ms.date: 07/12/2023
9
+
ms.date: 09/11/2023
10
10
ms.author: mattmcinnes
11
11
ms.reviewer: vamckMS
12
12
ms.custom: include file
@@ -22,7 +22,7 @@ Resize limitations:
22
22
- Host can only be resized to an ADH within the same VM family. A Dsv3-Type3 host can be resized to Dsv3-Type4 but **not** to an **E**sv3-Type4.
23
23
- You can only resize to newer generation of hardware. A Dsv3-Type3 host can be resized to Dsv3-Type4 but **not** Dsv3-Type2.
24
24
- Resizing changes the 'Host Asset ID'. The 'Host ID' remains the same.
25
-
- The host and all associated VMs becomes unavailable during the resize operation.
25
+
- The host and all associated VMs become unavailable during the resize operation.
26
26
27
27
> [!Warning]
28
28
> The resize operation causes the loss of any non-persistent data such as temp disk data. Save all your work to persistent data storage before triggering resize.
@@ -45,7 +45,7 @@ Resize limitations:
45
45
46
46
### [CLI](#tab/cli)
47
47
48
-
First list the sizes that you can resize in case you are unsure which to resize to.
48
+
First list the sizes that you can resize in case you're unsure which to resize to.
49
49
50
50
Use [az vm host list-resize-options](/cli/azure/vm#az-vm-host-list-resize-options)[Preview]
51
51
@@ -68,6 +68,22 @@ az vm host resize \
68
68
69
69
### [PowerShell](#tab/powershell)
70
70
71
-
PowerShell support for host resize is coming soon.
71
+
When using PowerShell, the resize feature is referred to as a host 'Update'. Use the following commands to update the host:
72
+
73
+
```azurepowershell-interactive
74
+
Update-AzHost
75
+
[-ResourceGroupName] <String>
76
+
[-HostGroupName] <String>
77
+
[-Name] <String>
78
+
[-Sku <String>]
79
+
[-AutoReplaceOnFailure <Boolean>]
80
+
[-LicenseType <DedicatedHostLicenseTypes>]
81
+
[-DefaultProfile <IAzureContextContainer>]
82
+
[-WhatIf]
83
+
[-Confirm]
84
+
[<CommonParameters>]
85
+
```
86
+
87
+
For more info on Update-AzHost, check out the [Update-AzHost reference docs](https://learn.microsoft.com/powershell/module/az.compute/update-azhost).
0 commit comments