Step 1: Navigate to Azure Storage Account

  1. Log into your Azure Portal.
  2. Locate and select your Storage Account from the dashboard or resource groups.

Step 2: Access Events

  • On your storage account overview page, click Events in the left sidebar.

Step 3: Create an Event Subscription

  1. Click on + Event subscription.
  2. Provide a meaningful name, e.g., CloudFilesWebhook.
  3. Select Event Grid Schema from the dropdown under Event Schema.
  4. Under Topic Details, ensure your storage account details are correctly filled.

Step 4: Configure Event Types

  • Under Event Types, select:
    • Blob Created
    • Blob Deleted

Step 5: Setup Endpoint

  • In the Endpoint details, choose Web Hook.
  • Configure the endpoint URL as:

https://api.cloudfiles.io/webhooks/azure-event-grid/blob

Step 6: Delivery Properties

  1. In the Delivery properties, click Add new header.
  2. Add the following details:
    • Header Name: x-webhook-secret
    • Type: Static
    • Value: Copy this value from your CloudFiles App in Salesforce (See screenshot below)
    • Secret: Set to True (check the box)

Step 7: Configure Retry Policies

  1. Navigate to the Additional Features tab.
  2. Under Retry Policies, set:
    • Max Event Delivery Attempts: 30
    • Event Time to Live: 1 day, 0 hours, 0 minutes, and 0 seconds

Step 8: Enable Subject Filtering

  • Under Filters, enable Subject Filtering.
  • Add a filter to ensure only events from the relevant container are synced.
    • Example filter format: /blobServices/default/containers/<YourContainerName>/

Step 9: Finalize

  • Review all configurations.
  • Click Create to finalize your subscription.

Your Azure Blob storage is now set up for auto-sync with CloudFiles!