Skip to main content

Azure Blob Storage Component

Manage files and folders within Azure Blob Storage

Component key: azure-blob

Description#

Azure Blob Storage is a cloud solution for storing unstructured data, like large binary or text files. It's often used to store blob data for web applications that don't store nicely in a relational database.

This component allows you to list, create and delete Azure containers, and create and modify blobs (files) within those Azure containers.

Information about Azure Blob Storage can be found on their documentation site.

Azure Blob Storage Connections#

Connection String#

You can also grant limited access to your Azure Storage Resources using Shared Access Signatures (SAS) authentication, which involves an access token. You can obtain a connection string containing an SAS token from the Azure Portal. Keep in mind this token will eventually expire. Make sure to configure an expiration date you will remember, so you can manually refresh the token at a later date.

InputNotesExample
Input
Connection String
string
/ Required
Notes
Provide the connection string for your active directory account.
Example
BlobEndpoint=https://example.blob.core.windows.net/;QueueEndpoint=https://example.queue.core.windows.net/;FileEndpoint=https://example.file.core.windows.net/;TableEndpoint=https://example.table.core.windows.net/;SharedAccessSignature=sv=example=rwdlacupitfx&se=2024-05-01T03:51:00Z&st=20

Storage Shared Key#

Azure Blob can use storageSharedKeyCredential authentication, which involves an account / key pair. You can obtain an account name / account key pair through the Azure Portal.

InputNotesExample
Input
Account Key
string
/ Required
Notes
Provide the key for your active directory account.
Example
exampleKey
Input
Account Name
string
/ Required
Notes
Provide the name for your active directory account.
Example
exampleName

Actions#

Append to Append Blob#

Append blocks to an existing append blob | key: appendToAppendBlob

InputNotesExample
Input
Connection
connection
/ Required
Notes
 
Example
 
Input
Blob Name
string
/ Required
Notes
A blob is a file that is saved in a 'container'. This represents the blob's key (file path). Include a leading /.
Example
/path/to/file.txt
Input
Container Name
string
/ Required
Notes
Azure blob 'container' stores files. You can create a container within the Azure console. Container names contain only letters, numbers, and dashes.
Example
my-azure-blob-container
Input
File Contents
data
/ Required
Notes
The contents to write to a blob. This can be a string of text, it can be binary data (like an image or PDF) that was generated in a previous step.
Example
My File Contents

Output Example Payload#

{  "data": {    "_response": {      "parsedHeaders": {},      "status": 200,      "headers": {},      "request": {        "url": "www.prismatic.io",        "method": "POST",        "withCredentials": false,        "timeout": 500,        "requestId": "exampleID"      }    }  }}

Create Append Blob#

Create an empty append blob object (use "Append to Append Blob" to add blocks) | key: createAppendBlob

InputNotesExample
Input
Connection
connection
/ Required
Notes
 
Example
 
Input
Blob Name
string
/ Required
Notes
A blob is a file that is saved in a 'container'. This represents the blob's key (file path). Include a leading /.
Example
/path/to/file.txt
Input
Container Name
string
/ Required
Notes
Azure blob 'container' stores files. You can create a container within the Azure console. Container names contain only letters, numbers, and dashes.
Example
my-azure-blob-container

Output Example Payload#

{  "data": {    "_response": {      "parsedHeaders": {},      "status": 200,      "headers": {},      "request": {        "url": "www.prismatic.io",        "method": "POST",        "withCredentials": false,        "timeout": 500,        "requestId": "exampleID"      }    }  }}

Create Container#

Create a container | key: createContainer

InputNotesExample
Input
Connection
connection
/ Required
Notes
 
Example
 
Input
Container Name
string
/ Required
Notes
Azure blob 'container' stores files. You can create a container within the Azure console. Container names contain only letters, numbers, and dashes.
Example
my-azure-blob-container

Output Example Payload#

{  "data": {    "_response": {      "parsedHeaders": {},      "status": 200,      "headers": {},      "request": {        "url": "www.prismatic.io",        "method": "POST",        "withCredentials": false,        "timeout": 500,        "requestId": "exampleID"      }    }  }}

Create Page Blob#

Create a page blob with a specific size (must be a multiple of 512 bytes) | key: createPageBlob

InputNotesExample
Input
Connection
connection
/ Required
Notes
 
Example
 
Input
Blob Name
string
/ Required
Notes
A blob is a file that is saved in a 'container'. This represents the blob's key (file path). Include a leading /.
Example
/path/to/file.txt
Input
Container Name
string
/ Required
Notes
Azure blob 'container' stores files. You can create a container within the Azure console. Container names contain only letters, numbers, and dashes.
Example
my-azure-blob-container
Input
Page Blob Size
string
/ Required
Notes
Space can be reserved in Azure Blob Store in 512-byte chunks. This must be a multiple of 512 (e.g. 1024, 1536, 2048, etc.).
Example
4096

Output Example Payload#

{  "data": {    "_response": {      "parsedHeaders": {},      "status": 200,      "headers": {},      "request": {        "url": "www.prismatic.io",        "method": "POST",        "withCredentials": false,        "timeout": 500,        "requestId": "exampleID"      }    }  }}

Delete Blob#

Delete a blob | key: deleteBlob

InputNotesExample
Input
Connection
connection
/ Required
Notes
 
Example
 
Input
Blob Name
string
/ Required
Notes
A blob is a file that is saved in a 'container'. This represents the blob's key (file path). Include a leading /.
Example
/path/to/file.txt
Input
Container Name
string
/ Required
Notes
Azure blob 'container' stores files. You can create a container within the Azure console. Container names contain only letters, numbers, and dashes.
Example
my-azure-blob-container

Output Example Payload#

{  "data": {    "_response": {      "parsedHeaders": {},      "status": 200,      "headers": {},      "request": {        "url": "www.prismatic.io",        "method": "POST",        "withCredentials": false,        "timeout": 500,        "requestId": "exampleID"      }    }  }}

Delete Container#

Delete a container | key: deleteContainer

InputNotesExample
Input
Connection
connection
/ Required
Notes
 
Example
 
Input
Container Name
string
/ Required
Notes
Azure blob 'container' stores files. You can create a container within the Azure console. Container names contain only letters, numbers, and dashes.
Example
my-azure-blob-container

Output Example Payload#

{  "data": {    "_response": {      "parsedHeaders": {},      "status": 200,      "headers": {},      "request": {        "url": "www.prismatic.io",        "method": "POST",        "withCredentials": false,        "timeout": 500,        "requestId": "exampleID"      }    }  }}

Download Blob#

Download a blob | key: downloadBlob

InputNotesExample
Input
Connection
connection
/ Required
Notes
 
Example
 
Input
Blob Name
string
/ Required
Notes
A blob is a file that is saved in a 'container'. This represents the blob's key (file path). Include a leading /.
Example
/path/to/file.txt
Input
Container Name
string
/ Required
Notes
Azure blob 'container' stores files. You can create a container within the Azure console. Container names contain only letters, numbers, and dashes.
Example
my-azure-blob-container

Output Example Payload#

{  "data": {    "type": "Buffer",    "data": [      69,      120,      97,      109,      112,      108,      101    ]  },  "contentType": "application/octet"}

List Blobs#

Get a list of blobs in a container | key: listBlobs

InputNotesExample
Input
Connection
connection
/ Required
Notes
 
Example
 
Input
Container Name
string
/ Required
Notes
Azure blob 'container' stores files. You can create a container within the Azure console. Container names contain only letters, numbers, and dashes.
Example
my-azure-blob-container
Input
Prefix
string
Notes
List only blobs prefixed with this string. For example, if you only want blobs in a directory called 'unprocessed', you can enter 'unprocessed/'. If this is left blank, all files in the selected bucket will be listed.
Example
path/to/files/

Output Example Payload#

{  "data": [    {      "name": "Example",      "deleted": false,      "snapshot": "",      "properties": {        "lastModified": "2020-01-01T00:00:00.000Z",        "etag": "Example Tag"      }    }  ]}

List Containers#

Get a list of containers available in the account | key: listContainers

InputNotes
Input
Connection
connection
/ Required
Notes
 

Output Example Payload#

{  "data": [    {      "name": "Example",      "properties": {        "lastModified": "2020-01-01T00:00:00.000Z",        "etag": "Example Tag"      }    }  ]}

Resize Page Blob#

Resize an existing page blob (must be a multiple of 512 bytes) | key: resizePageBlob

InputNotesExample
Input
Connection
connection
/ Required
Notes
 
Example
 
Input
Blob Name
string
/ Required
Notes
A blob is a file that is saved in a 'container'. This represents the blob's key (file path). Include a leading /.
Example
/path/to/file.txt
Input
Container Name
string
/ Required
Notes
Azure blob 'container' stores files. You can create a container within the Azure console. Container names contain only letters, numbers, and dashes.
Example
my-azure-blob-container
Input
Page Blob Size
string
/ Required
Notes
Space can be reserved in Azure Blob Store in 512-byte chunks. This must be a multiple of 512 (e.g. 1024, 1536, 2048, etc.).
Example
4096

Output Example Payload#

{  "data": {    "_response": {      "parsedHeaders": {},      "status": 200,      "headers": {},      "request": {        "url": "www.prismatic.io",        "method": "POST",        "withCredentials": false,        "timeout": 500,        "requestId": "exampleID"      }    }  }}

Upload Block Blob#

Upload file data to a block blob object | key: uploadBlockBlob

InputNotesExample
Input
Connection
connection
/ Required
Notes
 
Example
 
Input
Blob Name
string
/ Required
Notes
A blob is a file that is saved in a 'container'. This represents the blob's key (file path). Include a leading /.
Example
/path/to/file.txt
Input
Container Name
string
/ Required
Notes
Azure blob 'container' stores files. You can create a container within the Azure console. Container names contain only letters, numbers, and dashes.
Example
my-azure-blob-container
Input
File Contents
data
/ Required
Notes
The contents to write to a blob. This can be a string of text, it can be binary data (like an image or PDF) that was generated in a previous step.
Example
My File Contents

Output Example Payload#

{  "data": {    "_response": {      "parsedHeaders": {},      "status": 200,      "headers": {},      "request": {        "url": "www.prismatic.io",        "method": "POST",        "withCredentials": false,        "timeout": 500,        "requestId": "exampleID"      }    }  }}

Upload to Page Blob#

Upload to an existing page blob (both data size and offset must be a multiple of 512) | key: uploadToPageBlob

InputNotesExample
Input
Connection
connection
/ Required
Notes
 
Example
 
Input
Blob Name
string
/ Required
Notes
A blob is a file that is saved in a 'container'. This represents the blob's key (file path). Include a leading /.
Example
/path/to/file.txt
Input
Container Name
string
/ Required
Notes
Azure blob 'container' stores files. You can create a container within the Azure console. Container names contain only letters, numbers, and dashes.
Example
my-azure-blob-container
Input
File Contents
data
/ Required
Notes
The contents to write to a blob. This can be a string of text, it can be binary data (like an image or PDF) that was generated in a previous step.
Example
My File Contents
Input
Page Blob Offset
string
/ Required
Notes
You can begin to write to an Azure blob starting at a particular block. This value must be a multiple of 512 (e.g. 1024, 1536, 2048, etc.).
Example
2048

Output Example Payload#

{  "data": {    "_response": {      "parsedHeaders": {},      "status": 200,      "headers": {},      "request": {        "url": "www.prismatic.io",        "method": "POST",        "withCredentials": false,        "timeout": 500,        "requestId": "exampleID"      }    }  }}