Management and monitoring¶
Microsoft's design area: Management.
What this area is¶
How the platform team sees what changed, what is unhealthy, and what to do about it. The landing zone provides the workspace, the diagnostic routing, and the alert path. Application teams send their own resource logs to that workspace or to one the platform allows.
What an enterprise does¶
- One Log Analytics workspace in the management subscription per region, or a small number of them with a documented reason for more. Sentinel, if used, is a conscious cost decision on top of that workspace.
- Activity logs for every subscription sent to the workspace. Resource diagnostic settings deployed by policy (DeployIfNotExists) for the resource types that matter, with a daily cap or a commitment tier sized from real volume.
- Retention chosen per table. The first 31 days of Analytics Logs retention are included with ingestion. Longer interactive retention and archive are extra.
- Alert rules and an action group that reaches a human. Azure Monitor Agent on VMs. Update management and backup for anything that is still an IaaS server.
- Dashboards or a workbook the platform team actually opens.
What this lab implements¶
A workspace log-alz-aue-001 in rg-management-aue-001:
- SKU
PerGB2018(pay-as-you-go Analytics Logs). No commitment tier. The 100 GB/day tier is a different product decision. - Retention 30 days, inside the included 31.
- Daily cap 0.1 GB. A full cap every day of a 31-day month is 3.1 GB, which sits inside the 5 GB per billing account that the retail meter prices at USD 0. If the cap is hit, further logs that day are dropped.
- Public ingestion and query stay enabled. A private link would be another billed resource, and this workspace has no production data.
- Resource-permission mode on the workspace (
enableLogAccessUsingOnlyResourcePermissions), so a reader of a resource can query that resource's logs without workspace-wide rights.
Subscription activity logs go to the workspace: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy, Autoscale, ResourceHealth.
Each virtual network gets a diagnostic setting for VMProtectionAlerts only. Metrics are not sent. Flow logs are not enabled.
The audit policy alz-audit-vnet-diag flags a virtual network with no diagnostic setting at all. The lab creates the setting itself, so the audit should go compliant after the policy evaluation cycle. The deployment does not wait for that cycle, and a non-compliant audit does not fail the deployment.
What this lab simplifies¶
- No action group beyond the budget emails, no alert rules, no workbook.
- No VM insights, no change tracking, no backup, no update management.
- No DeployIfNotExists initiative. Enterprises use one. Copying an ALZ diagnostic initiative into this subscription without reading its remediation cost is how the daily cap gets hit by resources you did not mean to monitor.
- The daily cap is a lab safety rail. A client management workspace sized at 0.1 GB will drop the logs you needed after an incident. Size it from data, then cap above that with an alert as the warning.
- Activity log export is low volume here and is still ingestion. It counts toward the cap.
Where the code is¶
infra/modules/management/log-analytics.bicep- Diagnostic settings in the network modules and the activity-log resource in
infra/main.bicep infra/modules/policy/audit-diagnostics.bicep- Cost model