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
Copy file name to clipboardExpand all lines: articles/virtual-machine-scale-sets/tutorial-modify-scale-sets-cli.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,9 +88,9 @@ The exact presentation of the output depends on the options you provide to the c
88
88
},
89
89
"storageProfile": {
90
90
"imageReference": {
91
-
"offer": "UbuntuServer",
91
+
"offer": "0001-com-ubuntu-server-jammy",
92
92
"publisher": "Canonical",
93
-
"sku": "18.04-LTS",
93
+
"sku": "22_04-lts",
94
94
"version": "latest"
95
95
},
96
96
"osDisk": {
@@ -125,7 +125,7 @@ az vmss create \
125
125
--resource-group myResourceGroup \
126
126
--name myScaleSet \
127
127
--orchestration-mode flexible \
128
-
--image UbuntuLTS \
128
+
--image RHEL \
129
129
--admin-username azureuser \
130
130
--generate-ssh-keys \
131
131
--upgrade-policy Rolling \
@@ -177,10 +177,10 @@ The exact presentation of the output depends on the options you provide to the c
177
177
"storageProfile": {
178
178
"dataDisks": [],
179
179
"imageReference": {
180
-
"exactVersion": "18.04.202210180",
181
-
"offer": "UbuntuServer",
180
+
"exactVersion": "22.04.202204200",
181
+
"offer": "0001-com-ubuntu-server-jammy",
182
182
"publisher": "Canonical",
183
-
"sku": "18.04-LTS",
183
+
"sku": "22_04-lts",
184
184
"version": "latest"
185
185
},
186
186
"osDisk": {
@@ -242,7 +242,7 @@ Running [az vm show](/cli/azure/vm#az-vm-show) again, we now will see that the V
242
242
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.
243
243
244
244
```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
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).
311
311
312
312
```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
314
314
```
315
315
316
316
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