Created
January 4, 2021 10:01
-
-
Save machv/2a23c486e2f1ea7c840b94f545b8a5bf to your computer and use it in GitHub Desktop.
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
| { | |
| "properties": { | |
| "displayName": "Enabled DDoS protection", | |
| "policyType": "Custom", | |
| "mode": "All", | |
| "metadata": { | |
| "category": "Network" | |
| }, | |
| "parameters": {}, | |
| "policyRule": { | |
| "if": { | |
| "allOf": [{ | |
| "field": "type", | |
| "equals": "Microsoft.Network/virtualNetworks" | |
| }] | |
| }, | |
| "then": { | |
| "effect": "AuditIfNotExists", | |
| "details": { | |
| "type": "Microsoft.Network/virtualNetworks", | |
| "name": "[field('name')]", | |
| "existenceCondition": { | |
| "allOf": [{ | |
| "field": "Microsoft.Network/virtualNetworks/enableDdosProtection", | |
| "equals": "true" | |
| }, | |
| { | |
| "field": "Microsoft.Network/virtualNetworks/ddosProtectionPlan", | |
| "notEquals": "" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment