last sync: 2021-Sep-24 16:09:49 UTC

Azure Policy definition

[Deprecated]: Ensure that '.NET Framework' version is the latest, if used as a part of the Web app

Name [Deprecated]: Ensure that '.NET Framework' version is the latest, if used as a part of the Web app
Azure Portal
Id 843664e0-7563-41ee-a9cb-7522c382d2c4
Version 1.0.0-deprecated
details on versioning
Category App Service
Microsoft docs
Description This policy is not required since Azure App Service automatically updates and maintains the .NET Framework versions installed on the platform.
Mode Indexed
Type BuiltIn
Preview FALSE
Deprecated True
Effect Default: AuditIfNotExists
Allowed: (AuditIfNotExists, Disabled)
Used RBAC Role none
History
Date/Time (UTC ymd) (i) Change type Change detail
2020-09-02 14:03:46 change Previous DisplayName: Ensure that '.Net Framework' version is the latest, if used as a part of the Web app
2019-11-12 19:11:12 add 843664e0-7563-41ee-a9cb-7522c382d2c4
Used in Initiatives none
JSON
{
  "displayName": "[Deprecated]: Ensure that '.NET Framework' version is the latest, if used as a part of the Web app",
  "policyType": "BuiltIn",
  "mode": "Indexed",
  "description": "This policy is not required since Azure App Service automatically updates and maintains the .NET Framework versions installed on the platform.",
  "metadata": {
    "version": "1.0.0-deprecated",
    "category": "App Service",
    "deprecated": true
  },
  "parameters": {
    "effect": {
      "type": "String",
      "metadata": {
        "displayName": "Effect",
        "description": "Enable or disable the execution of the policy"
      },
      "allowedValues": [
        "AuditIfNotExists",
        "Disabled"
      ],
      "defaultValue": "AuditIfNotExists"
    }
  },
  "policyRule": {
    "if": {
      "allOf": [
        {
          "field": "type",
          "equals": "Microsoft.Web/sites"
        },
        {
          "field": "kind",
          "like": "app*"
        }
      ]
    },
    "then": {
      "effect": "[parameters('effect')]",
      "details": {
        "type": "Microsoft.Web/sites/config",
        "existenceCondition": {
          "field": "Microsoft.Web/sites/config/web.netFrameworkVersion",
          "in": [
            "v3.0",
            "v4.0"
          ]
        }
      }
    }
  }
}