Management Security Baselines
Management services form the operational backbone of Azure security. Log Analytics Workspace is the central data platform for security logs, metrics, and alerts — it feeds Sentinel, Defender for Cloud, and all diagnostic telemetry across your environment.
Log Analytics Security Data Flow
Scroll sideways to see the whole diagram
Log Analytics Workspace
Centralized log ingestion and query platform that underpins Microsoft Sentinel, Defender for Cloud, and Azure Monitor. The workspace stores all security telemetry — sign-in logs, resource diagnostics, threat alerts, and custom application logs. Securing the workspace protects the integrity of your entire detection and response capability.
| Property | Value |
|---|---|
| Defender Plan | N/A — Log Analytics is the Defender backend |
| Azure Policy Built-in | Yes — CMK, Private Link, retention, workspace access mode |
| Network Isolation | Azure Monitor Private Link Scope (AMPLS) |
| Key Feature | Resource-context RBAC for per-table access control |
Baseline Controls
| Domain | Feature | Supported | Default | Responsibility |
|---|---|---|---|---|
| NS | Private Link Scope | ✓ | Manual | Customer |
| PA | RBAC Access Control | ✓ | Manual | Customer |
| DP | Encryption at Rest | ✓ | Default | Microsoft |
| DP | CMK Encryption | ✓ | Manual | Customer |
| BR | Data Retention | ✓ | Default | Customer |
Private Link Scope
RBAC Access Control
Encryption at Rest
CMK Encryption
Data Retention
Azure Portal Instructions
Log Analytics Workspace Baseline Configuration Workflow
- Navigate to your Log Analytics workspace resource in the Azure Portal.
- Under Settings, select Networking and configure Private Link scope to restrict ingestion and query to private networks.
- Under Settings, select Access control (IAM) and assign least-privilege roles (Log Analytics Reader, Contributor).
- For CMK, create or use a Log Analytics dedicated cluster, grant its managed identity Key Vault access, and link workspaces after cluster provisioning.
- Under Usage and estimated costs, select Data Retention and configure the retention period (30–730 days).
- Under Monitoring, verify that diagnostic settings for the workspace itself capture audit events.
Terraform: Hardened Log Analytics Workspace
resource "azurerm_log_analytics_workspace" "main" {
name = "law-security-prod"
resource_group_name = azurerm_resource_group.management.name
location = azurerm_resource_group.management.location
sku = "PerGB2018"
# BR-1: Retention configuration
retention_in_days = 90 # Interactive retention
# PA-7: Resource-context RBAC
internet_ingestion_enabled = false # NS-2: Disable public ingestion
internet_query_enabled = false # NS-2: Disable public queries
}
# NS-2: Azure Monitor Private Link Scope
resource "azurerm_monitor_private_link_scope" "main" {
name = "ampls-prod"
resource_group_name = azurerm_resource_group.management.name
ingestion_access_mode = "PrivateOnly"
query_access_mode = "PrivateOnly"
}
resource "azurerm_monitor_private_link_scoped_service" "law" {
name = "ampls-law-link"
resource_group_name = azurerm_resource_group.management.name
scope_name = azurerm_monitor_private_link_scope.main.name
linked_resource_id = azurerm_log_analytics_workspace.main.id
}
resource "azurerm_private_endpoint" "ampls" {
name = "pe-ampls-prod"
location = azurerm_resource_group.management.location
resource_group_name = azurerm_resource_group.management.name
subnet_id = azurerm_subnet.management.id
private_service_connection {
name = "psc-ampls-prod"
private_connection_resource_id = azurerm_monitor_private_link_scope.main.id
subresource_names = ["azuremonitor"]
is_manual_connection = false
}
}
# LT-3: Diagnostic settings for the workspace itself
resource "azurerm_monitor_diagnostic_setting" "law" {
name = "diag-law-audit"
target_resource_id = azurerm_log_analytics_workspace.main.id
log_analytics_workspace_id = azurerm_log_analytics_workspace.main.id
enabled_log { category = "Audit" }
enabled_log { category = "SummaryLogs" }
metric { category = "AllMetrics" }
}Azure Portal Instructions
Step-by-step instructions for configuring each Log Analytics Workspace control through the Azure Portal.
NS-2 — Private Link Scope
- Navigate to Azure Monitor Private Link Scopes in the Azure Portal
- Click + Create to create a new AMPLS resource
- Under Azure Monitor Resources, click + Add and select your Log Analytics workspace
- Navigate to the AMPLS resource > Networking > Private endpoint connections
- Click + Private endpoint and select the VNet, subnet, and DNS zone
- On the AMPLS resource, set Access mode to Private Only for both ingestion and query
- Verify that agents and queries can still reach the workspace over the private link
PA-7 — RBAC Access Control
- Navigate to your Log Analytics workspace in the Azure Portal
- In the left menu, select Access control (IAM)
- Click + Add role assignment
- Assign "Log Analytics Reader" for read-only access or "Log Analytics Contributor" for management
- For fine-grained control, set Access control mode to "Use resource or workspace permissions"
- This enables resource-context RBAC where users can only query logs from resources they have access to
- Navigate to Settings > Tables to configure per-table RBAC for sensitive data types
DP-4 — Encryption at Rest
This feature is managed by Microsoft and enabled by default. All log data, saved queries, and alert definitions are encrypted at rest with AES-256. No portal configuration is required.
DP-5 — CMK Encryption
- Navigate to Log Analytics clusters in the Azure Portal
- Click + Create to create a dedicated cluster (minimum 100 GB/day commitment tier)
- On the Encryption tab, select Customer-managed key
- Select the Key Vault and encryption key
- Configure the managed identity for Key Vault access
- Click Review + Create
- After the cluster is created, link your workspace: navigate to your workspace > Settings > Linked storage > Cluster link
BR-1 — Data Retention & Archive
- Navigate to your Log Analytics workspace in the Azure Portal
- In the left menu under General, select Usage and estimated costs
- Click Data Retention and set the interactive retention period
- For per-table retention, navigate to Settings > Tables
- Select a table and click the context menu (...) > Manage table
- Set the Interactive retention and Total retention periods
- Data beyond interactive retention moves to the archive tier at lower cost
Workspace Architecture
Evidence Collection
For the workspace that feeds every detection, the evidence has to show both the configuration and a log arriving through it:
The MCSB v1 control:
The control id - NS-2, PA-7, DP-4, DP-5, BR-1, LT-3, LT-5, LT-6 - against the workspace, cluster or AMPLS resource it was assessed on.
The resource id and the cluster link: The workspace id, the Log Analytics cluster id if one is attached, and the fact that the workspace is linked to the cluster - DP-5 is satisfied by the cluster, not by the workspace blade.
The value and its source:
The effective value of internetIngestionEnabled and internetQueryEnabled, the AMPLS access modes, the interactive and total retention per table, and the CMK key id, read from the ARM export rather than the pricing blade.
Proof of flow: A KQL query against one table the baseline depends on, with its time range and result count, run on the export date. A workspace that receives no logs satisfies no logging control, whatever its settings say.
False Positive Identification
- Enforced from a parent scope: AMPLS can link a workspace from a parent scope, and a second workspace in the same design may be the one receiving the diagnostics. Read the whole telemetry design before calling a table empty.
- Encrypted by the cluster: A workspace attached to a dedicated cluster inherits the cluster customer-managed key. DP-5 is satisfied at the cluster level even though the workspace shows no key of its own.
- Querying outside the retention window: Per-table retention can be shorter than workspace retention, and archived data is not in interactive queries. An empty result from a window you were never allowed to query is not a logging gap.
- Correctly marked not applicable: A workspace with no regulated data legitimately records DP-5 as not applicable, and a workspace whose queries stay inside the private link records NS-2 as satisfied by AMPLS rather than by a workspace-level endpoint.
Baseline Verification Checklist
Ingestion
- ☐ Confirm public ingestion and public query are both disabled once AMPLS is in place (NS-2).
- ☐ Confirm each resource the baseline covers has a diagnostic setting pointed at this workspace, including the workspace itself (LT-3).
- ☐ Confirm a query returns events from the last hour, per table and not just in aggregate (LT-5).
Access
- ☐ Confirm the access control mode is resource- or workspace-based permissions, with no blanket Contributor grants (PA-7).
- ☐ Confirm per-table RBAC is applied to the tables that hold sensitive data.
- ☐ Confirm the agents and the workspace connection use a managed identity or workspace key held in Key Vault, not a shared secret in plain text.
Retention and integrity
- ☐ Confirm interactive retention covers the detection window, and that archive covers the compliance window (LT-6).
- ☐ Confirm the cluster CMK is enabled and the key has a rotation policy (DP-5).
- ☐ Confirm an alert exists for workspace configuration changes, including retention and access mode.
Remediation & Defense
Name the Azure Monitor feature that closes the control - the workspace blade is where you land, not what you change.
Network
- • Azure Monitor Private Link Scope with ingestion and query set to private only, and a private endpoint in the management subnet (NS-2).
- • Public ingestion and query disabled on the workspace once the private endpoint is proven working, not before.
- • DNS zones for the monitor endpoints resolvable from every segment that runs an agent.
Access and encryption
- • Resource-context RBAC so a reader sees only the logs of resources they already hold access to (PA-7).
- • Log Analytics Reader instead of Contributor for anyone who only queries, with per-table RBAC for sensitive tables.
- • A dedicated cluster with a customer-managed key for regulated data, with the workspace linked to it (DP-5).
Retention and detection
- • Interactive retention sized to the investigation window, with the archive tier extending compliance retention (LT-6).
- • Diagnostic settings on the workspace itself, and Sentinel analytics on workspace and data-connector changes.
- • A data-connector health query in the monitoring workbook, so a silent connector is a visible failure (LT-5).