{
   "properties":{
      "displayName":"App Service should disable public network access",
      "policyType":"BuiltIn",
      "mode":"Indexed",
      "description":"Disabling public network access improves security by ensuring that the app service is not exposed on the public internet. Creating private endpoints can limit exposure of the app service. Learn more at: https://aka.ms/app-service-private-endpoint.",
      "metadata":{
         "version":"1.0.0-deprecated",
         "category":"App Service",
         "deprecated": true
      },
      "parameters":{
         "effect":{
            "type":"string",
            "defaultValue":"Audit",
            "allowedValues":[
               "Audit",
               "Disabled"
            ],
            "metadata":{
               "displayName":"Effect",
               "description":"Enable or disable the execution of the policy"
            }
         }
      },
      "policyRule":{
         "if":{
            "allOf":[
               {
                  "field":"type",
                  "equals":"Microsoft.Web/sites/config"
               },
               {
                  "field":"Microsoft.Web/sites/config/PublicNetworkAccess",
                  "notEquals":"Disabled"
               }
            ]
         },
         "then":{
            "effect":"[parameters('effect')]"
         }
      }
   },
   "id":"/providers/Microsoft.Authorization/policyDefinitions/d79ab062-dffd-4318-8344-f70de714c0bc",
   "name":"d79ab062-dffd-4318-8344-f70de714c0bc"
}