HOW TO CREATE A STORAGE ACCOUNT AND UPLOADING ON BLOB STORAGE.
Published: 2023-11-23 14:07:22

## What is storage account
An Azure Storage service group is contained within a storage account. A storage account can only contain data services from Azure Storage. An Azure resource that is a member of a resource group is a storage account.
There are four types of storage account in Azure namely:
1. Blob storage
2. Azure Files
3. Azure Queues
4. Azure Tables

## Creating a storage account.
- Log into your azure account.
- Click create
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g9hpi2ixusllrovhhhpv.png)
- Search storage account in the market place
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ff31l3q9fsmjk91wkcxn.png)
- Select storage account and click create
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ssww9mo0vpam6f9c6s36.png)
- Fill in the project details which include subscription and resource group; you can choose an existing group or create a new one 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/otxlco76628gkaq08y1d.png)
- Next is to fill the instance details which comprises storage account name, region, performance and redundancy. You can choose any name for your storage account.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h0jobfylqe6x7a1gy6a0.png)
- Leave other settings as default and click review
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d1qqf7sch154lsqm7rq4.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/16f88nzx17oshzrggx3m.png)
- Once the validation is passed, click create
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j39knccaudm5cui52gvp.png)

- Wait for it to deploy
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/55x1ye7rmbfh25fpvjou.png)
- After deployment is complete, click go to resource
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/symwwlfcl1ot5d1m098j.png)
- This will take you to overview page of your storage account
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jh5uu3ar6c7suk88eyuf.png)

## How to upload and access uploaded files in storage account
- In the overview page, change blob anonymous access to enabled by clicking on it, select enabled and click save
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s008et5f2fhstsd8n9l6.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fmnwe2x1g501y6vos80f.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pz6aa7eslh6t0l6dd65h.png)
- Click container
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qjrauij1d08f33kjn491.png)
- Click + container to create a new container 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/904g8q9y6vf51lr60ib7.png)
- Supply the name for your container, change the access level to blob and click create
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xdgormwnidji5w27kmsl.png)
- This will bring you to the page with the newly created container
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fhq6d6wi8cx3k3y7u6x3.png)
- Open the new container by clicking on it and select upload.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e51hcc8ciyjjqaj38rkx.png)
- Browse for files to upload
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eblsnqrpy7s385jyuina.png)
- Click upload
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/39a4a1ipcc5waqfgh6um.png)
- Once the upload is successful, the uploaded file will be listed in your container
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lwhuuwdexlnk9o873n7f.png)

## How to access the uploaded file in a container
- Click on the file and copy the file url
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nc912sj64e6j9ujm96kj.png)
- Open a new browser, paste and search the copied url
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5vrzw0wd5p6i6pbnqbco.png)