Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Last active July 4, 2022 08:53
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/2196cf52cc28b7d16726465be1db4c02 to your computer and use it in GitHub Desktop.
Save justinyoo/2196cf52cc28b7d16726465be1db4c02 to your computer and use it in GitHub Desktop.
List of Access Keys from Output Values after ARM Template Deployment
{
"variables": {
"logicApp": {
"name": "my-logic-app",
"trigger": "manual"
},
"resourceId": "[resourceId('Microsoft.Logic/workflows/triggers', variables('logicApp').name, variables('logicApp').trigger)]",
"apiVersion": "[providers('Microsoft.Logic', 'workflows').apiVersions[0]]"
},
"resources": [],
"outputs": {
"endpointUrl": {
"type": "string",
"value": "[listCallbackUrl(variables('resourceId'), variables('apiVersion')).value]"
},
"path": {
"type": "string",
"value": "[listCallbackUrl(variables('resourceId'), variables('apiVersion')).basePath]"
},
"querystring": {
"type": "string",
"value": "[concat('api-version=', variables('apiVersion'), '&sp=', uriComponent(listCallbackUrl(variables('resourceId'), variables('apiVersion')).queries.sp), '&sv=', listCallbackUrl(variables('resourceId'), variables('apiVersion')).queries.sv, '&sig=', listCallbackUrl(variables('resourceId'), variables('apiVersion')).queries.sig)]"
},
"sasToken": {
"type": "string",
"value": "[concat('sp=', uriComponent(listCallbackUrl(variables('resourceId'), variables('apiVersion')).queries.sp), '&sv=', listCallbackUrl(variables('resourceId'), variables('apiVersion')).queries.sv, '&sig=', listCallbackUrl(variables('resourceId'), variables('apiVersion')).queries.sig)]"
}
}
}
@RutgerAlbers
Copy link

Thanks for sharing, your example helped me out!

@justinyoo
Copy link
Author

@RutgerAlbers No problem! Glad it helped!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment