Azure logs and metrics.Your agent can inspect the current setup, prepare the connection and test access. You choose the account and resource scope, approve provider consent when needed, and authorize any required grants.
Connect Azure so Struct Agent can query the requested logs and metrics. Inspect the catalog and verify the intended tenant, subscription and granted access.Use the catalog’s current fields, choices and permission requirements. Reuse an existing healthy connection instead of creating a duplicate.An authorized operator runs the generated provider commands after checking the account and scope. Printing them does not apply grants. Preserve generated identifiers (such as an AWS External ID or Snowflake key-pair ID), then run the returned connection command with the real values.After connection, use Struct’s Azure sources panel to select subscriptions, Log Analytics workspaces and Azure Monitor workspaces. The CLI does not yet expose all discovered-source selection controls. Source selection controls discovery and direct targets; Azure role assignments enforce data access boundaries. Private endpoints also require a network path.Inspect
Replace the values in angle brackets.Permission catalog version
Inspect access and existing connections
Use a claimed workspace with permission to configure connections.Connect with the CLI
Supply credentials from approved secret storage throughAZURE_CLIENT_SECRET. The catalog describes which are needed for the selected authentication method. Do not put literal secrets in shell arguments or chat.Print the setup material first:Verify and recover
Use the returned connection ID:ok, health and missing permissions, not only the exit code. struct connections grant-command CONNECTION_ID prints repair instructions where supported; have an authorized operator apply them. For expired OAuth links, start the connection command again and use the new link. Do not reconnect to a different account silently.Verify a bounded operation for the requested job. Connection health proves checked access; it does not prove telemetry arrival, an investigation or alert delivery.What Struct reads
- Log Analytics tables through KQL: application logs, diagnostic logs, and resource logs from App Service, Functions, AKS, and other services.
- Metrics and existing alert rules through Monitoring Reader, in every selected subscription.
- Managed Prometheus series through PromQL, such as AKS container metrics or Temporal task queue backlog, from each selected Azure Monitor workspace.
Permissions
The app registration needs Log Analytics Reader and Monitoring Reader at subscription scope (workspace scope is not enough), plus Monitoring Contributor on the resource group for Struct’s alert rules if Auto Monitors is on. Managed Prometheus uses Monitoring Data Reader on each selected Azure Monitor workspace.Infrastructure inventory
List resources in every selected subscription.Granted by:Monitoring Reader.Permissions Struct uses: Microsoft.Resources/subscriptions/resources/read.Resource configuration
Read resource configuration through ARM and Resource Graph.Granted by:Monitoring Reader.Permissions Struct uses: */read.Metrics
Read metric definitions and time series.Granted by:Monitoring Reader.Permissions Struct uses: Microsoft.Insights/metricDefinitions/read, Microsoft.Insights/metrics/read.Logs
Query the primary and selected Log Analytics workspaces with KQL.Permissions Struct uses:
Microsoft.OperationalInsights/workspaces/query/read.Infrastructure change history
Read subscription Activity Log management events.Granted by:Monitoring Reader.Permissions Struct uses: Microsoft.Insights/eventtypes/values/read.Managed Prometheus metrics
Only needed for selected Azure Monitor workspaces: run PromQL. Struct checks each workspace with a live read and asks for a data grant where Azure denies it.Granted by:Monitoring Data Reader.Permissions Struct uses: Microsoft.Monitor/accounts/data/metrics/read.Manage Prometheus alerts
Only needed for Managed Prometheus: manage native rule groups in the alert resource group.Granted by:Monitoring Contributor.Permissions Struct uses: Microsoft.AlertsManagement/prometheusRuleGroups/write, Microsoft.AlertsManagement/prometheusRuleGroups/delete.Manage monitoring
Manage Struct’s alert rules and the action group that delivers alerts to Struct, in the resource group you choose.Permissions Struct uses:
Microsoft.Insights/metricAlerts/write, Microsoft.Insights/metricAlerts/delete, Microsoft.Insights/scheduledQueryRules/write, Microsoft.Insights/scheduledQueryRules/delete, Microsoft.Insights/actionGroups/write.- The two reader roles must be at subscription scope: Struct lists the subscription’s workspaces and reads alert rules across the subscription. Only the write role is narrowed to a resource group.
- Managed Prometheus is optional. Apply its workspace data grant once for each selected Azure Monitor workspace. The Azure sources panel checks actual PromQL access and shows source-specific grant commands when needed.
How to grant
Assign the roles (Azure CLI)
Assign the roles (Azure CLI)
Grant a selected Prometheus workspace
Grant a selected Prometheus workspace
2026-11-04.1. See permission changes.