9 min read

Management

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.

1
Services
5
Controls
4
Customer-Owned
3
Manual Controls
1/1
Private Endpoint
0/1
Defender Coverage

Log Analytics Security Data Flow

Four sources feed the workspace under four different collection mechanisms, and each consumer query crosses the private link rather than the public query endpoint. The workspace zone is the only place AMPLS and the CMK cluster apply.

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.

PropertyValue
Defender PlanN/A — Log Analytics is the Defender backend
Azure Policy Built-inYes — CMK, Private Link, retention, workspace access mode
Network IsolationAzure Monitor Private Link Scope (AMPLS)
Key FeatureResource-context RBAC for per-table access control

Baseline Controls

NS ✓ Supported

Private Link Scope

○ Manual Customer
PA ✓ Supported

RBAC Access Control

○ Manual Customer
DP ✓ Supported

Encryption at Rest

● Default Microsoft
DP ✓ Supported

CMK Encryption

○ Manual Customer
BR ✓ Supported

Data Retention

● Default Customer

Azure Portal Instructions

Log Analytics Workspace Baseline Configuration Workflow
  1. Navigate to your Log Analytics workspace resource in the Azure Portal.
  2. Under Settings, select Networking and configure Private Link scope to restrict ingestion and query to private networks.
  3. Under Settings, select Access control (IAM) and assign least-privilege roles (Log Analytics Reader, Contributor).
  4. For CMK, create or use a Log Analytics dedicated cluster, grant its managed identity Key Vault access, and link workspaces after cluster provisioning.
  5. Under Usage and estimated costs, select Data Retention and configure the retention period (30–730 days).
  6. 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
  1. Navigate to Azure Monitor Private Link Scopes in the Azure Portal
  2. Click + Create to create a new AMPLS resource
  3. Under Azure Monitor Resources, click + Add and select your Log Analytics workspace
  4. Navigate to the AMPLS resource > Networking > Private endpoint connections
  5. Click + Private endpoint and select the VNet, subnet, and DNS zone
  6. On the AMPLS resource, set Access mode to Private Only for both ingestion and query
  7. Verify that agents and queries can still reach the workspace over the private link
PA-7 — RBAC Access Control
  1. Navigate to your Log Analytics workspace in the Azure Portal
  2. In the left menu, select Access control (IAM)
  3. Click + Add role assignment
  4. Assign "Log Analytics Reader" for read-only access or "Log Analytics Contributor" for management
  5. For fine-grained control, set Access control mode to "Use resource or workspace permissions"
  6. This enables resource-context RBAC where users can only query logs from resources they have access to
  7. 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
  1. Navigate to Log Analytics clusters in the Azure Portal
  2. Click + Create to create a dedicated cluster (minimum 100 GB/day commitment tier)
  3. On the Encryption tab, select Customer-managed key
  4. Select the Key Vault and encryption key
  5. Configure the managed identity for Key Vault access
  6. Click Review + Create
  7. After the cluster is created, link your workspace: navigate to your workspace > Settings > Linked storage > Cluster link
BR-1 — Data Retention & Archive
  1. Navigate to your Log Analytics workspace in the Azure Portal
  2. In the left menu under General, select Usage and estimated costs
  3. Click Data Retention and set the interactive retention period
  4. For per-table retention, navigate to Settings > Tables
  5. Select a table and click the context menu (...) > Manage table
  6. Set the Interactive retention and Total retention periods
  7. Data beyond interactive retention moves to the archive tier at lower cost

Workspace Architecture

Use a single workspace per region for most organizations. Multi-workspace designs add complexity to cross-workspace queries and Sentinel analytics. Use resource-context RBAC and per-table retention to control access and costs within a single workspace instead of splitting into multiple workspaces.

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).