{
   "if": {
      "field": "type",
      "equals": "Microsoft.Sql/servers"
   },
   "then": {
      "effect": "AuditIfNotExists",
      "details": {
         "type": "Microsoft.Sql/servers/firewallRules",
         "existenceCondition": {
            "allOf": [
               {
                  "field": "Microsoft.Sql/servers/firewallRules/startIpAddress",
                  "equals": "[parameters('startIpAddress')]"
               },
               {
                  "field": "Microsoft.Sql/servers/firewallRules/endIpAddress",
                  "equals": "[parameters('endIpAddress')]"
               }
            ]
         }
      }
   }
}