# Azure Monitor integration

Metrics, metric definitions, metric alerts, action groups and activity logs use ARM. Log Analytics and Application Insights expose read-only KQL query operations.

Canonical URL: https://opennodeflow.dev/wiki/integration-azure-monitor/
JSON reference: https://opennodeflow.dev/wiki/integration-azure-monitor/index.json
Source snapshot: 2026-10-23

Azure Monitor contributes **11 operations** in the current source catalog. Its implementation family belongs to the **Azure** pack. Add that pack to the chosen workspace before authoring with its definitions.

## Capabilities and boundaries

Metrics, metric definitions, metric alerts, action groups and activity logs use ARM. Log Analytics and Application Insights expose read-only KQL query operations.

KQL uses POST but remains a read effect. ARM, Log Analytics and Application Insights have different origins/audiences: use separate profiles. Bound timespan/query results and avoid interpreting one sample query as full retained history.

## Configure the connection

Use an authorized bearer credential stored under the secret name `AZURE_ARM_ACCESS_TOKEN` or a deliberate override.

The source default base origin is `https://management.azure.com`. Domains under example.com/example.net are placeholders for your own API, not running public services. Use the exact provider API origin and trusted certificate chain. A connection profile can supply credentials and repeated target defaults; profile credentials take precedence over node secret-name overrides. These developer nodes do not obtain tokens or refresh grants.

Read the chosen operation's permission entry before granting the account access. Least required target permissions are preferable to a broad administrator credential.

## First bounded read

Start with **Azure Monitor Query Resource Metrics**, which is declared as a read. Its synthetic argument fixture is:

```json
{
  "resourceUri": "/subscriptions/00000000-0000-4000-8000-000000000001/resourceGroups/sample-rg/providers/Microsoft.Compute/virtualMachines/sample-vm",
  "metricnames": "Percentage CPU",
  "timespan": "2026-01-01T00:00:00Z/2026-01-01T01:00:00Z",
  "interval": "PT1M",
  "aggregation": "Average"
}
```

Replace the synthetic resource identifiers with an explicitly authorized target before any real read. An example is not an installed workflow and contains no credential values.

Set `maxPages:1` initially and inspect the result, `status`, selected direct fields and any `request_id`. Lists return `count`, `has_more` and optional `continuation`; not every provider resource is paginated. Keep the same resource/query scope when resuming. Optional outputs remain absent when the provider does not supply them. Wire only the fields present on the selected branch.

## Available operations

| Operation | Effect | API route |
| --- | --- | --- |
| [Azure Monitor Query Resource Metrics](/wiki/reference-dev-azure-monitor-metrics-query/) | read | `GET {resourceUri*}/providers/Microsoft.Insights/metrics` |
| [Azure Monitor List Resource Metric Definitions](/wiki/reference-dev-azure-monitor-metric-definitions-list/) | read | `GET {resourceUri*}/providers/Microsoft.Insights/metricDefinitions` |
| [Azure Monitor List Subscription Metric Alerts](/wiki/reference-dev-azure-monitor-metric-alerts-list/) | read | `GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/metricAlerts` |
| [Azure Monitor List Resource Group Metric Alerts](/wiki/reference-dev-azure-monitor-group-metric-alerts-list/) | read | `GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts` |
| [Azure Monitor Get Metric Alert](/wiki/reference-dev-azure-monitor-metric-alert-get/) | read | `GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}` |
| [Azure Monitor List Subscription Action Groups](/wiki/reference-dev-azure-monitor-action-groups-list/) | read | `GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/actionGroups` |
| [Azure Monitor List Resource Group Action Groups](/wiki/reference-dev-azure-monitor-group-action-groups-list/) | read | `GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups` |
| [Azure Monitor Get Action Group](/wiki/reference-dev-azure-monitor-action-group-get/) | read | `GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}` |
| [Azure Monitor List Bounded Activity Log](/wiki/reference-dev-azure-monitor-activity-log-list/) | read | `GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/eventtypes/management/values` |
| [Azure Monitor Query Log Analytics](/wiki/reference-dev-azure-monitor-log-analytics-query/) | read | `POST /v1/workspaces/{workspaceId}/query` |
| [Azure Monitor Query Application Insights](/wiki/reference-dev-azure-monitor-application-insights-query/) | read | `POST /v1/apps/{appId}/query` |

Each linked reference contains exact source arguments, named socket contracts, configuration schema, response shape and synthetic data. Source keys must be resolved to the installation's actual definition/version before graph editing.

## Bounds, changes and recovery

The shared developer adapter defaults to a 15-second request timeout, a 1 MiB response bound, one page and 1,000 accumulated items. Configurable maxima are 120 seconds, 3,000,000 response bytes, 20 pages and 5,000 items. Choose smaller limits where appropriate; an excessive response fails rather than becoming a silently complete list.

Read HTTP status and provider-specific success markers. Rejected authentication, permission failures and invalid requests need configuration correction. Rate limiting needs deliberate later scheduling. Same-origin/API-root continuation checks prevent sending credentials to an unrelated next link.

All operations in this source family are reads. A read can still expose sensitive data and consume provider quota; restrict target scope and logs. No mutation, reconciliation or lifecycle action is implied by installing this pack.

The reference is source-derived. Synthetic fixtures and isolated worker proof do not establish your account permissions, API availability or live delivery. See [shared setup](/wiki/integration-setup/) and [pack behavior](/wiki/library-packs/).

## Provider contract references

- [Provider reference 1](https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/monitor/resource-manager/Microsoft.Insights/Insights/stable/2023-10-01/metrics_API.json)
- [Provider reference 2](https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/monitor/resource-manager/Microsoft.Insights/Insights/stable/2023-10-01/metricDefinitions_API.json)
- [Provider reference 3](https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/monitor/resource-manager/Microsoft.Insights/Insights/stable/2018-03-01/metricAlert_API.json)
- [Provider reference 4](https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/monitor/resource-manager/Microsoft.Insights/Insights/stable/2023-01-01/actionGroups_API.json)
- [Provider reference 5](https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/monitor/resource-manager/Microsoft.Insights/Insights/stable/2015-04-01/activityLogs_API.json)
- [Provider reference 6](https://learn.microsoft.com/en-us/rest/api/logsquery/query/execute?view=rest-logsquery-v1)
- [Provider reference 7](https://learn.microsoft.com/en-us/rest/api/application-insights/query/execute?view=rest-application-insights-v1)

---

## Documentation provenance

- `../OpenNodeFlow-Library/docs/DEVELOPER-PACKS.md`
- `../OpenNodeFlow-Library/work/developer-packs-20261022/CONTRACT.md`
- `../OpenNodeFlow-Library/work/developer-packs-20261022/cloud-research.md`

This page describes maintained source, not a live inventory or an authorization to perform actions.
