Governance Transforms Log Analytics - Azure/az-prototype GitHub Wiki

Log Analytics

Automatic corrections for Log Analytics workspace ARM property placement

Domain: monitoring


Checks (1)

Check Description
TFM-LA-001 Move disableLocalAuth from inside features block to properties root

TFM-LA-001

Move disableLocalAuth from inside features block to properties root

Rationale: ARM silently drops disableLocalAuth if nested inside properties.features. The property must be a direct child of properties for Log Analytics workspaces.
Agents: terraform-agent, bicep-agent

Targets

  • Microsoft.OperationalInsights/workspaces

Type: Regex
Search: '(features\s*=\s*\{[^}]*?)(\s*disableLocalAuth\s*=\s*\w+\s*\n?)([^}]*\})'
Replace: '\1\3'


⚠️ **GitHub.com Fallback** ⚠️