Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PolicySetDefinition empty defaultValue is removed #874

Closed
jleechpe opened this issue Apr 16, 2024 · 1 comment · Fixed by #875
Closed

PolicySetDefinition empty defaultValue is removed #874

jleechpe opened this issue Apr 16, 2024 · 1 comment · Fixed by #875
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jleechpe
Copy link

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 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.

@Jefajers Jefajers self-assigned this Apr 17, 2024
@Jefajers Jefajers added triage bug Something isn't working and removed triage labels Apr 17, 2024
@Jefajers
Copy link
Member

Hi @jleechpe, thanks for reporting this.

I am able to reproduce the scenario and will pursue remediation for policy definitions and policy set definitions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants