{
    "properties": {
        "displayName": "Function App should only be accessible over HTTPS",
        "policyType": "BuiltIn",
        "mode": "Indexed",
        "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.",
        "metadata": {
            "version": "1.0.0",
            "category": "App Service"
        },
        "parameters": {
            "effect": {
                "type": "string",
                "defaultValue": "Audit",
                "allowedValues": [
                    "Audit",
                    "Disabled"
                ],
                "metadata": {
                    "displayName": "Effect",
                    "description": "Enable or disable the execution of the policy"
                }
            }
        },
        "policyRule": {
            "if": {
                "allOf": [
                    {
                        "field": "type",
                        "equals": "Microsoft.Web/sites"
                    },
                    {
                        "field": "kind",
                        "like": "functionapp*"
                    },
                    {
                        "field": "Microsoft.Web/sites/httpsOnly",
                        "equals": "false"
                    }
                ]
            },
            "then": {
                "effect": "[parameters('effect')]"
            }
        }
    },
    "id": "/providers/Microsoft.Authorization/policyDefinitions/6d555dd1-86f2-4f1c-8ed7-5abae7c6cbab",
    "name": "6d555dd1-86f2-4f1c-8ed7-5abae7c6cbab"
}