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

Azure Policy definition

[Deprecated]: Audit Web Applications that are not using latest supported Python Framework

Name [Deprecated]: Audit Web Applications that are not using latest supported Python Framework
Azure Portal
Id 46544d7b-1f0d-46f5-81da-5c1351de1b06
Version 1.0.0-deprecated
details on versioning
Category Security Center
Microsoft docs
Description Use the latest supported Python version for the latest security classes. Using older classes and types can make your application vulnerable.
Mode All
Type BuiltIn
Preview FALSE
Deprecated True
Effect Default: AuditIfNotExists
Allowed: (AuditIfNotExists, Disabled)
Used RBAC Role none
History none
Used in Initiatives none
JSON
{
  "displayName": "[Deprecated]: Audit Web Applications that are not using latest supported Python Framework",
  "policyType": "BuiltIn",
  "mode": "All",
  "description": "Use the latest supported Python version for the latest security classes. Using older classes and types can make your application vulnerable.",
  "metadata": {
    "version": "1.0.0-deprecated",
    "category": "Security Center",
    "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"
        },
        {
          "anyof": [
            {
              "field": "kind",
              "equals": "app"
            },
            {
              "field": "kind",
              "equals": "WebApp"
            }
          ]
        }
      ]
    },
    "then": {
      "effect": "[parameters('effect')]",
      "details": {
        "type": "Microsoft.Security/complianceResults",
        "name": "UseLatestPython",
        "existenceCondition": {
          "field": "Microsoft.Security/complianceResults/resourceStatus",
          "in": [
            "OffByPolicy",
            "Healthy"
          ]
        }
      }
    }
  }
}