Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created January 4, 2018 12:06
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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