Azure Blob Storage

Upload, download, and list blobs in Azure Blob Storage containers.

Data and storageCredentials form9 actionsAll integrations

On this page
  1. Connect
  2. Call it from a workflow
  3. Actions (9)
  4. listBlobs
  5. readBlob
  6. addTagsToBlob
  7. createBlob
  8. createContainer
  9. deleteBlob
  10. deleteContainer
  11. findBlobs
  12. listContainers
  13. Details

Connect

Auth type: Credentials form (custom_auth). Pass the fields the provider needs (listed below) as the connection's credentials. They are sealed at rest.

FieldTypeDescription
accountNamerequiredtextAzure storage account name
accountKeyrequiredsecretAzure storage account key
  • From your agent: integrations {action: "connect", piece, credentials, env} stores the credentials for dev, prod or all. Answers name the fields, never the values.
  • Or set the integration's project secrets with the secrets tool (SLACK_BOT_TOKEN, DISCORD_WEBHOOK_URL, TELEGRAM_BOT_TOKEN, TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN …): a call uses the connection, else those secrets. integrations {action: "catalog", piece} lists which ones work.
  • Try one action now with integrations {action: "call", piece, piece_action, input}. It really sends.

Call it from a workflow

step.ctx.integrations.invoke("azure_blob_storage", action, input) resolves with the provider's answer and rejects when Azure Blob Storage isn't connected or refuses. Wrap it in step.run so a retry sends once. See step.ctx. Its actions run through the integration runner, which the server's operator turns on: integrations {action: "catalog", piece: "azure_blob_storage"} says whether yours can call it.

Workflow
// workflows/notify.ts: call Azure Blob Storage when a booking is confirmed
import { on } from "@appbricx/workflows";

export const tellAzureBlobStorage = on.transition("booking", "status", "confirmed", async (_event, step) => {
  // Recorded once: a retry doesn't send it twice. Rejects when Azure Blob Storage isn't connected.
  const output = await step.run("Azure Blob Storage", () =>
    step.ctx.integrations.invoke("azure_blob_storage", "listBlobs", {
      "container": "<container>"
    }),
  );
  step.ctx.log("Azure Blob Storage answered", output);
});
Try it from your agent
{
  "name": "integrations",
  "arguments": {
    "project_id": "<project-id>",
    "action": "call",
    "piece": "azure_blob_storage",
    "piece_action": "listBlobs",
    "input": {
      "container": "<container>"
    },
    "env": "dev"
  }
}
From another backend (connector proxy)
curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/azure_blob_storage/listBlobs" \
  -H "Authorization: Bearer $APP_KEY" \
  -H "content-type: application/json" \
  -d '{"props":{"container":"<container>"}}'

Actions

listBlobs

List Blobs. List Blobs in the specified Azure Blob Storage container

InputTypeDescription
containerrequiredid (picked from your account)Select the container
includeSnapshotsoptionalbooleanWhether to include snapshots in the list
prefixoptionaltextFilter blobs by prefix

readBlob

Read Blob. Read the Blob at the specified lcoation

InputTypeDescription
containerrequiredid (picked from your account)Select the container
blobNamerequiredtextThe name of the blob to read

addTagsToBlob

Add Tags to Blob. Adds Tags to the Blob at the specified location

InputTypeDescription
containerrequiredid (picked from your account)Select the container
blobNamerequiredtextThe name of the blob to add tags to
tagsoptionalobjectThe tags to add to the blob
keepExistingTagsoptionalbooleanWhether to keep existing tags on the blob

createBlob

Create Blob. Creates a new Blob in the specified location

InputTypeDescription
containerrequiredid (picked from your account)Select the container
blobNamerequiredtextThe name of the blob to create
filerequiredfileThe file to upload as a blob
tagsoptionalobjectOptional tags to associate with the blob

createContainer

Create Container. Creates a new container

InputTypeDescription
containerNamerequiredtextThe name for the newly created container

deleteBlob

Delete Blob. Deletes the Blob at the specified location

InputTypeDescription
containerrequiredid (picked from your account)Select the container
blobNamerequiredtextThe name of the blob to create

deleteContainer

Delete Container. Deletes an existing container

InputTypeDescription
containerrequiredid (picked from your account)Select the container

findBlobs

Find Blobs. Finds Blobs based on their tags

InputTypeDescription
containerrequiredid (picked from your account)Select the container
tagsrequiredobjectThe tags to filter blobs by

listContainers

List Containers. List Containers in the Azure Blob Storage account

InputTypeDescription
includeDeletedoptionalbooleanWhether to include deleted containers in the list
includeSystemoptionalbooleanWhether to include system containers in the list
prefixoptionaltextFilter containers by prefix

Details

Id
azure_blob_storage
Category
Data and storage
Tags
storage, cloud, azure, microsoft, blobs
Package
@activepieces/piece-azure-blob-storage@0.1.4
Runs
Through the integration runner