36. Route Container Apps logs through Azure Monitor
Date: 2026-10-12
Status
Proposed
Context
The Container Apps environment sends its logs with the legacy Log Analytics destination, which authenticates with the workspace shared key fetched at deployment. Microsoft documents that this destination uses the HTTP Data Collector API, whose support ended on 14 September 2026. Ingestion still works, but the API only receives critical security fixes. The workspace has no daily ingestion cap, so a logging loop could go past the 5 GB monthly free allowance and the 20 euro monthly budget.
The full analysis, with three options, is in the ArcKit record ARC-001-ADR-004 (projects/001-unicorn/decisions/ in the workspace).
Decision
We will switch the environment’s log destination to Azure Monitor and add a diagnostic setting that sends the console and system log categories to the existing Log Analytics workspace.
We will cap the workspace at 0.15 GB of ingestion per day, about 4.5 GB a month, and keep the 30-day retention included in the ingestion price.
The shared key no longer appears in the deployment. The services keep writing to stdout and stderr, so no code changes.
Consequences
Logs move to the resource-specific tables ContainerAppConsoleLogs and ContainerAppSystemLogs. Older logs stay in the _CL tables until they expire, and saved queries must use the new names. If the cap is reached, platform logs stop for the rest of the day; Application Insights keeps its own tables, with 90 days of free retention. Application logs are now kept 30 days on the platform side and 90 days in Application Insights, which updates the 90-day target in the data model. Adding OpenTelemetry tracing across the three services remains a separate, later decision. No container or connection changes in the IcePanel model.