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

Deny-Private-DNS-Zones.json Bug Report #1721

Closed
clissdo opened this issue Aug 9, 2024 · 1 comment
Closed

Deny-Private-DNS-Zones.json Bug Report #1721

clissdo opened this issue Aug 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@clissdo
Copy link

clissdo commented Aug 9, 2024

src/resources/Microsoft.Authorization/policyDefinitions/Deny-Private-DNS-Zones.json

Line 42 appears to have a redundant square bracket at the start of the paramater call that is causing an error on import

"policyRule": {
"if": {
"field": "type",
"equals": "Microsoft.Network/privateDnsZones"
},
"then": {
"effect": "[[parameters('effect')]"
}
}
}
}

@clissdo clissdo added the bug Something isn't working label Aug 9, 2024
@jtracey93
Copy link
Collaborator

Hey @clissdo,

This is not a bug but is the way we need policies to construct the portal experience as we document here in the contribution guide: https://github.com/Azure/Enterprise-Scale/wiki/ALZ-Contribution-Guide#escaping-policy-functions

If you want to copy a policy to manually, please use AzAdvertizer to do so, as an example for this policy: https://www.azadvertizer.net/azpolicyadvertizer/Deny-Private-DNS-Zones.html

image

Thanks

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
None yet
Development

No branches or pull requests

2 participants