{
    "properties": {
        "mode": "All",
        "parameters": {},
        "displayName": "Ensure https traffic only for storage account",
        "description": "Ensure https traffic only for storage account",
        "policyRule": {
            "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"
            }
        }
    }
}