Skip to content

Instantly share code, notes, and snippets.

@derek1ee
Last active April 28, 2018 02:10
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 derek1ee/d102dc070eaee60ecf251688ce0f3ac7 to your computer and use it in GitHub Desktop.
Save derek1ee/d102dc070eaee60ecf251688ce0f3ac7 to your computer and use it in GitHub Desktop.
{
"$connections": {
"value": {
"azureeventgrid_1": {
"connectionId": "",
"id": "/subscriptions/{0}/providers/Microsoft.Web/locations/{1}/managedApis/azureeventgrid"
}
}
},
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {},
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {
"$connections": {
"defaultValue": {},
"type": "Object"
}
},
"triggers": {
"When_a_resource_event_occurs": {
"inputs": {
"body": {
"properties": {
"destination": {
"endpointType": "webhook",
"properties": {
"endpointUrl": "@{listCallbackUrl()}"
}
},
"filter": {
"subjectEndsWith": ".jpg"
},
"topic": "null"
}
},
"host": {
"connection": {
"name": "@parameters('$connections')['azureeventgrid_1']['connectionId']"
}
},
"path": "/subscriptions//providers/@{encodeURIComponent('Microsoft.Storage.StorageAccounts')}/resource/eventSubscriptions",
"queries": {
"x-ms-api-version": "2017-09-15-preview"
}
},
"splitOn": "@triggerBody()",
"type": "ApiConnectionWebhook"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment