I have created one scalset in azure with custom vm image and now I want to change image refernce of that vm to new one. How we can do this?
Asked
Active
Viewed 153 times
1 Answers
1
Below powershell command will help you in updating the VM
Update-AzVmss -ResourceGroupName "myResourceGroup" -VMScaleSetName "myScaleSet" -ImageReferenceVersion 16.04.201801090
and here is the link for complete documentation about VMSS Scale set

SaiSakethGuduru
- 2,218
- 1
- 5
- 15
-
I just changed the -ImageReferenceVersion parameter to -ImageReferenceId and it works. Thank you – Hrishikesh Dec 28 '21 at 16:00
-
Could you please accept my answer as it could be helpful for other community members as well – SaiSakethGuduru Dec 29 '21 at 03:19