Closed Marc013 closed 6 months ago
@Marc013 To assign a policy definition normally you would need to provide a value for the parameter. What is being set in the assignment or initiative?
@Bernie, I was informed this policy was not correctly used (value 443 was provided as parameter input) and will be removed shortly.
Existing rule
No response
Description of the issue
Unable to export policy assignment data to PSRule when a default value for a parameter is not provided or set.
Error messages
An error occurred evaluating expression '[parameters('allowedAddressRanges')]' line 64. The parameter named 'allowedAddressRanges' was not set or a defaultValue was defined.
Reproduction
Exporting policy assignment data to custom PSRule using pwsh function
Export-AzPolicyAssignmentRuleData
Version of PSRule
2.9.0
Version of PSRule for Azure
1.33.2
Additional context
If desired, I can provide another custom policy that is experiencing this same issue.