Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Resource Manager Error One or more errors occurred while preparing VM disks

I receieve the following error when creating an azure virtual machine using an Azure Resource Manager ARM Template. I am creating 32 datadisks in the template and the following error is logged. The message says

See disk instance view for details

Where is the disk instance view? I cannot determine how to get additional information about the errors.

Below is the full error message logging in the Azure portal.

statusCode:Conflict statusMessage:{"status":"Failed","error":{"code":"ResourceDeploymentFailure","message":"The resource operation completed with terminal provisioning state 'Failed'.","details":[{"code":"DiskPreparationError","message":"One or more errors occurred while preparing VM disks. See disk instance view for details."}]}}

like image 290
Eric Hexter Avatar asked Sep 19 '15 14:09

Eric Hexter


2 Answers

Try looking at resources.azure.com; you will navigate to your subscription, then the proper resource group, down to the relevant disk through the Microsoft.Storage provider. You should see an "InstanceView" that will hopefully give more information. This could be the instance view the error is referring to, but there might also be a way to see it through portal. In any case, I find resources.azure.com useful for debugging such errors anyway :).

like image 153
Neil Sant Gat Avatar answered Nov 18 '22 02:11

Neil Sant Gat


Nowadays you can go to Resource Groups -> Storage Account -> (Select your type of services) -> And Delete it from there.

I had the same problem, and in order to fix it, I needed to go to the disk that was failing, delete it, and recreate it.

like image 28
Pliyo Avatar answered Nov 18 '22 04:11

Pliyo