I try to create an Azure Function host key inside an ARM template where I first create the function, and then I create the key:
{
"type": "Microsoft.Web/sites/host/functionKeys",
"apiVersion": "2018-11-01",
"name": "[concat(parameters('FUNCTIONNAME'), '/default/test-key')]",
"properties": {
"name": "test-key",
"value": "test-value"
},
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('FUNCTIONNAME'))]"
]
}
It looks like, that the deployment will add the host key test-key
when the function is already deployed. If I deploy the template to a new resource group, the host key is not created. If I run the deployment a second time, it is.
Is there anything wrong with my dependsOn
declaration? Any other ideas?
dependsOn
something that is guaranteed to finish later than the function app itself? - 4c74356b41