Skip to content

Instantly share code, notes, and snippets.

@rtobkes
Created March 26, 2018 15:25
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 rtobkes/1f7fe8d812cc68847a11593aa71fae2f to your computer and use it in GitHub Desktop.
Save rtobkes/1f7fe8d812cc68847a11593aa71fae2f to your computer and use it in GitHub Desktop.
Azure Logic App Template for integrating with the WSH
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"Response": {
"inputs": {
"body": {
"status": "success"
},
"statusCode": 200
},
"kind": "Http",
"runAfter": {
"Switch": [
"Succeeded"
]
},
"type": "Response"
},
"Switch": {
"cases": {
"Connect": {
"actions": {},
"case": "connect"
},
"Disconnect": {
"actions": {},
"case": "disconnect"
}
},
"default": {
"actions": {}
},
"expression": "@triggerBody()?['event']",
"runAfter": {},
"type": "Switch"
}
},
"contentVersion": "1.0.0.0",
"outputs": {},
"parameters": {},
"triggers": {
"manual": {
"inputs": {
"schema": {
"properties": {
"event": {
"type": "string"
},
"friendlyname": {
"type": "string"
},
"hubguid": {
"type": "string"
}
},
"type": "object"
}
},
"kind": "Http",
"type": "Request"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment