Azure – Required parameter ‘adminPassword’ is missing (null) error in ARM Template deployment Issue

Hello Friends,

We ware working on an use-case for How to Create and Deploy Azure Resource Manager Template using 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 ” adminPassword’ is missing (null) ” as shown in following figure.

Required parameter Adminpassword required issue

Figure 1: Azure  – Parameter ‘adminPassword’ is missing issue 

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

{
 "error": {
 "code": "InvalidParameter",
 "target": "adminPassword",
 "message": "Required parameter 'adminPassword' is missing (null)."
 }
}

After googling for some times, we found, when downloading the template.json file, it  skip the adminPassword of the Virtual Machine. This might be intentionally done by Microsoft for security reason. Let’s modify the template to add the adminPassword just below “adminUserName”  property, as shown in the following figure.

Required parameter Adminpassword required issue fixes

Figure 2: Azure  – Parameter ‘adminPassword’ is missing issue  fixed

After set the adminPassword property, it fixed the issue for us and we redeployed  the template.

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

I'm a proud Indian, Son, Husband, Father, Author, Blogger, Self motivated person. I lives in Pune, Maharashtra and working for TietoEvry.pvt.ltd, to build Azure Solutions and Share Point Solutions.Microsoft certified Professional with 14 years of IT experience. Interest in learning and sharing something new, to be healthy.

You may also like...

2 Responses

  1. Pemo says:

    Very helpful, that two tips saved me a lot of searching and trying. I wonder why the templated I derived out of the Azure portal had these flaws.

  1. December 9, 2018

    […] Required parameter ‘adminPassword’ is missing (null). […]

Leave a Reply

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

Discover more from Microsoft 365

Subscribe now to keep reading and get access to the full archive.

Continue reading