Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
azuredeploy.json
azuredeploy.parameters.json
metadata.json

README.md

Logic app that posts a message to a slack channel when an alert fires

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.

Authorizing with Slack

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:

  1. Once the template has completed, navigate to the resource group you deployed it to.
  2. Find the Logic app in the resource list, and click it.
  3. Select the Edit button in the command bar.
  4. You'll now see the Logic app designer with "Connections" as being the last step.
  5. Click "Connections".
  6. Sign in, and acknowledge that Logic apps can access your account.
  7. Click the Green checkmark at the bottom of the Slack card.
  8. Click the Save button in the command bar.

Call from your Alerts

To call this whenever your Alert fires, you need to paste in the webhook URI into the alert:

  1. Once the template has completed, navigate to the resource group you deployed it to.
  2. In the Essentials click on the Last deployment link.
  3. Select the top deployment.
  4. This should show you the Outputs for the deployment. Copy the output called WebHookURI.
  5. Navigate to the alert you want to trigger the Logic app and select Edit.
  6. Scroll to the bottom and paste in the WebHook.
  7. Click save.