Using Azure Keyvault secrets with ARM templates
In my previous blog post I described how to deploy an VM using DevOps, fast and simple. But ofcourse you don’t want to store secrets in parameters files! Open your parameter file and search for adminPassword. It should look something like:
|
1 2 3 |
"adminPassword": { "value": "This1sReallyReallyNotMyP@ssw0rd!" }, |
Now replace it with the following
|
1 2 3 4 5 6 7 8 |
"adminPassword": { "reference": { "keyVault": { "id": "/subscriptions/<subscrcode>/resourceGroups/<rgkv>/providers/Microsoft.KeyVault/vaults/kvName" }, "secretName": "YourAdministratorPasswordAndthenameofyoursecret" } }, |
subscrcode = the code of […]
Lees verder… from Using Azure Keyvault secrets with ARM templates