How do I list the keys of an azure function app using the listKeys ARM function?
My template:
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"resources": [],
"outputs": {
"referenceOutput": {
"type": "object",
"value": "[listkeys(resourceId('Microsoft.Web/sites/functions', 'my-function-app','my-function'),'2016-08-01').key]"
}
}
And then run with:
az group deployment create -g my-rg --template-file ./arm.json --mode incremental
Error:
No route registered for '/api/functions/my-function/listkeys?api-version=2016-08-01'
Try following template.
More information about this please refer to this question.
You also could use Function App Api to list this.
If you use bash shell, you could use the following example.