PSArm
PSArm copied to clipboard
ARM keys/keywords that conflict with PowerShell keywords need a solution
For example:
"mode": "All",
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "..."
},
{
"anyOf": [
{
"field": "location",
"notEquals": "..."
},
{
"field": "name",
"notEquals": "..."
}
]
}
]
},
"then": {
"effect": "audit"
}
Generates a call like:
if {
...
}
then {
...
}
Some solutions:
- Add a
&
operator - Add a keyword prefix for these commands
- Find a new construct for these conditionals