AzOps is a PowerShell module which deploys (Push) ARM Resource Templates & Bicep files at all Azure scope levels and exports (Pull) ARM resource hierarchy.
PolicySetDefinitions require a "defaultValue": for parameters. In cases where there is no default the json returned is "defaultValue": "" which is then omitted by the jq template.
Trying to update a policysetdefinition that was returned with empty values fails because it is missing the default values for the parameters. Adding them into the template is a work-around since the next Invoke-AzOpsPull will remove them once again.
Describe the bug
PolicySetDefinitions require a
"defaultValue":
for parameters. In cases where there is no default the json returned is"defaultValue": ""
which is then omitted by thejq
template.Trying to update a policysetdefinition that was returned with empty values fails because it is missing the default values for the parameters. Adding them into the template is a work-around since the next
Invoke-AzOpsPull
will remove them once again.