Azure Blob Storage.
Tags: azure, stepfunctions, github, softwaredevelopment
Published: 2024-07-03 03:16:39

## Azure Blob Storage is a service for storing large amount of unstructured object data in the cloud that doesn't adhere to a particular data model or definition, such as text or binary data. Blob stands for Binary Large Object. Blob storage is also referred to as object storage or container storage.

Task 1: Create a storage account.
- Create a storage account in your region with locally redundant storage.
- Verify the storage account was created.

Task 2: Work with blob storage:
- Create a private blob container.
- Upload a file to the container.

Task 3: Monitor the storage container.
- Review common storage problems and troubleshooting guides.
- Review insights for performance, availability, and capacity.

**Azure **Blob Storage uses a container resource to group a set of blobs. A blob can't exist by itself in Blob Storage. A blob must be stored in a container resource.

## **Task 1: Create a storage account.**

- We would first create a new **Storage Account**.
- From the Azure portal home page, click the **Menu** button in the upper left corner.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f3cztp3xsatoe3iopi9e.png)

- Select **Storage Account.**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lac4xoyqje82n7akmq5h.png)

- Click **Create**.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1p1a2g8rivjne3x8ixqb.png)

- On the Basics tab of the **Create A Storage Account** blade, under Resource group, click Create New.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lwszlwnw47r0hbekm3ux.png)

- Provide a name for the resource group, and then click OK.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1kxqq83xpnd27jfj39dc.png)

- Scroll down to continue.

- Fill in the instance details as shown to on your screen. Leave the defaults for everything else.

- Storage account name:> storageaccountxxx(use your Deployment ID)

- Performance: Standard 

- Redundancy: Locally redundant storage (LRS)

- Click **Review + Create **

Important note: Most Azure resources requires unique names. Throughout these steps, you will see placeholder words such as > "DeploymentId"
 as part of resource names. In a real world scenario ,you would replace these words with your unique ID or use the naming convention determined by your organization .For the purpose of this guide ,we are using deployment ID 507268.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/007na3jkl6jjjc9s8w6g.png)

- When you see the notification that validation passed, click _Create_ to create the storage account.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kb2p6s9yivhg9z20pm2j.png)

- The new storage account is now listed.

## **Task 2: Work with Blob Storage.**

- After the deployment is complete, click_ Go To Resource_.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lyw7d16hyr0aglvtxzzn.png)

- In the left menu, under _Data Storage_, click _Containers_.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i6leytxp6s4118e1annz.png)

- Click** Container** and give the new container a name. When done, click **Create**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n71nkgmwhhcl8rspd4ff.png)

- Click on the name box.

- Select Private and click_ Create_.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z8cut2mt1xa31xzkuppq.png)

- Click the container we just created, and then click **Upload**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8hcf6l94u7c9pp6xgm2v.png)

- Browse to a file in my Local computer.
**Note:** You can create an empty . txt  file or use the existing file. Consider choosing a file of a small size to minimize the upload time.

- In this case, select an image files.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yu349827h4jeihvqy8ud.png)

- Review the available option, and then click Upload.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6zzrskpnx2oxvuozwx7n.png)

- Once the file are uploaded, right click a file and notice the options, including View/edit, Download, Properties and Delete.

- Select Properties.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ncn832pdktxpm01adrn9.png)

- Review the properties and the available actions ,and then close the window.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hfm8ie8nxxsu0nyagcck.png)

- Return to the storage account page.

- Storage account can be used  for other purposes, such as file shares, queues and tables .From the left menu, click File shares.

- Review the options ,and then do the same for Queues and Tables.

**## Task 3: Monitor the storage account**

- Click Diagnose and solve problems.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iyx7aiav5tb9ydjho1tx.png)

- Here you can explore some of the most common storage problems and find tools. Notice there are multiple trouble shooters.

- Click _Troubleshoot_ to look at an example.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8hlacx8jcsghxmw4k6gc.png)

- Close the window.

- Next, scroll down to the Monitoring section and click Insights

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ycq1tenjkoyme0e8vrzw.png)

> Notice there is information on Failures, Performance, Availability and Capacity. Your information will be different.

Hosting a static website on Azure Blob Storage offers a scalable, secure, and cost-effective solution. By following these steps, you can deploy your static website and take advantage of Azure's global infrastructure. With Azure Blob Storage, you can focus on developing your website without worrying about the underlying infrastructure.

## Additional Tips and Best Practices

- Use Azure Storage Explorer to manage your containers and blobs.
- Use Azure Pipelines to automate your deployment process.
- Use custom domains and SSL certificates for a professional touch.
- Monitor your website's performance using Azure Monitor.

By following this comprehensive guide, you can successfully host your static website on Azure Blob Storage and enjoy the benefits of a scalable and secure online presence.