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
This article shows you how to move a VM to a different [VM size](sizes.md).
18
18
19
-
After you create a virtual machine (VM), you can scale the VM up or down by changing the VM size. In some cases, you must deallocate the VM first. This can happen if the new size is not available on the hardware cluster that is currently hosting the VM.
19
+
After you create a virtual machine (VM), you can scale the VM up or down by changing the VM size. In some cases, you must deallocate the VM first. This can happen if the new size isn't available on the hardware cluster that is currently hosting the VM.
20
20
21
21
If your VM uses Premium Storage, make sure that you choose an **s** version of the size to get Premium Storage support. For example, choose Standard_E4**s**_v3 instead of Standard_E4_v3.
22
22
@@ -30,7 +30,7 @@ If your VM uses Premium Storage, make sure that you choose an **s** version of t
30
30
1. Pick a new size from the list of available sizes and then select **Resize**.
31
31
32
32
33
-
If the virtual machine is currently running, changing its size will cause it to be restarted.
33
+
If the virtual machine is currently running, changing its size will cause it to restart.
34
34
35
35
If your VM is still running and you don't see the size you want in the list, stopping the virtual machine may reveal more sizes.
36
36
@@ -61,9 +61,9 @@ To resize a VM, you need the latest [Azure CLI](/cli/azure/install-az-cli2) inst
61
61
--size Standard_DS3_v2
62
62
```
63
63
64
-
The VM restarts during this process. After the restart, your existing OS and data disks are remapped. Anything on the temporary disk is lost.
64
+
The VM restarts during this process. After the restart, your existing OS and data disks are kept. Anything on the temporary disk is lost.
65
65
66
-
3. If the desired VM size is not listed, you need to first deallocate the VM with [az vm deallocate](/cli/azure/vm). This process allows the VM to then be resized to any size available that the region supports and then started. The following steps deallocate, resize, and then start the VM named `myVM` in the resource group named `myResourceGroup`:
66
+
3. If the desired VM size isn't listed, you need to first deallocate the VM with [az vm deallocate](/cli/azure/vm). This process allows the VM to then be resized to any size available that the region supports and then started. The following steps deallocate, resize, and then start the VM named `myVM` in the resource group named `myResourceGroup`:
67
67
68
68
```azurecli-interactive
69
69
# Variables will make this easier. Replace the values with your own.
@@ -105,15 +105,15 @@ List the VM sizes that are available in the region where the VM is hosted.
If the size you want is not listed, run the following commands to deallocate the VM, resize it, and restart the VM. Replace **\<newVMsize>** with the size you want.
116
+
If the size you want isn't listed, run the following commands to deallocate the VM, resize it, and restart the VM. Replace **\<newVMsize>** with the size you want.
**Use PowerShell to resize a VM in an availability set**
133
133
134
-
If the new size for a VM in an availability set is not available on the hardware cluster currently hosting the VM, then all VMs in the availability set will need to be deallocated to resize the VM. You also might need to update the size of other VMs in the availability set after one VM has been resized. To resize a VM in an availability set, perform the following steps.
134
+
If the new size for a VM in an availability set isn't available on the hardware cluster currently hosting the VM, then all VMs in the availability set will need to be deallocated to resize the VM. You also might need to update the size of other VMs in the availability set after one VM has been resized. To resize a VM in an availability set, perform the following steps.
135
135
136
136
```azurepowershell-interactive
137
137
$resourceGroup = "myResourceGroup"
@@ -146,7 +146,7 @@ Get-AzVMSize `
146
146
-VMName $vmName
147
147
```
148
148
149
-
If the desired size is listed, run the following commands to resize the VM. If it is not listed, go to the next section.
149
+
If the desired size is listed, run the following commands to resize the VM. If it isn't listed, go to the next section.
150
150
151
151
```azurepowershell-interactive
152
152
$vm = Get-AzVM `
@@ -158,7 +158,7 @@ Update-AzVM `
158
158
-ResourceGroupName $resourceGroup
159
159
```
160
160
161
-
If the size you want is not listed, continue with the following steps to deallocate all VMs in the availability set, resize VMs, and restart them.
161
+
If the size you want isn't listed, continue with the following steps to deallocate all VMs in the availability set, resize VMs, and restart them.
162
162
163
163
Stop all VMs in the availability set.
164
164
@@ -193,11 +193,11 @@ The only combinations allowed for resizing are:
193
193
- VM (with local temp disk) -> VM (with local temp disk); and
194
194
- VM (with no local temp disk) -> VM (with no local temp disk).
195
195
196
-
If interested in a workaround, please see [How do I migrate from a VM size with local temp disk to a VM size with no local temp disk?](azure-vms-no-temp-disk.yml#how-do-i-migrate-from-a-vm-size-with-local-temp-disk-to-a-vm-size-with-no-local-temp-disk---)
196
+
If interested in a work-around, see [How do I migrate from a VM size with local temp disk to a VM size with no local temp disk?](azure-vms-no-temp-disk.yml#how-do-i-migrate-from-a-vm-size-with-local-temp-disk-to-a-vm-size-with-no-local-temp-disk---)
197
197
198
198
199
199
200
200
201
201
## Next steps
202
202
203
-
For additional scalability, run multiple VM instances and scale out. For more information, see [Automatically scale machines in a Virtual Machine Scale Set](../virtual-machine-scale-sets/tutorial-autoscale-powershell.md).
203
+
For more scalability, run multiple VM instances and scale out. For more information, see [Automatically scale machines in a Virtual Machine Scale Set](../virtual-machine-scale-sets/tutorial-autoscale-powershell.md).
0 commit comments