Microsoft.Authorization/policyassigments/write
permission.assignedBy
property.or
, allOf
, noneOf
) and if
statements.{
"policyRule": {
"if": {
"not": {
"field": "location",
"in": "[parameters('allowedLocations')]"
}
},
"then": {
"effect": "audit"
},
"parameters": {
"allowedLocations": {
"type": "Array",
"metadata": {
"description": "The list of allowed locations for resources",
"displayName": "Allowed Locations",
"strongType": "location"
}
}
}
}
}