last sync: 2021-Aug-04 14:59:26 UTC

Azure Policy definition

App Service Apps should be injected into a virtual network

Name App Service Apps should be injected into a virtual network
Azure Portal
Id 72d04c29-f87d-4575-9731-419ff16a2757
Version 1.0.0
details on versioning
Category App Service
Microsoft docs
Description Injecting App Service Apps in a virtual network unlocks advanced App Service networking and security features and provides you with greater control over your network security configuration. Learn more at: https://docs.microsoft.com/azure/app-service/web-sites-integrate-with-vnet.
Mode Indexed
Type BuiltIn
Preview FALSE
Deprecated FALSE
Effect Default: Audit
Allowed: (Audit, Deny, Disabled)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2021-06-22 14:29:30 add 72d04c29-f87d-4575-9731-419ff16a2757
Used in Initiatives none
JSON
{
  "properties": {
    "displayName": "App Service Apps should be injected into a virtual network",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Injecting App Service Apps in a virtual network unlocks advanced App Service networking and security features and provides you with greater control over your network security configuration. Learn more at: https://docs.microsoft.com/azure/app-service/web-sites-integrate-with-vnet.",
    "metadata": {
      "version": "1.0.0",
      "category": "App Service"
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "Audit",
          "Deny",
          "Disabled"
        ],
        "defaultValue": "Audit"
      }
    },
    "policyRule": {
      "if": {
        "allOf": [
          {
            "field": "type",
            "equals": "Microsoft.Web/sites"
          },
          {
            "field": "Microsoft.Web/sites/virtualNetworkSubnetId",
            "equals": ""
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/72d04c29-f87d-4575-9731-419ff16a2757",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "72d04c29-f87d-4575-9731-419ff16a2757"
}