Skip to content

Bug: LAW Id error after upgrading to version 12 with firewall insights set active #452

@moler-udi

Description

@moler-udi

Is there an existing issue for this?

  • I have searched the existing issues

Infrastructure as Code Type? (Required)

terraform

Starter Module? (Required)

terraform - platform_landing_zone

Expected Behaviour (Required)

Adding insight and law id, no error should be thrown in plan after upgrading to latest (12) version:

firewall_policy = {
  name = "$${primary_firewall_policy_name}"
  insights = {
	enabled                            = true
	default_log_analytics_workspace_id = "$${log_analytics_workspace_id}"
	retention_in_days                  = 5
  }
}

Actual Behaviour (Required)

Plan throws error msg when trying to run with insight block with law id in it.
Expect no error activating firewall policy insight with reference to default law id tfvar.

Image

It complains of lowercase G in id set in hub-and-spoke-vnet.tfvars example files, please update examples with changes below:

management_resource_group_id  = "/subscriptions/$${subscription_id_management}/resourceGroups/$${management_resource_group_name}"

log_analytics_workspace_id = "$${management_resource_group_id}/providers/Microsoft.OperationalInsights/workspaces/$${log_analytics_workspace_name}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Long Term ⌛We will do it, but will take a longer amount of time due to complexity/prioritiesType: Bug 🪲Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions