Azure storage account
Tags: azure, storageaccount, blob, beginners
Published: 2022-05-06 18:47:52

Azure storage provides cloud storage that is highly available, secure, durable, and scalable. Azure storage includes Azure Blobs (objects), Azure Data Lake storage Gen2, Azure Files, Azure Queues, and Azure Tables. 

In this post, I will be using a **Blob storage**. Azure Blob storage is Microsoft's object storage solution for the cloud. Blob storage is designed for serving images or documents directly to a browser, storing files for distributed access, streaming video and audio and storing data.

**- Creating a storage account**
1. Sign in to [Azure portal](https://portal.azure.com)
2. From the **All services** blade, search for and select **Storage accounts**, and then select **Create**
![Storage account pane](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fqvugninkspk3oe2tfq0.png)
3. On the **Basics** tab of the **Create storage account** blade, fill in the following information (replace **xxxx** in the name of the storage account with letters and digits such that the name is globally unique). Leave the defaults for everything else.
![storage account](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lh68gl6syr3x9nno34lv.png
)
![create a storage account image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l3jgthddzopbhlushqsz.png)
4. Select **Review + Create** to review your storage account settings and allow Azure to validate the configuration.

5. Once validation passes, select **Create**. Wait for the notification that the account was successfully created.

6. From the Home page, search for and select Storage accounts and ensure your new storage account is listed
![new storage account](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ab026hu96435ewwzkdrj.png)
**- Working with Blob storage**
In here, we will be creating a Blob container and also be uploading a blob file
1. Select the name of the new storage account, scroll to the **Data storage** section in the left menu, and then select **Containers**
![containers pane](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a4r9mz8fccgurtmeo1ub.png)
2. Click **+ Container** and complete the information. When done click **Create**.
![add container](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yuchz3xiotqw0axr4dpa.png)![container setting](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5o9yhw3a0osqow451fch.png)![container created](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1e3nabm22t8aecaxn37z.png)
3. Open a new browser window and search for an image of a flower. Right click on the image and save it to your desktop.
4. Back in the Portal, click on **container1** , and then select **Upload**.
![upload pane](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hrglmragpwr3wtdv86ht.png)
5. Browse for the image file you just saved on your desktop. Select it and then select upload.

6. Click the **Advanced** arrow, leave the default values but review the available options, and then click **Upload**.

**Note:** You can upload as many blobs as you like in this way. New blobs will be listed within the container.

Once the file is uploaded, right-click on the file and notice the options including View/edit, Download, Properties, and Delete.
![container1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m2q3zd48k4oeua743kp2.png)

**- Monitor the storage account**
1. Return to the storage account blade and click **Diagnose and solve problems**![Diagnose](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n1pi2j9pqmj1sloj7q9j.png)
2. Explore some of the most common storage problems
3. On the storage account blade, scroll down to the **Monitoring** section and click **Insights**. Notice there is information on Failures, Performance, Availability, and Capacity.
![Insights](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3hq3bwkwn4okwdjj3354.png)

**Great!** We just created a storage account, and also worked with storage blobs.

**Note:** To avoid additional costs, you can optionally remove this resource group. Search for resource groups, click your resource group, and then select **Delete resource group**. Verify the name of the resource group and then click **Delete**.