LotImageDeleted
v0.0.1

Raised when a lot image is deleted from Azure Blob Storage and processed by the Auction Lot Image Pipeline.
When firing this event make sure you set the `correlationId` in the headers. Our schemas have standard metadata make sure you read and follow it.

Details

This event is triggered when an image blob is deleted from Azure Blob Storage (Microsoft.Storage.BlobDeleted / DeleteBlob API). The message is published to the Service Bus topic sbt-lot-images-internal (subscription: blob-changefeed-lotImages) and consumed by the Cosmos DB writer.

CustomProperties

{
    "occurredAtUtc": "2024-12-12T10:10:30Z",
    "typeName": "LotImageDeleted",
    "source": "Auction Lot Image Pipeline;V1.0.0",
    "sourceTimeZone": "UTC",
    "sendAtUtc": "2024-12-12T10:10:30Z",
    "correlationId": "f73aacd2-140f-4623-bf4b-049805671583"
}

Body

{
  "id": "a1b2c3d4-0000-0000-0000-111122223333",
  "topic": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Storage/storageAccounts/{storageAccount}",
  "subject": "/blobServices/default/containers/lot-images/blobs/NYR_22733_LF-Aedb1a9b-6df7-4a26-bb7e-2d02e66485d9.jpg",
  "eventType": "Microsoft.Storage.BlobDeleted",
  "eventTime": "2024-12-12T10:10:30Z",
  "dataVersion": "1.0",
  "metadataVersion": "1",
  "data": {
    "api": "DeleteBlob",
    "requestId": "f73aacd2-140f-4623-bf4b-049805671583",
    "etag": "0x8D9F1A2B3C4D5E6F",
    "contentType": "image/jpeg",
    "contentLength": null,
    "url": "https://{storageAccount}.blob.core.windows.net/lot-images/NYR_22733_LF-Aedb1a9b-6df7-4a26-bb7e-2d02e66485d9.jpg",
    "sequencer": "000000000000000000000000000123456789"
  },
  "eventMetadata": {
    "id": "meta-001",
    "auctionGuid": "a7c1e3f2-89ab-4cde-bf01-234567890abc",
    "auctionId": "22733",
    "auctionNumber": "22733",
    "lotId": "lot-001",
    "lotGuid": "Aedb1a9b-6df7-4a26-bb7e-2d02e66485d9",
    "lotNumberWithSuffix": "1A",
    "lotTitle_en": "Fine Painting",
    "lotTitle_zh_hant": "精緻畫作",
    "lotTitle_zh_hans": "精致画作",
    "extension": ".jpg",
    "height": "1200",
    "width": "900",
    "type": "master",
    "isPrimary": "true",
    "isDeleted": "true",
    "imageHash": "sha256:abc123def456",
    "access": "public",
    "restrictedCountries": "",
    "restrictionType": "",
    "originalFileName": "lot_001_master.jpg",
    "targetFileName": "NYR_22733_LF-Aedb1a9b-6df7-4a26-bb7e-2d02e66485d9.jpg",
    "lastUpdatedUtc": "2024-12-12T10:10:30Z"
  }
}

Consumer / Producer Diagram

LotImageDeleted Schema (json)
{
  "$id": "https://example.com/LotImageDeleted.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "LotImageDeleted",
  "description": "An event raised when a lot image is deleted from Azure Blob Storage.",
  "type": "object",
  "required": ["id", "topic", "subject", "eventType", "eventTime", "data"],
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the event."
    },
    "topic": {
      "type": "string",
      "description": "Full resource path of the event source (Azure Storage account resource URI)."
    },
    "subject": {
      "type": "string",
      "description": "Publisher-defined path to the blob, e.g. /blobServices/default/containers/{container}/blobs/{blobName}."
    },
    "eventType": {
      "type": "string",
      "description": "Type of event. Value: Microsoft.Storage.BlobDeleted."
    },
    "eventTime": {
      "type": "string",
      "description": "The time the event was generated in UTC (ISO 8601 format)."
    },
    "dataVersion": {
      "type": "string",
      "description": "The schema version of the data object."
    },
    "metadataVersion": {
      "type": "string",
      "description": "The schema version of the event metadata."
    },
    "data": {
      "type": "object",
      "description": "Blob event data (BlobEventData).",
      "properties": {
        "api": {
          "type": "string",
          "description": "The API operation that triggered the event. Value: DeleteBlob."
        },
        "requestId": {
          "type": "string",
          "description": "Service-generated request ID for the storage API operation."
        },
        "etag": {
          "type": "string",
          "description": "The value that you can use to conditionally perform operations."
        },
        "contentType": {
          "type": "string",
          "description": "The content type specified for the blob."
        },
        "contentLength": {
          "type": ["integer", "null"],
          "description": "The size of the blob in bytes. Null for delete events."
        },
        "url": {
          "type": "string",
          "description": "The URL of the blob."
        },
        "sequencer": {
          "type": "string",
          "description": "An opaque string value representing the logical sequence of events for any particular blob name."
        }
      }
    },
    "eventMetadata": {
      "type": "object",
      "description": "Lot image metadata (BlobMetadataModel).",
      "properties": {
        "id": {
          "type": "string",
          "description": "Metadata record identifier."
        },
        "auctionGuid": {
          "type": "string",
          "description": "Globally unique identifier for the auction."
        },
        "auctionId": {
          "type": "string",
          "description": "Auction identifier."
        },
        "auctionNumber": {
          "type": "string",
          "description": "Auction number."
        },
        "lotId": {
          "type": "string",
          "description": "Lot identifier."
        },
        "lotGuid": {
          "type": "string",
          "description": "Globally unique identifier for the lot."
        },
        "lotNumberWithSuffix": {
          "type": "string",
          "description": "Lot number including any suffix (e.g. 1A)."
        },
        "lotTitle_en": {
          "type": "string",
          "description": "Lot title in English."
        },
        "lotTitle_zh_hant": {
          "type": "string",
          "description": "Lot title in Traditional Chinese."
        },
        "lotTitle_zh_hans": {
          "type": "string",
          "description": "Lot title in Simplified Chinese."
        },
        "extension": {
          "type": "string",
          "description": "File extension of the image (e.g. .jpg)."
        },
        "height": {
          "type": "string",
          "description": "Image height in pixels."
        },
        "width": {
          "type": "string",
          "description": "Image width in pixels."
        },
        "type": {
          "type": "string",
          "description": "Image type (e.g. master)."
        },
        "isPrimary": {
          "type": "string",
          "description": "Whether this is the primary image for the lot (true/false)."
        },
        "isDeleted": {
          "type": "string",
          "description": "Whether the image has been deleted (true/false)."
        },
        "imageHash": {
          "type": "string",
          "description": "Hash of the image content for deduplication."
        },
        "access": {
          "type": "string",
          "description": "Access level of the image (e.g. public)."
        },
        "restrictedCountries": {
          "type": "string",
          "description": "Comma-separated list of countries where the image is restricted."
        },
        "restrictionType": {
          "type": "string",
          "description": "Type of restriction applied to the image."
        },
        "originalFileName": {
          "type": "string",
          "description": "Original file name of the uploaded image."
        },
        "targetFileName": {
          "type": "string",
          "description": "Target file name used when storing the image in blob storage."
        },
        "lastUpdatedUtc": {
          "type": "string",
          "description": "The date and time the image metadata was last updated in UTC (ISO 8601 format)."
        }
      }
    }
  }
}
Edit this pageLast updated on 2026/5/8