Azure / azure-policy

Repository for Azure Resource Policy built-in definitions and samples
MIT License
1.51k stars 1.09k forks source link

Deploy export to Log Analytics workspace for Microsoft Defender for Cloud data: Issue with deployed policy via terraform #1390

Open derchristian56 opened 1 month ago

derchristian56 commented 1 month ago

Description: I deployed this policy via terraform with following settings:

Policy itself applied on Management Group scope with a system assigned Managed Identity. Managed Identity was given the role of "Contributor" and "Log Analytics Contributor" also on Management Group scope.

All subscriptions below have Defender for Cloud enabled by another policy. Checked in the portal.

Expected behavior:

Current behavior:

Question: