[BUG] Policy as rules compatibility with Az.Resources v7.x #2970
Labels
bug
Something isn't working
feature: policy-as-rules
Issues that related to exporting policy as rules.
Milestone
Existing rule
No response
Description of the issue
Updates to
Az.Resources
in v7.x have introduced a breaking change that is not compatible with theExport-AzPolicyAssignmentData
implementation.We should rollback to v6.7.0 and update docs to reflect the issue until dependency on this module can be removed.
Error messages
Reproduction
Export-AzPolicyAssignmentData
.Version of PSRule
2.9.0
Version of PSRule for Azure
1.27.0
Additional context
To work around this issue use Az.Resource v6.x. If multiple versions of
Az.Resources
are installed, specifically import the required version before running PSRule to prevent the latest version from being automatically imported.For example:
The text was updated successfully, but these errors were encountered: