Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created January 4, 2018 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/f1d93c7412ece27e0351fef33f564926 to your computer and use it in GitHub Desktop.
Save justinyoo/f1d93c7412ece27e0351fef33f564926 to your computer and use it in GitHub Desktop.
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