Closed jain-ranjith closed 8 months ago
Hey @jain-ranjith, thanks for the issue.
How did you deploy this policy? As if you copied it from this repo and didn't use one of our implementation options (portal, bicep or terraform modules) you will have some extra escaping characters present that you dont need.
If you just want the definition, use the "copy definition" button via AzAdvertizer here for this policy and it will remove the escaping characters https://www.azadvertizer.net/azpolicyadvertizer/Deny-MgmtPorts-From-Internet.html
details on the escaping is here: https://github.com/Azure/Enterprise-Scale/wiki/ALZ-Contribution-Guide#escaping-policy-functions
Hi @jtracey93 ,
Thanks for the explanation.
I tried to "copy" the definition and used it Terraform. My bad that I did not read the instructions.
I will close the issue :)
Community Note
Description
This is resulting in error
The inner exception 'Evaluation result of language expression '[[parameters('ports')]' is type 'String', expected type is 'Array'.'.
at policy creation.