Azure / avdaccelerator

AVD Accelerator deployment automation to simplify the setup of AVD (Azure Virtual Desktop) based on best practices
MIT License
331 stars 210 forks source link

[BICEP] - deployCustomPolicyMonitoring - InvalidCreateRemediationRequest #539

Closed OrionWithrow-OHIT closed 8 months ago

OrionWithrow-OHIT commented 10 months ago

What happened? Provide a clear and concise description of the bug, including deployment details.

When avdDeployMonitoring and deployCustomPolicyMonitoring = true, deployment fails with the following error

Please provide the correlation id associated with your error or bug.

194ecb07-59d8-44ab-89a0-1f7914565ff4

What was the expected outcome?

Azure policy should have been created

Relevant log output

"details": [
                    {
                      "code": "InvalidCreateRemediationRequest",
                      "message": "The request to create remediation 'policy-set-avd-diagnostics-1' is invalid. The policy assignment '/subscriptions/###########/resourceGroups/MYRGNAME/providers/Microsoft.Authorization/policyAssignments/policy-set-deploy-avd-diagnostics-to-log-analytics' assigns a policy set definition. Remediations must specify a single policy definition reference ID within the policy set definition."
                    }
danycontre commented 10 months ago

@OrionWithrow-OHIT thanks for reporting the issue, we are reviewing it.

danycontre commented 9 months ago

@yshafner

yshafner commented 9 months ago

@danycontre @OrionWithrow-OHIT I ran the LZA with monitoring and the monitoring policies and had no issues.

Screenshot 2024-01-08 163505 Screenshot 2024-01-08 163206
danycontre commented 8 months ago

Unable to reproduce the issue or get comments from requestor.