Skip to content

Commit b7c0eba

Browse files
authored
Update virtual-machine-scale-sets-upgrade-scale-set.md
1 parent 5f20c25 commit b7c0eba

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

articles/virtual-machine-scale-sets/virtual-machine-scale-sets-upgrade-scale-set.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,19 @@ Some properties may be changed, with exceptions depending on the current value.
290290
- imageReferenceOffer
291291
- Availability Zones (Preview)
292292
293+
#### Examples
294+
To update your scale set to use a different OS version, you need to set all the updated properties in a single call. In this example, we are changing from Unbuntu Server 20.04 to 22.04.
295+
296+
```azure-cli
297+
az vmss update \
298+
--resource-group myResourceGroup \
299+
--name myScaleSet \
300+
--set virtualMachineProfile.storageProfile.imageReference.offer=0001-com-ubuntu-server-jammy \
301+
--set virtualMachineProfile.storageProfile.imageReference.publisher=Canonical \
302+
--set virtualMachineProfile.storageProfile.imageReference.sku=22_04-lts-gen2 \
303+
--set virtualMachineProfile.storageProfile.imageReference.version=latest
304+
```
305+
293306
### Properties that require deallocation to change
294307
Some properties may only be changed to certain values if the VMs in the scale set are deallocated. These properties include:
295308

0 commit comments

Comments
 (0)