Last active
April 28, 2018 02:10
-
-
Save derek1ee/d102dc070eaee60ecf251688ce0f3ac7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$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