Skip to main content

Azure Service Bus

Use Azure Service Bus when your applications already receive work from its queues or topics. A queue lets consumers share the work. A topic can send a copy of a message to each Azure subscription whose rules match it. For example, a Files.com subscription could send Sync: Failure to a topic so an incident workflow and an operations dashboard can consume the events independently.

An Event Channel target sends the Files.com event. An Automation v2 publishing action sends custom JSON for each file or result that reaches its branch.

Destination and Credentials in Azure

Choose a queue or topic in a Service Bus namespaceExternal LinkThis link leads to an external website and will open in a new tab in the public Azure cloud. The namespace endpoint must be reachable by Files.com and allow shared access key authentication.

For a topic, configure the Azure subscriptions your consumers will read from. Use a queue or an Azure subscription that accepts messages without a session ID. Azure Service Bus message sessionsExternal LinkThis link leads to an external website and will open in a new tab

Create a shared access policyExternal LinkThis link leads to an external website and will open in a new tab with Send permission on the queue or topic, or use a namespace policy that grants Send on the destination. Keep the policy name and one of its keys for the Files.com connection. Consumers use their own credentials to read from Service Bus.

Send From Files.com

Provide the namespace name and the queue or topic path. For example, for operations-bus.servicebus.windows.net, enter operations-bus as the namespace. Enter the queue or topic path itself, such as transfer-events.

Event Channels

Create an Azure Service Bus target with the namespace, destination, and shared access policy name and key. Select it in the Files.com subscription that matches the events you want to send.

Azure topic filters apply to message properties. To filter on Files.com event details in the JSON body, set event types and filters on the Files.com subscription. Azure topic filtersExternal LinkThis link leads to an external website and will open in a new tab

Automations v2

In the Publish to Azure Service Bus action, enter the namespace and destination. Select a Key/Value Secret containing the shared access policy name and key. The message body contains the JSON you build for each item.

Checking Delivery

For an Event Channel target, generate a matching event and open its Delivery Attempt. Success confirms Azure Service Bus accepted the send. The message body contains the Files.com event as JSON. Check the receiving queue or topic subscription and confirm the consumer processed the message.

If delivery fails, check the namespace and destination path, the policy name and key, and whether the namespace allows connections from Files.com. If Azure accepted the send and a consumer did not receive the message, check the Azure subscription's filters for a topic or the dead-letter queueExternal LinkThis link leads to an external website and will open in a new tab for the queue or subscription.

For a publishing action, select the node in Run Detail to see which deliveries succeeded and which items failed.

Retries and Repeat Messages

For an Event Channel target, Files.com reuses the message ID on retries of the same delivery. Azure suppresses repeat sends with that ID during the configured window when duplicate detection is on. Enable it when you create a queue or topic in the Standard or Premium tier. Azure lets you change the window for a destination that already has duplicate detection enabled. Azure duplicate detection settingsExternal LinkThis link leads to an external website and will open in a new tab

A repeat send can reach the consumer if duplicate detection is off or the window has expired. Azure can also deliver a message again if the consumer fails to acknowledge it before its lock expires. For events, use the event ID to recognize work the consumer already completed. For a custom Automation message, include an identifier for the work so the consumer can recognize it if a later run sends it again.