Azure Blob adapter
Two adapters over one Azure Blob container. The Listener polls the container and publishes a message per blob; the Caller writes one blob per message.
Azure Blob is not one adapter with two modes. It is two adapters that share a naming model and a set of Authentications: the Azure Blob Listener goes on a receive port, the Azure Blob Caller on a send port. Neither adapter holds a storage account or a credential: that belongs to the Authentication. The adapter names the Container it works in.
Both adapters pair with an Authentication built on the Azure Blob Connection String Definition. It carries the storage account; the adapter names the container inside it, so one Authentication can serve several ports against several containers.
| Setting | Value |
|---|---|
| Name | Your name for the Authentication, no spaces or punctuation |
| Adapter | Azure Blob Listener, or Azure Blob Caller |
| Definition | Azure Blob Connection String |
| Application | Preset, the Application you are working in |
| Connection String | Required. For example DefaultEndpointsProtocol=https;AccountName=…;AccountKey=…;EndpointSuffix=core.windows.net. It is not validated when you save, so a blank or malformed one is not reported until a port tries to use it. |
Container Name names the container and is never part of a path. Path is always relative to it, and an empty Path means the whole container.
inbound/2026/order.xml is one blob whose name happens to contain slashes, not a file three directories deep. Azure shows those slashes as a folder tree in the portal, and the adapter follows the same convention, but nothing is really nested: there is no empty folder to create, and deleting the last blob under a prefix leaves nothing behind.| Rule | Behaviour |
|---|---|
| Separators | Forward slashes, and leading and trailing slashes are trimmed. /inbound/a.xml and inbound/a.xml are one path. On the Listener, Path is the name prefix to match. On the Caller, Destination folder is the prefix the blob is filed under and File name is the rest of its name. |
| Wildcards | * and ? only, and only in File Mask. No character classes, no regular expressions. Everything else in the mask is matched literally. |
| What a mask matches | The last segment of the blob name, never the whole name, and case is ignored. *.xml matches inbound/Order.XML; inbound/*.xml matches nothing, because the mask is never tested against a segment containing a slash. |
On its own interval the Listener lists the container, takes as many blobs as its two budgets allow, reads each one, removes it from the container, and publishes it to the bus as a separate message.
| Field | Default | What it does |
|---|---|---|
| Auth Config Type | Static | The only option on a receive port. |
| Auth Config | Required | The Authentication that supplies the storage account connection string. |
| Polling Interval (sec) | 60 | How long to wait between polls. The next poll is scheduled from the moment the current one starts, so a slow poll does not push the following one further out. |
| Max Files Per Poll | 20 | A hard stop. Once this many blobs are published the pass ends and the remainder waits. |
| Max Batch Size (KB) | 100000 | Total kilobytes one pass may deliver. There is no unlimited setting. |
| Container Name | Required | The container to poll. |
| Path | Empty | The name prefix to match inside the container. Empty means the whole container. |
| File Mask | *.json | Which blob names to take. Change it to match your blobs, or * for all. |
| Encoding | UTF-8 | UTF-8, Windows-1252, ISO-8859-1 or UTF-16. The code page a text blob is read in. Ignored when the port’s message type has the BIN format. |
The body the Listener publishes is the blob content, and the port’s Adapter Message Type decides how it is read. With a type of the BIN format the blob is published byte for byte, whatever it contains. With any other format it is read as text in the chosen Encoding, and bytes that are not valid in that encoding become replacement characters, so binary blobs belong under a BIN type. Each message carries FileName, FilePath and FileSize as context properties. FilePath is the full blob name, which is how you tell two blobs whose last segment is the same apart when subfolders are included.
The Caller does one thing: it writes the message body to the container as a blob. Upload is the only operation. The port’s whole job is deciding what the blob is called and what happens if a blob of that name is already there.
| Field | Default | What it does |
|---|---|---|
| Auth Config Type | Static or Dynamic | Static names one Authentication on the port, Dynamic resolves it per message. |
| Auth Config | Required | The Authentication that supplies the storage account connection string. |
| Container Name | Required | The container to write into. |
| Operation Type | Upload | The only operation. |
| Destination folder | Empty | The name prefix the blob is filed under. Empty means the container root. |
| File name | {{Message.InstanceId}}.txt | The rest of the blob name. Bindings are allowed. |
| Write mode | Create New | Create New fails if the blob already exists. Overwrite replaces it. Append adds to the end of it. |
| Create Container If Not Exists | Off | Creates the container when it does not exist. When off, a missing container fails the Upload. |
| Encoding | UTF-8 | UTF-8, Windows-1252, ISO-8859-1 or UTF-16. The code page a text message is written in. A message whose type has the BIN format is always written as its original bytes. |
Write mode, and why a partial blob is not a worry here
Write mode Create New is a check made before the write, not a lock. It fails the operation if the blob is already there, which is what you want where a repeat means a duplicate. It cannot promise that nothing else created the blob between the check and the write, so treat it as a guard against your own duplicates rather than as mutual exclusion.
Unlike a file share or an SFTP server, a blob becomes visible only once it has been committed. A reader listing the container does not see a half-written blob, and an upload that dies partway leaves nothing behind rather than a short file. This is the one place where the Blob adapter is safer than its two siblings.
What comes back, and what the port promotes
The response body is an echo of the request body, not the stored blob. A success means the bytes were committed to the container, nothing more.
The port promotes Path and FileName, so a later step can name the blob it just wrote. The values are attached before the write runs, which means they are there on a failed response too.
Where a problem surfaces decides what the platform does with it, and only failed responses are retried.
| Kind of failure | Retried? | What happens |
|---|---|---|
| Configuration | No | A missing Container Name is rejected outright rather than returned as a failed response. |
| Missing credentials | No | A blank connection string on the Authentication. The client is built before the transfer is attempted, so this escapes the retry loop too. |
| Rejected credentials | Once | A 401 or 403 from the storage account. The platform refreshes the credential and tries again, so a key corrected on the Authentication recovers without a restart. |
| Container missing | Yes | The container named on the port does not exist. The adapter does not create it by default, so this keeps failing until someone creates it in Azure, unless Create Container If Not Exists is on. |
| Anything the service refuses | Yes | A blob that already exists with Write mode Create New, a throttled request, or any transport error. |
That is the Azure Blob adapter
A Listener that polls and consumes, a Caller that writes and nothing else, and an Authentication that carries the storage account. Remember the Listener always deletes, and that a container has no real folders. Back to Adapters.