{
    "if": {
        "allOf": [
            {
                "field": "type",
                "equals": "Microsoft.Storage/storageAccounts"
            },
            {
                "anyOf": [
                    {
                        "allOf": [
                            {
                                "value": "[requestContext().apiVersion]",
                                "less": "2019-04-01"
                            },
                            {
                                "field": "Microsoft.Storage/storageAccounts/supportsHttpsTrafficOnly",
                                "exists": "false"
                            }
                        ]
                    },
                    {
                        "field": "Microsoft.Storage/storageAccounts/supportsHttpsTrafficOnly",
                        "equals": "false"
                    }
                ]
            }
        ]
    },
    "then": {
        "effect": "deny"
    }
}