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

Azure Policy definition

App Service Environment should be provisioned with latest versions

Name App Service Environment should be provisioned with latest versions
Azure Portal
Id eb4d34ab-0929-491c-bbf3-61e13da19f9a
Version 1.0.0
details on versioning
Category App Service
Microsoft docs
Description Only allow App Service Environment version 2 or version 3 to be provisioned. Older versions of App Service Environment require manual management of Azure resources and have greater scaling limitations.
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 eb4d34ab-0929-491c-bbf3-61e13da19f9a
Used in Initiatives none
JSON
{
  "properties": {
    "displayName": "App Service Environment should be provisioned with latest versions",
    "policyType": "BuiltIn",
    "mode": "Indexed",
    "description": "Only allow App Service Environment version 2 or version 3 to be provisioned. Older versions of App Service Environment require manual management of Azure resources and have greater scaling limitations.",
    "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/hostingEnvironments"
          },
          {
            "field": "kind",
            "equals": "ASEV1"
          }
        ]
      },
      "then": {
      "effect": "[parameters('effect')]"
      }
    }
  },
  "id": "/providers/Microsoft.Authorization/policyDefinitions/eb4d34ab-0929-491c-bbf3-61e13da19f9a",
  "type": "Microsoft.Authorization/policyDefinitions",
  "name": "eb4d34ab-0929-491c-bbf3-61e13da19f9a"
}