Skip to content

Commit 32d7542

Browse files
Merge pull request #235136 from cynthn/patch-81
[Doc-a-thon] Update tutorial-modify-scale-sets-cli.md
2 parents cc8f430 + 2b236b8 commit 32d7542

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

articles/virtual-machine-scale-sets/tutorial-modify-scale-sets-cli.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ The exact presentation of the output depends on the options you provide to the c
8888
},
8989
"storageProfile": {
9090
"imageReference": {
91-
"offer": "UbuntuServer",
91+
"offer": "0001-com-ubuntu-server-jammy",
9292
"publisher": "Canonical",
93-
"sku": "18.04-LTS",
93+
"sku": "22_04-lts",
9494
"version": "latest"
9595
},
9696
"osDisk": {
@@ -125,7 +125,7 @@ az vmss create \
125125
--resource-group myResourceGroup \
126126
--name myScaleSet \
127127
--orchestration-mode flexible \
128-
--image UbuntuLTS \
128+
--image RHEL \
129129
--admin-username azureuser \
130130
--generate-ssh-keys \
131131
--upgrade-policy Rolling \
@@ -177,10 +177,10 @@ The exact presentation of the output depends on the options you provide to the c
177177
"storageProfile": {
178178
"dataDisks": [],
179179
"imageReference": {
180-
"exactVersion": "18.04.202210180",
181-
"offer": "UbuntuServer",
180+
"exactVersion": "22.04.202204200",
181+
"offer": "0001-com-ubuntu-server-jammy",
182182
"publisher": "Canonical",
183-
"sku": "18.04-LTS",
183+
"sku": "22_04-lts",
184184
"version": "latest"
185185
},
186186
"osDisk": {
@@ -242,7 +242,7 @@ Running [az vm show](/cli/azure/vm#az-vm-show) again, we now will see that the V
242242
There are times where you might want to add a new VM to your scale set but want different configuration options than then listed in the scale set model. VMs can be added to a scale set during creation by using the [az vm create](/cli/azure/vmss#az-vmss-create) command and specifying the scale set name you want the instance added to.
243243

244244
```azurecli-interactive
245-
az vm create --name myNewInstance --resource-group myResourceGroup --vmss myScaleSet --image UbuntuLTS
245+
az vm create --name myNewInstance --resource-group myResourceGroup --vmss myScaleSet --image RHEL
246246
```
247247

248248
```output
@@ -307,10 +307,10 @@ az vmss reimage --resource-group myResourceGroup --name myScaleSet --instance-id
307307
```
308308

309309
## Update the OS image for your scale set
310-
You may have a scale set that runs an old version of Ubuntu LTS 18.04. You want to update to a newer version of Ubuntu LTS 16.04, such as version *18.04.202210180*. The image reference version property isn't part of a list, so you can directly modify these properties using [az vmss update](/cli/azure/vmss#az-vmss-update).
310+
You may have a scale set that runs an old version of Ubuntu. You want to update to a newer version of Ubuntu, such as version *22.04.202204200*. The image reference version property isn't part of a list, so you can directly modify these properties using [az vmss update](/cli/azure/vmss#az-vmss-update).
311311

312312
```azurecli
313-
az vmss update --resource-group myResourceGroup --name myScaleSet --set virtualMachineProfile.storageProfile.imageReference.version=18.04.202210180
313+
az vmss update --resource-group myResourceGroup --name myScaleSet --set virtualMachineProfile.storageProfile.imageReference.version=22.04.202204200
314314
```
315315

316316
Alternatively, you may want to change the image your scale set uses. For example, you may want to update or change a custom image used by your scale set. You can change the image your scale set uses by updating the image reference ID property. The image reference ID property isn't part of a list, so you can directly modify this property using [az vmss update](/cli/azure/vmss#az-vmss-update).

0 commit comments

Comments
 (0)