Last active
January 27, 2025 21:33
-
-
Save ljtill/412ccb37e5511e684a0e8737ef3d9c6c to your computer and use it in GitHub Desktop.
Provides the ability to allow resource types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"mode": "All", | |
"policyRule": { | |
"if": { | |
"allOf": [ | |
{ | |
"not": { | |
"anyOf": [ | |
{ | |
"contains": "Microsoft.Network/applicationGateway", | |
"field": "type" | |
}, | |
{ | |
"contains": "Microsoft.Network/applicationSecurityGroups", | |
"field": "type" | |
}, | |
{ | |
"contains": "Microsoft.Network/networkSecurityGroups", | |
"field": "type" | |
}, | |
{ | |
"contains": "Microsoft.Network/loadBalancers", | |
"field": "type" | |
}, | |
{ | |
"contains": "Microsoft.Network/locations", | |
"field": "type" | |
}, | |
{ | |
"contains": "Microsoft.Network/networkInterfaces", | |
"field": "type" | |
}, | |
{ | |
"contains": "Microsoft.Network/privateDns", | |
"field": "type" | |
}, | |
{ | |
"contains": "Microsoft.Network/operations", | |
"field": "type" | |
}, | |
{ | |
"contains": "Microsoft.Network/privateEndpoint", | |
"field": "type" | |
} | |
] | |
} | |
}, | |
{ | |
"anyOf": [ | |
{ | |
"contains": "Microsoft.Network/", | |
"field": "type" | |
} | |
] | |
} | |
] | |
}, | |
"then": { | |
"effect": "deny" | |
} | |
}, | |
"parameters": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment