Skip to main content

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​

  1. Identify the virtual machine deployments that use the image and check their provisioning states.
  2. Wait until provisioning finishes before retrying the image deletion. Check that no new deployments need the image before you delete it.

Official reference​

Microsoft Learn: Common Azure deployment errors