How to create azure storage account and upload image into it
Published: 2023-12-15 23:54:55

**Introduction**
That container that group all azure storage services together is termed azure storage account. It is one of the foundational services provided by Microsoft Azure, that offers a highly scalable and secure platform to store a wide variety of data types in the cloud. It serves as a centralized repository for many data storage needs and is composed of many storage services such as:
 
Blob Storage: Ideal for storing massive amounts of unstructured data like text, images, videos, and other binary data. Blob Storage supports three access tiers (Hot(data that is used regularly), Cool(used within 30days period), and Archive(used 180days) to cater to different data access patterns and cost requirements.
File Storage: Provides fully managed file shares in the cloud, enabling traditional file storage scenarios. Azure Files allows the use of Server Message Block (SMB) protocol for accessing shared files across multiple machines.
Queue Storage: Offers a message queueing system that allows communication between different components of an application or system. Azure Queue Storage facilitates asynchronous communication and decouples components for better scalability and reliability.
Table Storage: A NoSQL key-value store suitable for semi-structured data. It allows for fast querying of large datasets and is an excellent choice for applications that require flexible schema and massive scalability.
Disk Storage: Azure Disk Storage provides block storage to support the persistent storage needs of Azure Virtual Machines (VMs). It includes both managed and unmanaged disks and offers various disk types optimized for different workloads

The storage account can be accessible anywhere in the world over HTTP or HTTPS.

**Guide to create Storage Account through Azure portal**
There are various ways to create Azure storage account i.e. Azure portal, Azure CLI (Command-line interface), Azure PowerShell and
Management client libraries. However, we are focusing on the first.

**Step 1**

Sign in to Azure Portal: Access the Azure Portal using your credentials at https://portal.azure.com/. If you don't have one, create a free account.

**Step 2** 
On Window web browser, search for storage account:

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


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


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

**Step 3**
On the Basics Tab, the first item is the **Project Details** and Instance details. The project details contains the Subscriptions and the Resource group.
The _Subscription_ allows you to determine which subscription will be billed for the resources consumed by the storage account.
While _Resource Group_ allows you to organize and manage the storage account along with other related resources under a common grouping for administrative, billing, and lifecycle management purposes.


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

The Instance details contains information such as Storage account name, Region, Performance and Redundancy.

Storage Account Name: This is a unique name that identifies your Azure Storage Account. It must be a globally unique name across Azure. 

Region: Also known as the Azure Region or Location, this is the geographical region where your storage account's data will be stored.  optimal performance or based on compliance requirements.

Performance: Azure Storage Accounts offer different performance tiers based on your workload requirements. These tiers may include Standard and Premium options, each providing different performance characteristics and pricing. e.g.
Standard: This tier offers reliable, high-performance storage designed to provide cost-effective solutions for various storage scenarios. It includes options for Blob storage, File storage, Queue storage, and Table storage. It is used when there is need to save money.

Premium: This tier offers high-performance, low-latency storage(low data traveling period) suitable for I/O-intensive workloads. It's often used for scenarios requiring high transaction rates and low latency, such as virtual machine disks.

Redundancy: Redundancy options determine how your data is replicated within Azure Storage to ensure high availability and data durability. Azure provides several redundancy options:

Locally Redundant Storage (LRS): Copies data synchronously within a single storage scale unit in a data center. It provides redundancy against hardware failures.

Zone-Redundant Storage (ZRS): Replicates data across multiple availability zones within a region, offering higher durability against data center outages.

Geo-Redundant Storage (GRS): Replicates data to a secondary region at least hundreds of miles away from the primary location, providing data residency and high durability against regional outages. This is the most reliable and expensive.


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

**Step 4**

On the Advanced Tab: 
Note: If the storage account you want to create is for your enterprise/private account, do not click or activate the _Allow enabling anonymous access on individual containers_


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

Leave every other tabs and click on review and create. Note: The deployment must be allowed to complete.


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


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

The storage account is now created:


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

Now, let us take a critical look at the **Data Storage** types here:
Containers: This is used to store all Blob. For us to store any data here, we need to create the container where it will be uploaded. The container acts like a bow inside which our data will stay. 
So, click on this to create one:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hm5jswzubpahg4l6b2ya.png)
Then click on **+ Containers**:

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

You can see that the drop down is not activated because our storage account is local not for public. If we upload any data into this container, we will be unable to share it with the public.

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

**Step 5**

How do we upload into the container?
1. Click on the  name of container created and 2. Click upload:

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o3b0sefq7312m4lgfpjk.png)
The data name storage logo has been loaded into the container. 

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

Now, we need to test if this can be shared with the public:
Click on the data(storage logo)



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

Below is the error message:

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

**Step 6**
We will create another account and make it public and see the effect

On Basics Tab:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8m6ir9c4p1c2jpjvm62h.png)
On Advanced Tab:

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

Next, leave other tabs and go to review and create:

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

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

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

Now we can modify to select image e.g Blob and this can be shared to the public:

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


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


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xg9io90jpz7vc0hzao1p.png)
Next, click on the container and upload same picture to see the outcome:

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

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


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


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

**Conclusion**
From the foregoing, we can see that it is easy to create Azure storage for our data. It is more easier to create container to keep the data. We can equally make the data available to the public and enterprise depending on our needs.
Your comment(s) is needed for improvement.