How to Create Azure Blob storage

This Azure tutorial will discuss How 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 Azure Blob storage

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.

How to create a Azure storage container

3. Click on the + Container button.

how to create blob storage in azure

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”.

create a folder in azure blob container

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.

FAQs

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.

How to delete a file from Azure blob storage

Here, we will discuss deleting a blob from Azure blob storage using the Azure portal.

To delete the file from the Blob storage, you can follow the below steps

Step-1: Select the file you uploaded using the steps you want to delete.

How to delete a file from Azure blob storage

Step 2: Right-click on the file/blob and then click on the Delete option.

Delete a file from Azure blob storage

You can also click on the three dots(…) option and select the Delete option from there

Delete a blob from Azure blob storage

Click the OK button on the Delete blob(s) pop-up to confirm the deletion.

If you want to delete the blob, including the blob snapshots, you can select the delete blob snapshots option and click the OK button.

Steps to delete a blob from Azure blob storage

Types of Azure Blob Storage

Conclusion

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 !!!