{
   "if": {
      "field": "type",
      "equals": "Microsoft.Sql/servers"
   },
   "then": {
      "effect": "AuditIfNotExists",
      "details": {
         "type": "Microsoft.Sql/servers/virtualNetworkRules",
         "existenceCondition": {
            "field": "Microsoft.Sql/servers/virtualNetworkRules/virtualNetworkSubnetId",
            "equals": "[parameters('subnetId')]"
         }
      }
   }
}