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
@@ -68,7 +62,7 @@ You can filter the list of images by `--publisher` or another parameter to limit
68
62
69
63
For example, the following command displays all Debian offers:
70
64
71
-
```azurecli
65
+
```azurecli-interactive
72
66
az vm image list --offer Debian --all --output table
73
67
```
74
68
@@ -79,18 +73,18 @@ Another way to find an image in a location is to run the [az vm image list-publi
79
73
80
74
1. List the image publishers for a location. In this example, we're looking at the *West US* region.
81
75
82
-
```azurecli
76
+
```azurecli-interactive
83
77
az vm image list-publishers --location westus --output table
84
78
```
85
79
86
80
1. For a given publisher, list their offers. In this example, we add *RedHat* as the publisher.
87
81
88
-
```azurecli
82
+
```azurecli-interactive
89
83
az vm image list-offers --location westus --publisher RedHat --output table
90
84
```
91
85
92
86
1. For a given offer, list their SKUs. In this example, we add *RHEL* as the offer.
93
-
```azurecli
87
+
```azurecli-interactive
94
88
az vm image list-skus --location westus --publisher RedHat --offer RHEL --output table
95
89
```
96
90
@@ -100,7 +94,7 @@ Another way to find an image in a location is to run the [az vm image list-publi
100
94
101
95
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.
102
96
103
-
```azurecli
97
+
```azurecli-interactive
104
98
az vm image list \
105
99
--location westus \
106
100
--publisher RedHat \
@@ -124,7 +118,7 @@ To view an image's purchase plan information, run the [az vm image show](/cli/az
124
118
125
119
For example, the Canonical Ubuntu Server 18.04 LTS image doesn't have extra terms, because the `plan` information is `null`:
126
120
127
-
```azurecli
121
+
```azurecli-interactive
128
122
az vm image show --location westus --urn Canonical:UbuntuServer:18.04-LTS:latest
129
123
```
130
124
@@ -146,7 +140,7 @@ Output:
146
140
147
141
Running a similar command for the RabbitMQ Certified by Bitnami image shows the following `plan` properties: `name`, `product`, and `publisher`. (Some images also have a `promotion code` property.)
148
142
149
-
```azurecli
143
+
```azurecli-interactive
150
144
az vm image show --location westus --urn bitnami:rabbitmq:rabbitmq:latest
151
145
```
152
146
Output:
@@ -175,7 +169,7 @@ To deploy this image, you need to accept the terms and provide the purchase plan
175
169
176
170
To view and accept the license terms, use the [az vm image terms](/cli/azure/vm/image/terms) command. When you accept the terms, you enable programmatic deployment in your subscription. You only need to accept terms once per subscription for the image. For example:
177
171
178
-
```azurecli
172
+
```azurecli-interactive
179
173
az vm image terms show --urn bitnami:rabbitmq:rabbitmq:latest
180
174
```
181
175
@@ -200,7 +194,7 @@ The output includes a `licenseTextLink` to the license terms, and indicates that
200
194
201
195
To accept the terms, type:
202
196
203
-
```azurecli
197
+
```azurecli-interactive
204
198
az vm image terms accept --urn bitnami:rabbitmq:rabbitmq:latest
205
199
```
206
200
@@ -223,7 +217,7 @@ az vm create \
223
217
224
218
For an image with purchase plan parameters, like the RabbitMQ Certified by Bitnami image, you pass the URN for `--image` and also provide the purchase plan parameters:
225
219
226
-
```azurecli
220
+
```azurecli-interactive
227
221
az group create --name myPurchasePlanRG --location westus
0 commit comments