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
A full list can be seen by adding the `--all` parameter. The image list can also be filtered by `--publisher` or `–-offer`. In this example, the list is filtered for all images with an offer that matches *CentOS*.
121
+
A full list can be seen by adding the `--all` parameter. The image list can also be filtered by `--publisher` or `–-offer`. In this example, the list is filtered for all images, published by OpenLogic, with an offer that matches *CentOS*.
122
122
123
123
```azurecli-interactive
124
-
az vm image list --offer CentOS --all --output table
124
+
az vm image list --offer CentOS --publisher OpenLogic --all --output table
> Canonical has changed the **Offer** names they use for the most recent versions. Before Ubuntu 20.04, the **Offer** name is UbuntuServer. For Ubuntu 20.04 the **Offer** name is `0001-com-ubuntu-server-focal` and for Ubuntu 22.04 it's `0001-com-ubuntu-server-jammy`.
144
151
145
-
To deploy a VM using a specific image, take note of the value in the *Urn* column, which consists of the publisher, offer, SKU, and optionally a version number to [identify](cli-ps-findimage.md#terminology) the image. When specifying the image, the image version number can be replaced with `latest`, which selects the latest version of the distribution. In this example, the `--image` parameter is used to specify the latest version of a CentOS 6.5 image.
152
+
To deploy a VM using a specific image, take note of the value in the *Urn* column, which consists of the publisher, offer, SKU, and optionally a version number to [identify](cli-ps-findimage.md#terminology) the image. When specifying the image, the image version number can be replaced with `latest`, which selects the latest version of the distribution. In this example, the `--image` parameter is used to specify the latest version of a CentOS 8.5.
146
153
147
154
```azurecli-interactive
148
-
az vm create --resource-group myResourceGroupVM --name myVM2 --image OpenLogic:CentOS:6.5:latest --generate-ssh-keys
155
+
az vm create --resource-group myResourceGroupVM --name myVM2 --image OpenLogic:CentOS:8_5:latest --generate-ssh-keys
149
156
```
150
157
151
158
## Understand VM sizes
@@ -156,14 +163,14 @@ A virtual machine size determines the amount of compute resources such as CPU, G
156
163
157
164
The following table categorizes sizes into use cases.
|[General purpose](../sizes-general.md)|B, Dsv3, Dv3, DSv2, Dv2, Av2, DC| Balanced CPU-to-memory. Ideal for dev / test and small to medium applications and data solutions. |
162
-
|[Compute optimized](../sizes-compute.md)| Fsv2 | High CPU-to-memory. Good for medium traffic applications, network appliances, and batch processes. |
163
-
|[Memory optimized](../sizes-memory.md)| Esv3, Ev3, M, DSv2, Dv2 | High memory-to-core. Great for relational databases, medium to large caches, and in-memory analytics. |
164
-
|[Storage optimized](../sizes-storage.md)|Lsv2, Ls |High disk throughput and IO. Ideal for Big Data, SQL, and NoSQL databases.|
165
-
|[GPU](../sizes-gpu.md)|NV, NVv2, NC, NCv2, NCv3, ND |Specialized VMs targeted for heavy graphic rendering and video editing. |
166
-
|[High performance](../sizes-hpc.md)|H |Our most powerful CPU VMs with optional high-throughput network interfaces (RDMA). |
@@ -228,7 +234,7 @@ az vm list-vm-resize-options --resource-group myResourceGroupVM --name myVM --qu
228
234
If the desired size is available, the VM can be resized from a powered-on state, however it is rebooted during the operation. Use the [az vm resize](/cli/azure/vm) command to perform the resize.
229
235
230
236
```azurecli-interactive
231
-
az vm resize --resource-group myResourceGroupVM --name myVM --size Standard_DS4_v2
237
+
az vm resize --resource-group myResourceGroupVM --name myVM --size Standard_D4s_v3
232
238
```
233
239
234
240
If the desired size is not on the current cluster, the VM needs to be deallocated before the resize operation can occur. Use the [az vm deallocate](/cli/azure/vm) command to stop and deallocate the VM. Note, when the VM is powered back on, any data on the temp disk may be removed. The public IP address also changes unless a static IP address is being used.
@@ -279,9 +285,9 @@ az vm get-instance-view \
279
285
Output:
280
286
281
287
```output
282
-
odeDisplayStatusLevel
283
-
------------------ ----------------------
284
-
PowerState/running VM running Info
288
+
CodeLevelDisplayStatus
289
+
------------------ ----------------------
290
+
PowerState/running Info VM running
285
291
```
286
292
287
293
To retrieve the power state of all the VMs in your subscription, use the [Virtual Machines - List All API](/rest/api/compute/virtualmachines/listall) with parameter **statusOnly** set to *true*.
@@ -312,9 +318,9 @@ az vm start --resource-group myResourceGroupVM --name myVM
312
318
313
319
### Deleting VM resources
314
320
315
-
You can delete a VM, but by default this only deletes the VM resource, not the disks and networking resources the VM uses. You can change the default behavior to delete other resources when you delete the VM. For more information, see [Delete a VM and attached resources](../delete.md).
321
+
Depending on how you delete a VM, it may only delete the VM resource, not the networking and disk resources. You can change the default behavior to delete other resources when you delete the VM. For more information, see [Delete a VM and attached resources](../delete.md).
316
322
317
-
Deleting a resource group also deletes all resources contained within, such as the VM, virtual network, and disk. The `--no-wait` parameter returns control to the prompt without waiting for the operation to complete. The `--yes` parameter confirms that you wish to delete the resources without an additional prompt to do so.
323
+
Deleting a resource group also deletes all resources in the resource group, like the VM, virtual network, and disk. The `--no-wait` parameter returns control to the prompt without waiting for the operation to complete. The `--yes` parameter confirms that you wish to delete the resources without an additional prompt to do so.
318
324
319
325
```azurecli-interactive
320
326
az group delete --name myResourceGroupVM --no-wait --yes
0 commit comments