deployment - Create database account on Azure with specific password using ARM templates -


i want run azure resource group deployment part of deployment process. should create 2 resources: app service (asp.net core) , documentdb account. after need store account credentials (account name , password) in app settings block of app service. configure app service read password existing azure key vault. if database account not created yet, password generated automatically , need update manually.

is possible create database account specifying password (reading value key vault)? way deployment automated whether database account created or not.

i don't see where's problem in one, specify secret in template:

"parameters": {   "adminpassword": {     "reference": {       "keyvault": {         "id": "/subscriptions/{guid}/resourcegroups/{group-name}/providers/microsoft.keyvault/vaults/{vault-name}"       },        "secretname": "sqladminpassword"      }    } } 

https://azure.microsoft.com/en-us/documentation/articles/resource-manager-keyvault-parameter/


Comments