OperationNotAllowedOnVMImageAsVMsBeingProvisioned: Virtual machines are still using the image to provision
Azure can't delete the image while one or more virtual machines are being provisioned from it.
What to check
- Identify the virtual machine deployments that use the image and check their provisioning states.
- Wait until provisioning finishes before retrying the image deletion. Check that no new deployments need the image before you delete it.