Infrastructure
Azure Monitor: validate a Log Analytics table plan change before losing incident queries
A production runbook for qualifying a Log Analytics table move to Basic or Auxiliary, testing its consumers, and choosing promotion, hold or a return to Analytics.
A Log Analytics table receives a large volume of application logs. Ingestion is expensive, while the table appears to be queried only during incidents. Moving it from Analytics to Basic or Auxiliary looks like a local cost optimization. The setting also changes query scope, surrounding platform capabilities, query charging and, in some cases, the behavior of alerts, exports and dashboards.
The running case is a DCR-fed custom table named ApiGatewayAudit_CL. Operators use it for investigations, but an alert, a workbook and a rollback query still depend on it. The objective is not to select the cheapest plan. It is to prove which plan preserves operational decisions, then promote or stop the change before the next incident exposes a hidden dependency.
Freeze the decision contract
Treat the table as an operational product. Volume alone cannot select its plan.
change: CHG-OBS-824
workspace: law-platform-prod
table: ApiGatewayAudit_CL
current_plan: Analytics
candidate_plan: Basic
business_window: 30d
consumers:
alerts:
- gateway-auth-anomaly
dashboards:
- api-operations
incident_queries:
- gateway-request-timeline.kql
exports:
- none-confirmed
sentinel_rules:
- none-confirmed
gates:
query_results_match: true
alert_canary_received: true
investigation_latency_acceptable: true
scanned_gb_budget_defined: true
historical_access_tested: true
decision: pending
owner: platform-observability
rollback_owner: production-on-call Analytics remains the natural fit for continuous monitoring, real-time detection and latency-sensitive queries. Basic fits investigations within a 30-day interactive window. Auxiliary fits high-volume, low-touch data, but it must not carry an alerting signal because alerts aren’t supported on that plan.
Read the effective table state
Capture the plan, retention and schema from the control plane. Keep the raw response with the change record; a portal view is not reproducible evidence.
set -euo pipefail
SUBSCRIPTION="00000000-0000-0000-0000-000000000000"
RG="rg-observability-prod"
WORKSPACE="law-platform-prod"
TABLE="ApiGatewayAudit_CL"
API_VERSION="<supported-api-version>"
TABLE_URL="https://management.azure.com/subscriptions/${SUBSCRIPTION}/resourceGroups/${RG}/providers/Microsoft.OperationalInsights/workspaces/${WORKSPACE}/tables/${TABLE}?api-version=${API_VERSION}"
az rest --method get --url "$TABLE_URL" > table-before.json
jq '{name, plan: .properties.plan,
retentionInDays: .properties.retentionInDays,
totalRetentionInDays: .properties.totalRetentionInDays,
schema: .properties.schema}' table-before.json Confirm that the table type supports the candidate plan. Every table supports Analytics, but Basic and Auxiliary availability depends on the type; DCR-based custom tables support all three. Do not infer support from a similarly named table in another workspace.
Inventory consumers, not just queries
Searching observability repositories often exposes more dependencies than the workspace UI. Find the table in alert rules, workbooks, dashboards, notebooks, on-call scripts and validation pipelines.
TABLE="ApiGatewayAudit_CL"
rg -n --hidden --glob '!**/.git/**' "$TABLE|workspace\(" observability/ infrastructure/ runbooks/ pipelines/ > table-consumers.txt
test -s table-consumers.txt && sed -n '1,200p' table-consumers.txt Complete that search in the control plane: scheduled query rules, Microsoft Sentinel analytics rules, shared workbooks, data export rules, summary rules and automation that builds queries dynamically. Record the query scope, time window, frequency, owner and decision made from every result.
Scope matters. Basic and Auxiliary require Log Analytics workspace scope; a query launched from a resource context should not be assumed equivalent. An empty result after migration can therefore be a scope change rather than evidence that no event occurred.
Test the candidate plan’s functional contract
Build a canary table with the same type and schema, or select a representative noncritical table. Ingest a bounded, nonsensitive dataset covering the cases operations use: success, error, missing identity, slow response and correlated event.
[
{"TimeGenerated":"2026-10-24T08:00:00Z","RequestId":"canary-001","Route":"/orders","Status":200,"DurationMs":84,"Identity":"workload-orders"},
{"TimeGenerated":"2026-10-24T08:01:00Z","RequestId":"canary-002","Route":"/orders","Status":401,"DurationMs":41,"Identity":""},
{"TimeGenerated":"2026-10-24T08:02:00Z","RequestId":"canary-003","Route":"/billing","Status":503,"DurationMs":2300,"Identity":"workload-billing"}
] Replay the real queries against the canary, at workspace scope and with the same time range. Compare rows, aggregates and dimensions, as well as execution time and billable scanned volume.
ApiGatewayAuditCanary_CL
| where TimeGenerated > ago(30m)
| summarize Requests=count(),
Errors=countif(Status >= 500),
Unauthorized=countif(Status == 401),
P95DurationMs=percentile(DurationMs, 95)
by Route, bin(TimeGenerated, 5m)
| order by TimeGenerated asc, Route asc A syntactically valid query is not yet operational. The test must prove that latency fits the incident budget, the required time range is accessible and scan cost is bounded. Queries against Basic and Auxiliary are charged by scanned data; a dashboard refreshing every minute can erase the ingestion saving.
Qualify the capabilities around the table
Test each consumer instead of applying a theoretical platform matrix to everything.
Analytics
Full, optimized KQL queries
Workspace and resource query scope
Alerts, Insights, export and restore when supported by the table
Use: continuous monitoring and latency-sensitive decisions
Basic
KQL queries at workspace scope
30-day interactive window
Simple log alerts only, to be tested explicitly
Queries charged by scanned volume
Use: regular investigation and troubleshooting
Auxiliary
Workspace-scope queries across total retention
Less optimized queries charged by scanned volume
No alerts, data export or restore
Use: verbose data, audit and occasional access If a detection must remain fast, do not rebuild it under pressure after the plan change. Keep the source table on Analytics, or first materialize a tested aggregate signal into an Analytics table. A summary rule adds cost and must work at workspace scope; it is not an automatic reason to downgrade the source.
Canary without consuming the only return path
A table plan update is limited to one switch per table in a seven-day period. Changing production to “test and roll back” is therefore not a canary: if the test fails, an immediate move back to Analytics might be unavailable.
Use this sequence:
- test queries on a canary table already configured with the candidate plan;
- temporarily duplicate critical alerts or workbook panels against the canary;
- measure at least one representative usage window;
- stop if a consumer has no owner or query charging is unbounded;
- change the production table only after the matrix is signed off.
Apply the production change through the management API with an API version validated in the subscription.
set -euo pipefail
CANDIDATE_PLAN="Basic"
az rest --method patch --url "$TABLE_URL" --headers Content-Type=application/json --body "{"properties":{"plan":"${CANDIDATE_PLAN}"}}"
az rest --method get --url "$TABLE_URL" --query '{name:name,plan:properties.plan,retention:properties.retentionInDays,totalRetention:properties.totalRetentionInDays}' --output json The update doesn’t delete or move existing data, but access behavior depends on the plan active when the data was ingested. A query spanning a move to Auxiliary can return a warning and partial results; test time ranges before and after the boundary separately.
Validate after the switch
Run a known canary transaction, then verify ingestion, the incident query and every declared consumer. One healthy dashboard is insufficient.
validation:
control_plane:
- plan_matches_candidate
- retention_matches_contract
data_plane:
- canary_record_ingested
- expected_rows_and_dimensions_returned
- query_scope_is_workspace
- latency_within_incident_budget
- scanned_gb_within_budget
consumers:
- alert_fired_and_resolved
- workbook_panels_return_expected_values
- incident_query_exported_with_evidence
- sentinel_and_export_dependencies_rechecked
evidence:
- table-before.json
- table-after.json
- query-results
- alert-correlation-id
- measured-scan-cost Validate older data as well. Basic offers interactive access to the last 30 days; older data requires a search job. Auxiliary remains queryable across total retention, with a different performance profile. Long retention therefore does not guarantee the same investigation path.
Decide, contain or return to Analytics
PROMOTE BASIC
Investigations are limited to the last 30 days
Queries and simple alerts pass at workspace scope
Latency and scan cost remain within budget
No Analytics-only consumer remains
PROMOTE AUXILIARY
Data is verbose or audit-oriented, with no alerts
Occasional access across total retention is acceptable
No restore, data export or workspace replication requirement
Performance and scan cost have been measured
KEEP ANALYTICS
Signal drives continuous monitoring or real-time detection
Dependencies are unknown or lack owners
Resource scope, Insights or an unsupported capability is required
Net saving is unproven
CONTAIN AFTER A FAILED SWITCH
Enable validated compensating signals
Suspend automated decisions that depend on the table
Preserve evidence and the next eligible change date
Return to Analytics as soon as the switch limit allows After a bad switch, do not claim an immediate rollback when the weekly limit prevents it. The honest response is containment: restore an alternate signal, disable blind decisions and prepare the return to Analytics for the first eligible window. If production has not changed, the actual rollback is simply to reject the candidate and remove the canary cleanly.
Conclusion
A Log Analytics table plan is an operating contract, not merely an ingestion price. The decision must connect volume, investigation window, KQL scope, alerts, platform features, scan cost and the real ability to return.
Promote Basic or Auxiliary only after known consumers pass on a canary. Keep Analytics whenever a real-time signal, resource scope or unsupported capability remains necessary. The expected saving must survive a real incident, not only a monthly estimate.