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
@@ -85,29 +83,33 @@ Another way to find an image in a location is to run the [az vm image list-publi
85
83
az vm image list-publishers --location westus --output table
86
84
```
87
85
88
-
1. For a given publisher, list their offers. In this example, we add *Canonical* as the publisher.
86
+
1. For a given publisher, list their offers. In this example, we add *RedHat* as the publisher.
89
87
90
88
```azurecli
91
-
az vm image list-offers --location westus --publisher Canonical --output table
89
+
az vm image list-offers --location westus --publisher RedHat --output table
92
90
```
93
91
94
-
1. For a given offer, list their SKUs. In this example, we add *UbuntuServer* as the offer.
92
+
1. For a given offer, list their SKUs. In this example, we add *RHEL* as the offer.
95
93
```azurecli
96
-
az vm image list-skus --location westus --publisher Canonical --offer UbuntuServer --output table
94
+
az vm image list-skus --location westus --publisher RedHat --offer RHEL --output table
97
95
```
98
96
99
-
1. For a given publisher, offer, and SKU, show all of the versions of the image. In this example, we add *18.04-LTS* as the SKU.
97
+
> [!NOTE]
98
+
> 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`.
99
+
100
+
101
+
1. For a given publisher, offer, and SKU, show all of the versions of the image. In this example, we add *9_1* as the SKU.
100
102
101
103
```azurecli
102
104
az vm image list \
103
105
--location westus \
104
-
--publisher Canonical \
105
-
--offer UbuntuServer \
106
-
--sku 18.04-LTS \
106
+
--publisher RedHat \
107
+
--offer RHEL \
108
+
--sku 9_1 \
107
109
--all --output table
108
110
```
109
111
110
-
Pass this value of the URN column with the `--image` parameter when you create a VM with the [az vm create](/cli/azure/vm) command. You can also replace the version number in the URN with "latest", to use the latest version of the image.
112
+
Pass this value of the URN column with the `--image` parameter when you create a VM with the [az vm create](/cli/azure/vm) command. You can also replace the version number in the URN with "latest", to use the latest version of the image.
111
113
112
114
If you deploy a VM with a Resource Manager template, you set the image parameters individually in the `imageReference` properties. See the [template reference](/azure/templates/microsoft.compute/virtualmachines).
Copy file name to clipboardExpand all lines: articles/virtual-machines/linux/tutorial-manage-vm.md
+21-14Lines changed: 21 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ exit
87
87
88
88
## Understand VM images
89
89
90
-
The Azure marketplace includes many images that can be used to create VMs. In the previous steps, a virtual machine was created using an Ubuntu image. In this step, the Azure CLI is used to search the marketplace for a CentOS image, which is then used to deploy a second virtual machine.
90
+
The Azure Marketplace includes many images that can be used to create VMs. In the previous steps, a virtual machine was created using an Ubuntu image. In this step, the Azure CLI is used to search the marketplace for a CentOS image, which is then used to deploy a second virtual machine.
91
91
92
92
To see a list of the most commonly used images, use the [az vm image list](/cli/azure/vm/image) command.
93
93
@@ -98,19 +98,22 @@ az vm image list --output table
98
98
The command output returns the most popular VM images on Azure.
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*.
> 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`.
141
+
135
142
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.
0 commit comments