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
# Find Azure Marketplace image information using the Azure CLI
14
14
15
15
**Applies to:**:heavy_check_mark: Linux VMs :heavy_check_mark: Flexible scale sets
16
16
17
-
This topic describes how to use the Azure CLI to find VM images in the Azure Marketplace. Use this information to specify a Marketplace image when you create a VM programmatically with the CLI, Resource Manager templates, or other tools.
17
+
This topic describes how to use the Azure CLI to find VM images in the Azure Marketplace. Use this information to specify a Marketplace image when you create a VM through the CLI, automation script, Resource Manager templates, or other tools.
18
18
19
19
You can also browse available images and offers using the [Azure Marketplace](https://azuremarketplace.microsoft.com/) or [Azure PowerShell](../windows/cli-ps-findimage.md).
20
20
@@ -27,7 +27,7 @@ A Marketplace image in Azure has the following attributes:
27
27
***SKU**: An instance of an offer, such as a major release of a distribution. Examples: 18.04-LTS, 2019-Datacenter
28
28
***Version**: The version number of an image SKU.
29
29
30
-
These values can be passed individually or as an image *URN*, combining the values separated by the colon (:). For example: *Publisher*:*Offer*:*Sku*:*Version*. You can replace the version number in the URN with `latest` to use the latest version of the image.
30
+
These values can be passed individually or as an image *URN*, combining the values separated by the colon (:). For example: *Publisher*:*Offer*:*Sku*:*Version*. You can replace the version number in the URN with `latest` to automatically use the latest version of the image when available.
31
31
32
32
If the image publisher provides additional license and purchase terms, then you must accept those before you can use the image. For more information, see [Check the purchase plan information](#check-the-purchase-plan-information).
To find a specific VM image in the Marketplace, use the `az vm image list` command with the `--all` option. This version of the command takes some time to complete and can return lengthy output, so you usually filter the list by `--publisher` or another parameter.
66
66
67
-
For example, the following command displays all Debian offers (remember that without the `--all` switch, it only searches the local cache of common images):
67
+
For example, the following command displays all 'Debian' offers (remember that without the `--all` switch, it only searches the local cache of common images):
68
68
69
69
```azurecli
70
70
az vm image list --offer Debian --all --output table
@@ -95,7 +95,7 @@ Debian credativ 8
95
95
```
96
96
97
97
98
-
## Look at all available images
98
+
## View all available images
99
99
100
100
Another way to find an image in a location is to run the [az vm image list-publishers](/cli/azure/vm/image), [az vm image list-offers](/cli/azure/vm/image), and [az vm image list-skus](/cli/azure/vm/image) commands in sequence. With these commands, you determine these values:
101
101
@@ -134,9 +134,9 @@ If you deploy a VM with a Resource Manager template, you set the image parameter
134
134
135
135
## Check the purchase plan information
136
136
137
-
Some VM images in the Azure Marketplace have additional license and purchase terms that you must accept before you can deploy them programmatically.
137
+
Some VM images in the Azure Marketplace have additional license and purchase terms that you must accept before you can deploy them through an automation script.
138
138
139
-
To deploy a VM from such an image, you'll need to accept the image's terms the first time you use it, once per subscription. You'll also need to specify *purchase plan* parameters to deploy a VM from that image
139
+
To deploy a VM from such an image, you'll need to accept the most up to date image's terms the first time you use it. This must be done once per subscription. You'll also need to specify *purchase plan* parameters to deploy a VM from that image
140
140
141
141
To view an image's purchase plan information, run the [az vm image show](/cli/azure/image) command with the URN of the image. If the `plan` property in the output is not `null`, the image has terms you need to accept before programmatic deployment.
142
142
@@ -286,4 +286,4 @@ az vm create \
286
286
287
287
288
288
## Next steps
289
-
To create a virtual machine quickly by using the image information, see [Create and Manage Linux VMs with the Azure CLI](tutorial-manage-vm.md).
289
+
To create a virtual machine quickly using image information, see [Create and Manage Linux VMs with the Azure CLI](tutorial-manage-vm.md).
0 commit comments