Azure: Deployment never ends / Internal Server Error

When a deployment never ends, you may start looking for answers. Burred deep in deployment you may come across one of the most helpful errors to date:

To find this error,

  1. In Azure portal, go to Resource groups > {ResourceGroupName} > Deployments.
  2. Click the name of the deployment that is in progress (Status: Deploying).
  3. Scroll right to the bottom of the “Deployment” blade.
  4. Under “Operation details” look for the resource and check its status.
  5. Click on the one with an issue to see the full “STATUSMESSAGE” text.

At this point, it doesn’t give you much of an idea of what the problem is, but at least you now know the resource that has issues.

In this case, I was trying to create managed disks, where I defined the resource twice. Once to create a single data disk of 128GB and another in a copy loop with a count of X, of 512GB in size. It didn’t like the same resource being used twice. IMHO, MS need to handle this sort of error.

Under the VM resource:

Once I removed lines 1-11, the deployment succeeded.

To achieve this, it looks like I will have to is use a top-level managed disk resource, outside of the VM resource.



Please feel free to leave a comment...