description | page_type | products | urlFragment | languages | |||
---|---|---|---|---|---|---|---|
This template allows you to create a Logic app that has a webhook to be used from an Azure Alert. When the Alert is triggered, it will post a message to a slack channel that you specify. You need to have a slack account to use this template. |
sample |
|
alert-to-slack-with-logic-app |
|
This template allows you to create a Logic app that has a webhook to be used from an Azure Alert. When the Alert is triggered, it will post a message to a slack channel that you specify. You need to have a slack account to use this template.
After the template deployment has completed, there is a manual step that you must complete before the messages can be posted to the channel. You have to log in to your Slack account via the Logic apps UI in order to consent to give Logic apps access to your Slack:
- Once the template has completed, navigate to the resource group you deployed it to.
- Find the Logic app in the resource list, and click it.
- Select the Edit button in the command bar.
- You'll now see the Logic app designer with "Connections" as being the last step.
- Click "Connections".
- Sign in, and acknowledge that Logic apps can access your account.
- Click the Green checkmark at the bottom of the Slack card.
- Click the Save button in the command bar.
To call this whenever your Alert fires, you need to paste in the webhook URI into the alert:
- Once the template has completed, navigate to the resource group you deployed it to.
- Under Settings, click on Deployments
- Select the top deployment.
- Click on Outputs. Copy the output called WebHookURI.
- Navigate to the alert you want to trigger the Logic app and select Edit.
- Scroll to the bottom and paste in the WebHook.
- Click save.
Tags: Microsoft.Web/connections, Microsoft.Logic/workflows, request, object, string, Http, ApiConnection