Azure Storage Container
An Azure Storage Container organizes and holds blobs (files like images, videos, etc.) in an Azure Storage Account. It can be set to public or private and supports various blob types.
Azure Content Tiers
1.Hot Tier: For frequently accessed data; higher storage cost, lower access cost.
2.Cool Tier: For infrequently accessed data; lower storage cost, higher access cost.
3.Archive Tier: For rarely accessed data; very low storage cost, higher retrieval cost.
Steps
Step 1
Log into your azure account, search and click on storage account in
the search bar
Step 2
Click on + create to create a storage account
Step 3
.Choose resource group if one is available or create new one
.Enter the storage account name and
.Choose primary serivce i.e Blob, Queue file e.t.c
Leave other parameters as default depending on what is requested
Step 4
Click on review and create
Step 6
Click on go to resource
Here, we have created a storage account, let us Create a storage container, upload a file, and restrict access to the file.
Step 7
In the storage account, in the Data storage section, select the Containers blade
Step 9
Enter Name for the container, ensure Public access level is Private (no anonymous access) and click create
Step 10
To upload a file, click on the container created
Step 11
Select Upload, Browse to files and select a file, Upload the file, Select the uploaded file.
On the Overview tab, copy the URL, Paste the URL into a new browser tab. An error message will be displayed then
Select your uploaded blob file and move to the Generate SAS tab.
In the Permissions drop-down, ensure the partner has only Read permissions.
Verify the Start and expiry date/time is for the next 24 hours.
Select Generate SAS token and URL.
Copy the Blob SAS URL to a new browser tab.
Here you have successfully uploaded a file to your blob container, next is to configure storage access tiers and content replication.
Step 12
In the storage account, navigate to data management section, select the Lifecycle management blade.
Step 13
Select Add rule, Set the Rule name, Set the Rule scope to Apply rule to all blobs in the storage account and Select Next.
Step 14
Ensure Last modified is selected, Set More than (days ago) to 30
in the Then drop-down select Move to cool storage and click add
Step 15
To create a content replication ensure to create a new storage account and container, then navigate to the first storage account you create,
In the Data management section, select the Object replication blade.
Step 16
Select Create replication rules.
Step 17
Set the Destination storage account to the new storage account, Set the Source container to the first in the first storage account and the Destination container to the new container in the new storage account. Then click Create.
In Conclusion, you have just created a storage container, upload a file, restrict access to the file Configure storage access tiers and content replication in azure portal.