Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, September 25, 2018 1:53 PM
I am trying to update VM scale set configuration to new image so that all existing vm instance will update to new version, but I am getting error message 'PropertyChangeNotAllowed Message: Changing property 'imageReference.offer' is not allowed. Target: imageReference.offer'. Please let us know if there is a solution to this.
All replies (4)
Tuesday, September 25, 2018 5:45 PM
Refer to this link for step by step guide on Azure virtual machine scale set automatic OS upgrades, let’s know if you need any further assistance on this.
If this answer was helpful, click “Mark as Answer” or “Up-Vote”. To provide additional feedback on your forum experience, click here
Tuesday, September 25, 2018 8:49 PM
Thanks for the reply, but unfortunately this is not what I am looking for. I have already enabled automatic upgrades.
What I am specifically looking for is to change the image offer that vm scale set is referencing to.
Wednesday, September 26, 2018 10:12 PM
@SagarShrestha To update the OS image in Virtual Machine scale set, for example if you have a scale set that runs an old version of Ubuntu LTS 16.04 and you want to update to a newer version of Ubuntu LTS 16.04, such as version 16.04.201801090
You can use the following Powershell command as per the doc shared below:
Update-AzureRmVmss -ResourceGroupName "myResourceGroup" -VMScaleSetName "myScaleSet" -ImageReferenceVersion 16.04.201801090
OR Azure CLI with az vmss update:
az vmss update --resource-group myResourceGroup --name myScaleSet --set virtualMachineProfile.storageProfile.imageReference.version=16.04.201801090
Please refer to How to Modify a virtual machine scale set doc for more details.
Monday, October 1, 2018 5:50 PM
SagarShrestha Any update? Did the above solution help?