Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Last active Jan 24, 2022
Embed
What would you like to do?
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

RutgerAlbers commented Jun 22, 2020

Thanks for sharing, your example helped me out!

@justinyoo
Copy link
Author

justinyoo commented Jun 22, 2020

@RutgerAlbers No problem! Glad it helped!

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