Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logic app slack #8029

Closed
wants to merge 20 commits into from
Closed

Logic app slack #8029

wants to merge 20 commits into from

Conversation

shanice-skylight
Copy link
Collaborator

@shanice-skylight shanice-skylight commented Aug 13, 2024

DEVOPS PULL REQUEST

Related Issue

  • PagerDuty is not accessible due to actions outside of our control. So this resource was created to send Azure monitor alerts directly to a slack channel for On call engineers

Changes Proposed

  • There's a Logic App Workflow that integrates with an API connection.
    • The Logic App has a trigger called When a HTTP request is received that is initiated when an alert is sent, it invokes the REST API ( slack api uri) that will post it as a message to slack

Resources that are deployed to the resource group

Screenshot 2024-08-15 at 8 56 57 PM

Logic App architecture

Screenshot 2024-08-15 at 1 08 54 AM

Additional Information

  • We are unable to use a Webhook uri to send the alerts to slack due to slack having a custom schema required for messages so the Logic app allows us to use this custom schema

Testing

  • Via Azure Portal tester can manually send a sample payload to trigger Logic app workflow
    -- Confirm in the slack channel named #project-sr-on-call-alerts that the alert was successfully sent. It should look similar to the slack message below.
  • This PR has already been verified on pentest

Copy link

sonarcloud bot commented Aug 16, 2024

@shanice-skylight
Copy link
Collaborator Author

PagerDuty is back operational so this is no longer necessary. In the future this will serve as a backup if PagerDuty subscription gets cancelled .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant