Storage Blob Container
  • 05 Apr 2022
  • 7 Minutes to read
  • Contributors
  • Dark
    Light
  • PDF

Storage Blob Container

  • Dark
    Light
  • PDF

Article summary

Introduction

Microsoft's Azure Blob storage allows you to store large amounts of unstructured data. Unstructured data refers to data that is not defined by a particular data model. Text and binary data are examples.

New Item

Cerebrata offers the capability to add New blob into a Blob Container. Using Cerebrata, user can create Virtual Folders, Page blob and Append blob.
The below illustration shows how to create Virtual folders.
New virtual folder- storage blobs

Note

A virtual folder does not exist in a blob container until you upload a blob in it. Immediately after creation, you must upload blobs in this folder to persist the folder. You can also click on the "Create a zero byte blob in this folder" checkbox below to persist the folder.

New Page/Append Blob

  1. Open the Blob container, select + New -> Empty Page/Append Blob.
  2. Provide the name of the blob in popup opened and Size if it is a page blob.
  3. Click Save to create Page/Append Blob

The below illustration shows how to create a new Page/Append Blob
New page or append blob- storage blobs

Upload Page/Append Blob

  1. Open the Blob container, select New -> Page/Append Blob from file.
  2. Select the file that needs to upload. Choose Chunk size and Overwrite Behaviour
  3. Click Save to upload the blob

The below illustration shows how to upload a new Page/Append Blob
upload page or append blob- storage blobs

Upload Items

In addition to Blobs creation, Cerebrata also allows user to upload the files and folders from the local storage.
Following are the steps to upload Files and Folders into Blob Containers:

  1. Open the Blob container, select Upload -> Upload Files/Folders.
  2. Select the Files/Folders to be uploaded and provide Chunk Size, Overwrite behaviour, Page Blob file extensions, Compress file extensions, Block blob access tier
  3. Hit Upload to upload the Files/Folders

upload items files or folders - storage blobs

Download

Consider if the need is to back up the blobs into a local machine. Cerebrata allows users to download the files/folders into the required folders.
Following are the steps to download files/folders in Cerebrata:

  1. Open the Blob container, select the files/folders to be downloaded and Click Download
  2. In the popup opened, select the folder when the files/folders to be downloaded, provide Overwrite behaviour and hit Download to download the files/folders

Download blobs - storage blobs

Note

If a blob is compressed with GZIP or DEFLATE compression algorithm, i.e. blob's content encoding is set as either "gzip" or "deflate", you can instruct Cerebrata to decompress it after Download automatically.

Delete Blobs

User can delete either selected files/folders or all using Cerebrata.
Following are the steps to delete the files/folders from Storage Blob:

  1. Open the Blob container, select the files/folders to be deleted and Click Delete
  2. It will open a popup and ask the user to enter the numbers in the "VERIFICATION CODE" box into the "CONFIRM CODE" box beside it.
  3. Once the Verification code is entered, Click Delete to delete the appropriate files/folders

Storage blobs - delete files or folders in blobs

Access Tier

Consider a scenario where the user needs to change the access tier of all blobs in a blob container from "hot" to "archive". By default, Azure Storage only allows user to change the access tier of an individual blob. Cerebrata includes a neat convenience utility using a single click user that can change the access tier of all blobs in a blob container. For example, in a single click user can move all blobs in a blob container from "hot" access tier to "cool" or "archive" access tier.

The users can also specify additional conditions like changing the access tier of all the blobs from "hot" to "cool" that are not modified or accessed for the past 30 days.

Following are the steps to set Access Tier for blobs:

  1. Open the Blob container, select the files/folders to update the access tier and Click Access Tier
  2. In the Change Blob Access Tier popup, set the access tier conditions based on the need.
  3. Click Submit to set the access tier

Change Access Tier - storage blobs

New Snapshot

By default Azure Storage allows users to take a snapshot of an individual blob in a blob container. Cerebrata includes a utility using which, in a single click user can take a snapshot of the entire blob container, i.e., it will take the snapshot of all blobs in that blob container.
Following are the stope to create a Snapshot for Blobs:

  1. Open the Blob container, select the files/folder and Click New Snapshot
  2. Click Submit in the popup opened to add a snapshot to the select files/folders

New snapshots - storage blobs

Set Properties

Consider a scenario where the user needs to change the "cache-control" property of all blobs in a blob container. By default, Azure Storage only allows user to change the property of an individual blob. Cerebrata includes a utility using a single click that can change properties like cache control, content-language, content-encoding, and content type of all blobs in a blob container.
Following are the steps to define the properties of blobs:

  1. Open the Blob container, select the files/folders to set properties and Click Set Properties
  2. It will open a popup and ask the user to enter Cache-control, Control Type, Content-Encoding and Content-Language.
  3. Once the properties are provided, click Submit to set the properties.

Set properties- storage blobs

Consider a scenario where the user has too many blobs in a blob container and wants to find out certain blobs. Cerebrata includes a convenient utility using which user can search for blobs in a blob container.

It allows searching for blobs using either a "prefix" (i.e. find all blobs, names of which begin with certain characters) or a "contains" search (i.e. find all blobs, names of which contain certain characters).

Storage Blobs - Search prefix and contains

It is also possible to search the blobs based on the tags defined on them. The operators that can be used in tag based search are =, >, >=, < and <=.

Storage Blobs - Search blob by tags

Blob container Inventory

A user can download details about all the blobs as a CSV file in a container through blob container inventory. It is also possible to include information about blob snapshots and versions along with the blob. Required properties that must be included in the CSV can be selected.

Storage Blobs - Blob container Inventory

Manage Metadata

User-defined metadata consists of one or more name-value pairs that you specify for a Blob storage resource. You can use metadata to store additional values with the resource. Metadata values are for your own purposes only, and don't affect how the resource
behaves. Using Cerebrata, user can create, delete, edit the Blob container meta data.
Following are the steps to create a metadata:

  1. Select the context menu of the Blob Container and click Metadata
  2. It will open a popup "Blob Container Metadata" that shows list of existing Key Value metadata
  3. Click New Metadata and Add Your Key Value Metadata and hit Save

Storage Blobs - Metadata

Change Lease State

The Lease Blob operation creates and manages a lock on a blob for write and delete operations. The lock duration can be 15 to 60 seconds. Using Cerebrata, user can change the lease state of a Storage Blob Container. Below are five modes Lease state available,
The Lease Blob operation can be called in one of five modes:

  • Acquire, to request a new lease.
  • Renew, to renew an existing lease.
  • Change, to change the ID of an existing lease.
  • Release, to free the lease if it is no longer needed so that another client may immediately acquire a lease against the blob.
  • Break, to end the lease but ensure that another client cannot acquire a new lease until the current lease period has expired.

Storage Blobs - change lease

Properties

For Storage Blob Container, user can check the properties of the Storage Blob Container like the present lease state or when the Storage Blob last modified.

Following are the steps to view the properties of a Storage Blob Container

  1. Select the context menu of the Blob Container and click Properties
  2. It will open a popup "Blob Container Properties" that shows the properties like Lease state, Last modified, ETAG and more.
    Storage Blobs - properties

Shared Access Signature & Permissions

Using Cerebrata, user can even manage Shared access Signature for Storage Blob Containers. It also provides option to define the level access that needs to be provided for a SAS Token. It also Permissions to manage the Access Policy of the SAS Token. Click here to know about Shared Access Signature

Following are the steps to create SAS Token and URL for Storage Blob Container by defining the granular access:

  1. Select the context menu of appropriate Storage Blob Container and click Shared Access Signature
  2. This will open a Popup "Blob Container Shared Access Signature (SAS)"
  3. Select the level of access that needs to be provided along with Expiry date of the SAS Token
  4. Click Next to get the SAS URL and Token for the selected Storage Blob Container.

Storage Blobs - shared access signature

Note

Cerebrata also offers option to restrict the IP Address and protocol using Advanced settings. Click More Settings in the left bottom of the dialog to open Advanced SAS Settings.

Delete Blob Container

Consider when a QA team created a Storage Blob Container to perform testing. When the testing is over, QA engineer would need to delete that Blob Container in a Storage Account. Here comes Delete option in Cerebrata.
Following are the steps to delete a Storage Blob Container:

  1. Select the context menu of the appropriate Blob Container and click Delete
  2. It will open a popup and ask user to enter the numbers in "VERIFICATION CODE" box into "CONFIRM CODE" box besides it.
  3. Once the Verification code is entered, Click Delete to delete the Storage Blob Container
    Storage Blobs - delete blob containers

Was this article helpful?

What's Next