Please enable Javascript for better experience...
Working with blob storage in Azure
By Rahul Kumar Jha | Apr 28, 2020 | In Articles | Total Views [ 2137 ]
Taged In
(1 Like)
Rate

In this article, you will learn configuring services like container, blob storage in Azure.

Introduction

Azure is the most preferrable claud platform provided by Microsoft and has been used by various popular companies across the world. Azure provide many services to utilize in application like app services, storage, Cosmos DB and many more. In this article

Steps to configure Blob storage

Follow below steps to configure storage.

Open Azure portal and login with your subscription credential.

Now Click on Storage account icon

pic 0

You will land to below page. Click on Add button to configure new storage account.

pic 1

Below page opens up. Now, before we go ahead, you need to add or select a resource group. For that, either select resource group from dropdown under Subscription option or create new from “Create new” link. You can also select different subscription from subscription dropdown.  I have trial subscription so it is showing here as Trial.

pic 2

I am creating new resource group using “Create New” link.

pic 3

Once you create a new resource group, it will show like this in resource group dropdown.

pic 4

Once you have created resource group, it is time to add more details like account name and choosing storage option.

Add account name, select location, performance from given options. I am keeping them as default. When selecting account kind, you will find three options – Storage v2, Storage and BlogStorage.

General-purpose v2 storage accounts support the latest Azure Storage features and incorporate all of the functionality of general-purpose v1 and Blob storage accounts.

  • StorageV2 or General-purpose v2 account: This is basic storage account type meant for blobs, files, queues, and tables. Recommended for most scenarios using Azure Storage.
  • Storage or General-purpose v1 account: Legacy account type for blobs, files, queues, and tables. Use general-purpose v2 accounts instead when possible.
  • BlobStorage accounts: This is legacy Blob-only storage accounts. Use general-purpose v2 accounts instead when possible

Read more here (https://docs.microsoft.com/en-us/azure/storage/common/storage-account-overview)

pic 5

Select StorageV2 option for account kind and click on “Review + Create” button.

pic 6

A final validation will run and account is ready for review and Create. You can change selected options before creating account. Leave other tabs like Networking, Advance and Tag untouched.

pic 7

It will take few minutes to deploy and create your storage account, after which, you will see screen like this with account overview. Now click on “Go to resource” button to view the resource.

pic 8

This is the landing resource dashboard; you will find several options apart from account overview like options to create container, tables, queues etc. In left side, you will find many menu options like Overview, Activity log, Access control, Tags, Diagnose and solve problems, Data transfer, Storage Explorer, Settings etc. We will see them one by one while using them.

pic 9

Adding container

Click on Containers tile, it will open new page where you can create new container.

pic 000

It will open a popup to create a container. Add container name and selection access level. I am using default.

pic 10

After container is created, click on the container and you will see option to upload files.

pic 11

Click on “Upload” to upload blob on cloud.

pic 12

You will see list of files uploaded.

pic 13

Accessing block blob file

Now there is one thing. You cannot open the file from copied URL in browser due to access level. For that you have to change access level of container. Click on container and slect properties. Here you can set access level. I have set it to blob so as to access it publicly.

pic 16

To access properties of this blob file, follow below screenshot.

pic 14

You can copy blob URL to access it in your application or browser.

pic 15

Now you can open selected link in browser and you are done.

Share this

About the Author

Rahul Kumar Jha
Rahul Kumar Jha
Founder, Developer dotnet-concept.com

Public profile: user/profile/99900001


Has working experience in different phases of Software Development Life Cycle (SDLC) in CMS, Gaming, Health Care and Financial Services domain using Agile pattern. Working experience in Design patterns, ASP.NET, MVC, ANGULAR, ANGULAR JS, Windows application, WCF, ADO.NET, SQL Server and Test Driven Development (TDD) environment with JQuery, JavaScript, N-Unit, Entity Frameworks, LINQ, Code Refactoring and Business Objects Models.

User's Comments


 
Please SignUp/Login to comment...

Or comment as anonymous...
* Name
* Email ID
Comment
 
 
 
 
 
 
Sponsors