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

Azure Policy definition

[Deprecated]: Web Application should only be accessible over HTTPS

Name [Deprecated]: Web Application should only be accessible over HTTPS
Azure Portal
Id 2fde8a98-6892-426a-83ba-050e640c0ce0
Version 1.0.0-deprecated
details on versioning
Category Security Center
Microsoft docs
Description Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.
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]: Web Application should only be accessible over HTTPS",
  "policyType": "BuiltIn",
  "mode": "All",
  "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
  "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"
            },
            {
              "field": "kind",
              "equals": "app,linux"
            },
            {
              "field": "kind",
              "equals": "app,linux,container"
            }
          ]
        }
      ]
    },
    "then": {
      "effect": "[parameters('effect')]",
      "details": {
        "type": "Microsoft.Security/complianceResults",
        "name": "OnlyHttpsForWebApplication",
        "existenceCondition": {
          "field": "Microsoft.Security/complianceResults/resourceStatus",
          "in": [
            "OffByPolicy",
            "Healthy"
          ]
        }
      }
    }
  }
}