How To Create Blob Storage In Azure

This Azure tutorial will discuss the steps to create Azure Blob Storage.

How to Create Azure Blob Storage

Let’s discuss the process of Creating Azure Blob storage here. To create the Azure Bob storage, we need to consider doing a few things below

  • Create an Azure storage account
  • Creation of a container in the Storage account created
  • Create a Blob
how to create a blob storage in azure

Creating the required storage account

Now, let’s discuss here how to create a storage account. Refer to my article on an Easy way to Create an Azure storage account to create Azure storage account using both the Azure portal and PowerShell.

Now you have the Azure storage account created, and then it’s time to create the Azure storage container for the storage account you have created.

How to create a container in Azure

Now, we will see how to create a blob container in Azure. You can follow the below steps to create an Azure storage container using the Azure Portal.

1. Navigate to the storage account you have created above in the Azure portal.

Note: I am using a different existing storage account but you can use the same account which you have created above.

2. Select Containers from the left menu for the storage account from the Blob service section.

create azure blob storage step by step

3. Click on the + Container button.

create azure blob storage

4. Provide a name for your new container.

Note: Few important things to note here while choosing a name for the new container. The container name must contain only lowercase, Should start with a letter or number, and can contain only letters, numbers, and (-) character.

Select an option for the Public access level. Selecting the default option Private (no anonymous access) is better. You can also change it based on your business needs.

how to create folder in azure blob container

5. Now click on the Create button to create the container.

You can see the notification area where it will show “Successfully created storage container”.

azure blob storage create folder

You can see the newly created container on the Storage account | Containers page

how to create folder in azure blob container using c#

Create a blob container in the account Azure CLI

You can also create a blob container using Azure CLI. You can use the below script to create the blob container

az ad signed-in-user show --query objectId -o tsv | az role assignment create \
    --role "Storage Blob Data Contributor" \
    --assignee @- \
    --scope "/subscriptions/<subscription>/resourceGroups/<Yourresourcegroupname>/providers/Microsoft.Storage/storageAccounts/<yourstorageaccountname>"

az storage container create \
    --account-name <yourstorageaccountname> \
    --name <yourcontainername> \
    --auth-mode login

So, using the above script, you can create a blob container in the account Azure CLI.

This is how we can create the container using the Azure portal and Azure CLI. Now, we have both the storage account and container ready. Now is the time to upload the Blob.

Check out Upload Files To Azure Blob Storage to upload the blob.

Similarly, Check out How to download a file from Azure blob storage to download a file.

Check out Create Folder in the Azure Blob container

Check out Upload File To Azure Blob Storage C#

Check out an end-to-end tutorial on Azure Storage Explorer.


Why Azure Blob Storage?

There are certain scenarios where it’s better to use Azure Blob Storage

  • When you have the requirement to store unstructured data.
  • Choose to store massive audio files, video files, text files, image files, etc.
  • When you have the requirement to store large files, Azure Blob Storage breaks the large files into small pieces and then individually uploads those small units.
  • When you have the requirements to provide distributed access for your files and documents, then in this scenario, go with Azure Blob Storage.

Types of Azure Blob Storage


Well, if you are new to Azure storage, I hope you know how to create a storage account in Microsoft Azure. I hope you have enjoyed this article !!!