Azure – Parameter ‘osDisk.managedDisk.id’ is not allowed error in ARM Template deployment
Yesterday , I was working on, How to Create and Deploy Azure Resource Manager Template using Azure Portal. In our use-case, we had to deploy ARM template to our target resource group. During deployment, we got our first issue as ” osDisk.managedDisk.id’ is not allowed ” as shown in following figure.
After getting the above error, when we clicked on the operations details we found the following details.
"message": "Parameter 'osDisk.managedDisk.id' is not allowed."
After googling a lot we found that we need to do some more modification to the template.json file . We have to delete one line from our template. This is the issue of OS disk id. To fix this issue , we simple removed the id property of OsDisk, as shown in the following figure.
After removing the id property, we redeploy the template and we proceed by one step.
Thanks for reading 🙂
Keep reading, share your thoughts, experiences. Feel free to contact us to discuss more. If you have any suggestion / feedback / doubt, you are most welcome.
Stay tuned on Knowledge-Junction, will come up with more such articles.