Bylaw

Gallery › Network › Azure Community Policy

Audit changes to route tables (UDRs)

Doesn't convert yet Policy Audit Disabled Mode All Version 1.0.0

Audit changes to route tables (UDRs)

ConvertTo-Bylaw can't convert this policy yet:

Azure Policy JSONazurepolicy.json · 40 lines
{
  "name": "8a722373-6b3d-4cfc-bb75-d6e8b8019c0e",
  "type": "Microsoft.Authorization/policyDefinitions",
  "properties": {
    "displayName": "Audit changes to route tables (UDRs)",
    "description": "Audit changes to route tables (UDRs)",
    "metadata": {
      "category": "Network",
      "version": "1.0.0"
    },
    "mode": "All",
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "Audit or Disabled the execution of the Policy"
        },
        "allowedValues": [
          "Audit",
          "Disabled"
        ],
        "defaultValue": "Audit"
      }
    },
    "policyRule": {
      "if": {
        "anyOf": [
          {
            "source": "action",
            "like": "Microsoft.Network/routeTables/*"
          }
        ]
      },
      "then": {
        "effect": "[parameters('effect')]"
      }
    }
  }
}

Source: policyDefinitions/Network/audit-changes-to-route-tables-udrs/azurepolicy.json in Azure/Community-Policy, under the MIT licence.