Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Springstone committed Nov 21, 2024
1 parent 98e15f9 commit 299cfe5
Showing 1 changed file with 9 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,34 +45,17 @@
},
"policyRule": {
"if": {
"anyOf": [
{
"not": {
"count": {
"value": "[[parameters('mandatoryTags')]",
"name": "tagcount",
"where": {
"field": "tags",
"containsKey": "[[current('tagcount')]"
}
},
"equals": "[[length(parameters('mandatoryTags'))]"
"not": {
"count": {
"value": "[[parameters('mandatoryTags')]",
"name": "tagcount",
"where": {
"field": "tags",
"containsKey": "[[current('tagcount')]"
}
},
{
"not": {
"count": {
"value": "[[parameters('mandatoryTags')]",
"name": "tagnullcount",
"where": {
"value": "[[resourceGroup().tags[current('tagnullcount')]]",
"notMatch": ""
}
},
"equals": "[[length(parameters('mandatoryTags'))]"
}
}
]
"equals": "[[length(parameters('mandatoryTags'))]"
}
},
"then": {
"effect": "[[parameters('effect')]"
Expand Down

0 comments on commit 299cfe5

Please sign in to comment.