Azure / enterprise-azure-policy-as-code

Enterprise-ready Azure Policy-as-Code (PaC) solution (includes Az DevOps pipeline)
https://azure.github.io/enterprise-azure-policy-as-code/
MIT License
403 stars 206 forks source link

Getting the following error when pulling existing exemptions in the plan #672

Open gregslack78 opened 1 month ago

gregslack78 commented 1 month ago

Get Policy Resources for EPAC environment 'AzureChinaCloud' at root scope /managementGroups/XX-XXX

Retrieved 1000 Policy definitions Retrieved 2000 Policy definitions Retrieved 2703 Policy definitions Retrieved 138 Policy Set definitions Retrieved 365 Policy Assignments Retrieved 7910 Role Assignments, collected 230 unique Role Assignments Retrieved 557 unique Role Definitions Retrieved 15 Policy Exemptions, collected 13 unique Policy Exemptions Get-AzPolicyExemptions: /home/AzDevOps/.local/share/powershell/Modules/EnterprisePolicyAsCode/10.3.3/internal/functions/Get-AzPolicyResources.ps1:137 Line | 137 | Get-AzPolicyExemptions ` | ~~~~~~~~ | Exception setting "resourceIdParts": "The property 'resourceIdParts' | cannot be found on this object. Verify that the property exists and can | be set."

[error]PowerShell exited with code '1'.