{
    "mode": "All",
    "policyRule": {
      "if": {
        "anyOf": [
          {
            "allOf": [
              {
                "field": "type",
                "equals": "Microsoft.Web/sites"
              },
              {
                "field": "Microsoft.Web/sites/httpsOnly",
                "notEquals": "true"
              }
            ]
          },
          {
            "allOf": [
              {
                "field": "type",
                "equals": "Microsoft.Web/sites/slots"
              },
              {
                "field": "Microsoft.Web/sites/slots/httpsOnly",
                "notEquals": "true"
              }
            ]
          },
          {
            "allOf": [
              {
                "field": "type",
                "equals": "Microsoft.Web/sites/config"
              },
              {
                "field": "name",
                "notLike": "connectionstrings"
              },
              {
                "field": "name",
                "notLike": "backup"
              },
              {
                "field": "name",
                "notLike": "authsettingsV2"
              },
              {
                "field": "name",
                "notLike": "authsettings"
              },
              {
                "field": "name",
                "notLike": "appsettings"
              },
              {
                "field": "Microsoft.Web/sites/config/minTlsVersion",
                "notEquals": "1.2"
              }
            ]
          },
          {
            "allOf": [
              {
                "field": "type",
                "equals": "Microsoft.Web/sites/slots/config"
              },
              {
                "field": "name",
                "notLike": "connectionstrings"
              },
              {
                "field": "name",
                "notLike": "backup"
              },
              {
                "field": "name",
                "notLike": "authsettingsV2"
              },
              {
                "field": "name",
                "notLike": "authsettings"
              },
              {
                "field": "name",
                "notLike": "appsettings"
              },
              {
                "field": "Microsoft.Web/sites/slots/config/minTlsVersion",
                "notEquals": "1.2"
              }
            ]
          }
        ]
      },
      "then": {
        "effect": "[parameters('effect')]"
      }
    },
    "parameters": {
      "effect": {
        "type": "String",
        "metadata": {
          "displayName": "Effect",
          "description": "Enable or disable the execution of the policy"
        },
        "allowedValues": [
          "Audit",
          "deny",
          "Disabled"
        ],
        "defaultValue": "Audit"
      }
    }
  }