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

# Azure Log Analytics

> Query Azure Monitor Log Analytics data from Decimal's AI agent for root cause analysis during support ticket investigation.

The Azure Log Analytics integration lets Decimal's AI agent query your Azure Monitor logs when investigating support tickets.

## What It Does

* **Queries Log Analytics tables** with KQL to find relevant log entries
* **Filters logs** by time range, table, and severity
* **Correlates log data** with ticket context for root cause analysis

## Setting Up Azure

Decimal connects with an Entra ID (Azure AD) service principal that has read-only access to your Log Analytics workspace. Set it up in the Azure portal, then collect four values for the connect form:

1. **Register an app** using Microsoft's [app registration guide](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app). From the app's Overview page, note the **Directory (tenant) ID** and **Application (client) ID**.
2. **Add a client secret** using the same guide's [add-credentials](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app#add-credentials) steps. Copy the secret **Value** right away: it shows only once, and it's a different field from the Secret ID.
3. **Assign the app the Log Analytics Reader role** on your workspace, following Microsoft's [manage access](https://learn.microsoft.com/en-us/azure/azure-monitor/logs/manage-access) guide (**Access control (IAM) → Add role assignment**).
4. **Get the Workspace ID** from the workspace **Overview** page. It's the **Workspace ID** (Customer ID), a GUID, not the workspace name or resource ID.

## Connecting Azure Log Analytics

1. **Open Integrations**: go to **Settings → Integrations**.
2. **Click Azure Log Analytics**: click the Azure Log Analytics row to open the configuration modal.
3. **Enter your credentials**: the four values from the Azure setup map to the four fields:
   * **Tenant ID**: the Directory (tenant) ID
   * **Client ID**: the Application (client) ID
   * **Client Secret**: the client secret value
   * **Workspace ID (Customer ID)**: the workspace GUID
     <img src="https://mintlify.s3.us-west-1.amazonaws.com/decimalai/images/azure-connect-modal.png" alt="Decimal Azure Log Analytics connect modal with the four credential fields" />
4. **Connect**: click **Connect**. Decimal validates the credentials against your workspace and lists the tables the agent can query. Wrong credentials return an error and nothing is stored.

*Use a dedicated app registration scoped to only the **Log Analytics Reader** role for best security.*
