> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flashduty.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Azure Monitor Integration

> Sync Azure Monitor alert events to Flashduty via webhook for automated alert noise reduction

Sync Azure Monitor alert events to Flashduty via webhook for automated alert noise reduction.

<div class="hide">
  ## In Flashduty

  ***

  You can obtain an integration push URL through either of these two methods:

  ### Using Private Integration

  Choose this method when you don't need to route alert events to different channels. It's simpler and recommended.

  <details>
    <summary>Expand</summary>

    1. Go to the Flashduty console, select **Channel**, and enter a specific channel's details page
    2. Select the **Integration** tab, click **Add Integration** to enter the integration page
    3. Choose **Azure Monitor** integration and click **Save** to generate a card
    4. Click the generated card to view the **push URL**, copy it for later use, and you're done
  </details>

  ### Using Shared Integration

  Choose this method when you need to route alerts to different channels based on the alert event's payload information.

  <details>
    <summary>Expand</summary>

    1. Go to the Flashduty console, select **Integration Center=>Alert Events** to enter the integration selection page
    2. Select **Azure Monitor** integration:
       * **Integration Name**: Define a name for this integration
    3. Configure the default route and select the corresponding channel (after the integration is created, you can go to `Route` to configure more routing rules)
    4. Click **Save** and copy the newly generated **push URL** for later use
    5. Done
  </details>
</div>

## In Azure Monitor

***

**Step 1: Configure Webhook**

<div class="md-block">
  1. Log in to your Azure Portal and select Monitor product;
  2. Go to `Alerts -> Action groups` page, click Create button to start editing;
  3. As shown in the image, select `Action type` as `Webhook` under `Actions`;
  4. Enter a name, copy and paste the integration push URL into the `URI` field, and make sure to `Enable` the common alert schema;
  5. Click Create button to save.

  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/integration/azure-mon/action_group.png" />

  **Step 2: Configure Alert Rule**

  1. Go to `Alerts -> Alert rules` page, click Create or select an existing policy to edit;
  2. As shown below, select the created Action group on the `Actions` page;

  <img alt="drawing" width="600" src="https://download.flashcat.cloud/flashduty/integration/azure-mon/alert_rule.png" />

  3. Save and wait for alerts to trigger.
</div>

## Status Mapping

***

<div class="md-block">
  Azure Monitor to Flashduty alert severity mapping:

  | Azure Monitor | Flashduty | Severity |
  | ------------- | --------- | -------- |
  | Sev0          | Critical  | Critical |
  | Sev1          | Warning   | Warning  |
  | Sev2          | Warning   | Warning  |
  | Sev3          | Info      | Info     |
  | Sev4          | Info      | Info     |
</div>
