When starting this blog I had decided to write a blog post every second day, and today when it’s 10:30 pm and after wrapping my office work I realized that today is my post day, so here is one about the simple issue (which took my lot of time) that I faced when deploying an ARM template using Blueprints.
Using ARM template I was provisioning SQL Server, and was passing the admin account password from Azure Key Vault. This is my secret inside the AKV:
When assigning the Blueprint I was passing this secret to the password parameter.
But when deploying the resources it was failing with the below error.
I tried many ridiculous things and wasted ~1 hour, and finally I realized that I haven’t ticked one check box which is “Enable Access to: Azure Resource Manager for template deployment” under key vaults access policies.
This checkbox is just not required for deploying the resources using Blueprint but also when deploying an ARM template using PowerShell.
I hope it helps!