Open knuterik-ballestad opened 11 months ago
Hey, this module only deploys the Log Analytics Workspace, not policies. What module are you using for that?
If you are using the caf-enterprise-scale module see: https://github.com/Azure/terraform-azurerm-caf-enterprise-scale/issues/850#issuecomment-1794687242
It describes how to pass in an existing LA workspace id to the module
Is there an existing issue for this?
Greenfield/Brownfield provisioning
greenfield
Terraform Version
1.6.2
Module Version
0.1.5
AzureRM Provider Version
Affected Resource(s)/Data Source(s)
azurerm.management
Terraform Configuration Files
tfvars variables values
Debug Output/Panic Output
Expected Behaviour
Log analytics workspace with name "ALZ-law" created OK
Policies that enforces logging to /sub../xxx/res..Gr../ALZ-mgmt/providers/Microsoft.OperationalInsights/workspaces/ALZ-law" expected!
Actual Behaviour
Policies that enforced logging to /sub../xxx/res..Gr../ALZ-mgmt/providers/Microsoft.OperationalInsights/workspaces/ALZ-la" was deployed instead!
Quick fix was to manually create a log analytics workspace named "ALZ-la" in addition to the created "ALZ-law"
Steps to Reproduce
No response
Important Factoids
No response
References
No response