Replace VMs when the source image changes in the deployment definition
Currently if one uses an immutable infrastructure approach where most parts are baked into images you cannot easily replace VMs that are deployed by the deployment manager.
If you update the source image field in the VM definition the API returns an error that this is not an update-able field.
So currently changing the image is two updates to the deployment manager. One without the VM in the spec which causes it to delete the VM and another one with the new VM in the spec.
It would be nice to have an option where I can update the field and the deployment manager just goes on and replaces the VM with a completely fresh one off of the new image.
Yep agreed. I got a rather obscure error "Source url of disk must point to resource of type disk", which made me think the custom image I created was broken.
Had to delete and re-create the entire deployment to upgrade the base image - til I saw your suggestion to remove the vm from the deployment then re-add it.