Azure – Parameter ‘osDisk.managedDisk.id’ is not allowed error in ARM Template deployment

Hello Friends,

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.

oDisk.ManagedDisk.id Not Allowed Issue

Figure 1: Azure  – osDisk.managedDisk.id’ is not allowed

After getting the above error, when we clicked on the operations details we found the following details.

{
  "error": {
    "code": "InvalidParameter",
    "target": "osDisk.managedDisk.id",
    "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.

oDisk.ManagedDisk.id Not Allowed Issue fixes Figure 2: Azure  – osDisk.managedDisk.id’ is not allowed issue fixed

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.

Manas Ranjan Moharana

Around 11+ years of total IT experience and since last 10 years working on almost on all version of SharePoint .Interested in learning and sharing something new to be helthy.

You may also like...

5 Responses

  1. Yogesh says:

    Thanks Manas, this was helpful for me to resolve the same issue,
    I saw other links and there seems to be tons of information available on your blog.
    Appreciate it ..keep blogging and helping others, great job indeed

    Cheers
    Yogesh

  1. December 8, 2018

    […] Azure Portal. During our  deployment we got couple of issues and After  fixing the first issue osDisk.managedDisk.id’ is not allowed , we continue with our deployment. After some time we got the second issue  as ” […]

  2. December 9, 2018

    […] osDisk.managedDisk.id’ is not allowed.  […]

  3. March 7, 2019

    […] osDisk.managedDisk.id’ is not allowed.  […]

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: