Hi @Varma
You would use the az vmss update command to change the image reference in your scale set model.
For example:
az vmss update \
--resource-group myResourceGroup \
--name myScaleSet \
--set virtualMachineProfile.storageProfile.imageReference.id="/subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.Compute/galleries/<galleryName>/images/<imageName>/versions/<imageVersion>"
Just make sure the image you want to use is already created and available in your Compute Gallery.
Get in touch if you need more help with this issue.
--please don't forget to "[Accept the answer]" if the reply is helpful--