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

Hello Friends,
Now a days, I am exploring Azure, and tried to cover the basic fundamental of all the major parts like Azure Networking , Azure Active Directory, Azure Storage and Database. On basis of my study and my personal experience, I have written couple of series. We can check following links for those series.
Tool Installation Articles :
- Configure Azure Command Line Interface ( Azure CLI) On Windows
- Configure PowerShell For Microsoft Azure Az Module On Windows
Previous Azure series :
- Learn Basics Of Azure Networking In 60 Hours
- Learn Basic Of Azure Active Directory And Azure Identity And Access Management
- Azure DevOps – Learn at one place
Tool Installation Articles :
- Configure Azure Command Line Interface ( Azure CLI) On Windows
- Configure PowerShell For Microsoft Azure Az Module On Windows
If you have missed our previous articles on Azure Storage and Database Series, please check it in following links.
Part 1 – Overview Of Azure Storage and Database
Part 2 – Azure Storage Account
Part 4 – Work With Azure Blob Storage
Part 5 – Storage Explorer For Azure Storage
Part 6 – Azure Blob Storage – Snapshot Using Storage Explorer
Part 7 – Azure Blob Storage – Shared Access Signature (SAS)
Part 8 – Secure Azure Storage Using Stored Access Policy
Part 9 – Secure Azure Storage Using RBAC
Part 10 – Configure Stored Access Policy Using PowerShell
Part 11 – Get Shared Access Signature (SAS) Using PowerShell
Part 12 – Azure Blob Storage – Host Static Website In Azure Storage Account
Part 13 – Azure Blob Storage – Work With AzCopy Tool
Part 14 – Azure File Service – Overview
Part 15 – Azure File Service – Mount File Share On Window Server Using PowerShell
Part 16 – Azure File Service – Mount File Share On Window Server Using File Share URL
Part 17 – Azure File Service – Create File Share Using Power Shell
Part 18 – Azure File Service – Upload And Copy Files In File Share Using Power Shell
Part 19 – Azure File Service – BackUp And Restore Azure Files From Recovery Services Vault
Part 20 – Azure File Service – BackUp And Restore Azure Files From The File Share Pane
Part 21 – Azure File Service – Create And Manage File Share Snapshots Using PowerShell
Part 23 – Azure File Service – Restore Azure Files From Back Up Using PowerShell
Part 24 – Azure File Service – Storage Sync Service
Part 25 – Azure File Service – Storage Sync Service – Configure Azure File Sync – 1
Part 26 – Azure File Service – Storage Sync Service – Configure Azure File Sync – 2
Part 27 – Difference Between Azure Blog Storage And Azure File Storage
Part 28 – Azure Queue Storage – Overview
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.
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.
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.
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
Thanks Yogesh for your comment 🙂