Created
March 26, 2018 15:25
-
-
Save rtobkes/1f7fe8d812cc68847a11593aa71fae2f to your computer and use it in GitHub Desktop.
Azure Logic App Template for integrating with the WSH
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
{ | |
"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