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

# Adding Azure Monitor as an alert source

> Send Azure Monitor alerts into incident.io to page the right people and open incidents.

Azure Monitor watches the metrics, logs and health of your Azure resources. Connect it to
incident.io and every Azure Monitor alert becomes an incident.io alert, so you can route it to a
team, escalate to whoever is on call, and open an incident when one matters.

| | |
| - | - |
| **Plans** | All plans |
| **Connects with** | An alert source. An Azure Monitor action group sends a webhook to incident.io when an alert rule fires |
| **What you get** | [Alerts](https://docs.incident.io/alerts/getting-started.md) and [alert attributes](https://docs.incident.io/alerts/attributes-and-priorities.md) to route, escalate and declare incidents from |

## Step 1: create the alert source

1. Go to [Alerts](https://app.incident.io/~/on-call/alert-routes/sources) in your incident.io dashboard
   and select the **Sources** tab.
2. Press **Create source**, search for **Azure Monitor**, and continue.
3. Give it a name.

The setup page shows an **Action Group Name**, **Display Name** and **URI** to paste into Azure.
Keep it open for the next step.

## Step 2: connect Azure Monitor

In the Azure portal:

1. Go to **Azure Monitor → Alerts → Action Groups**, press **Create**, and paste the **Action
   Group Name** and **Display Name** from incident.io.
2. Under **Actions**, add a **Webhook** action. Paste the **URI** from incident.io and set
   **Enable common alert schema** to **Yes**.
3. Create the action group and assign it to each alert rule you want to page on.

> [!WARNING]
>
> incident.io only accepts alerts in the [Azure Monitor common alert
> schema](https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-common-schema). If you leave **Enable
> common alert schema** off, incident.io can't process the alerts.

To send extra metadata, append query parameters to the URI, for example
`?team=engineering&service=api`.

## How alerts behave

* **Title and description.** The alert title is the alert rule's name, the description is the
  rule's description, and the alert links to the alert in the Azure portal.
* **Deduplication.** Webhooks for the same Azure alert, firing or resolving, update one alert.
* **Resolution.** The alert resolves when Azure sends a monitor condition of `Resolved`.
* **Attributes.** Custom properties on the alert rule and query parameters on the URI are the
  most reliable way to set [alert attributes](https://docs.incident.io/alerts/attributes-and-priorities.md), for example to
  map a `team` query parameter to a team.

## Step 3: check it works

Open the action group in the Azure portal and press **Test**, or wait for an alert rule to fire.
The alert should appear on the alert source page in incident.io within a few seconds.

If nothing arrives, check **Recent requests** on that page. Every request Azure sent is listed
there, including any that were rejected, with the reason.

***

Can't find the alert source you are looking for? Head to our
[integrations page](https://incident.io/integrations) or message us at
[support@incident.io](mailto:support@incident.io).
