Instantly share code, notes, and snippets.

Embed
What would you like to do?
List of Access Keys from Output Values after ARM Template Deployment
{
"variables": {
"functionApp": {
"name": "my-function-app",
"functionName": "my-function"
},
"resourceId": "[resourceId('Microsoft.Web/sites/functions', variables('functionApp').name, variables('functionApp').functionName)]",
"apiVersion": "[providers('Microsoft.Web', 'sites').apiVersions[0]]"
},
"resources": [],
"outputs": {
"functionKey": {
"type": "string",
"value": "[listSecrets(variables('resourceId'), variables('apiVersion')).key]"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment