Lab 4: Azure storage (Blobs, Table, File and Queue)

Azure Step by Step Training Lab 4: Azure storage (Blobs, Table, File and Queue)
23 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€65.24
List Price:  €93.21
You save:  €27.96
£55.79
List Price:  £79.71
You save:  £23.91
CA$95.78
List Price:  CA$136.84
You save:  CA$41.05
A$107.15
List Price:  A$153.08
You save:  A$45.92
S$95.25
List Price:  S$136.08
You save:  S$40.82
HK$547.16
List Price:  HK$781.69
You save:  HK$234.53
CHF 63.78
List Price:  CHF 91.12
You save:  CHF 27.33
NOK kr771.03
List Price:  NOK kr1,101.52
You save:  NOK kr330.49
DKK kr486.66
List Price:  DKK kr695.26
You save:  DKK kr208.59
NZ$117.65
List Price:  NZ$168.07
You save:  NZ$50.42
د.إ257.05
List Price:  د.إ367.24
You save:  د.إ110.18
৳7,682.75
List Price:  ৳10,975.83
You save:  ৳3,293.07
₹5,839.27
List Price:  ₹8,342.17
You save:  ₹2,502.90
RM334.02
List Price:  RM477.20
You save:  RM143.17
₦92,745.84
List Price:  ₦132,499.74
You save:  ₦39,753.90
₨19,488.62
List Price:  ₨27,842.08
You save:  ₨8,353.45
฿2,593.98
List Price:  ฿3,705.84
You save:  ฿1,111.86
₺2,266.58
List Price:  ₺3,238.11
You save:  ₺971.53
B$358.23
List Price:  B$511.78
You save:  B$153.55
R1,308.04
List Price:  R1,868.72
You save:  R560.67
Лв127.69
List Price:  Лв182.42
You save:  Лв54.73
₩96,593.58
List Price:  ₩137,996.75
You save:  ₩41,403.16
₪262.11
List Price:  ₪374.46
You save:  ₪112.34
₱4,037.82
List Price:  ₱5,768.57
You save:  ₱1,730.74
¥10,982.62
List Price:  ¥15,690.13
You save:  ¥4,707.51
MX$1,188.90
List Price:  MX$1,698.50
You save:  MX$509.60
QR255.36
List Price:  QR364.82
You save:  QR109.45
P960.21
List Price:  P1,371.80
You save:  P411.58
KSh9,275.87
List Price:  KSh13,251.81
You save:  KSh3,975.94
E£3,354.25
List Price:  E£4,792
You save:  E£1,437.74
ብር4,018.25
List Price:  ብር5,740.61
You save:  ብር1,722.35
Kz58,443.04
List Price:  Kz83,493.64
You save:  Kz25,050.60
CLP$66,028.30
List Price:  CLP$94,330.18
You save:  CLP$28,301.88
CN¥506.69
List Price:  CN¥723.88
You save:  CN¥217.18
RD$4,095.54
List Price:  RD$5,851.02
You save:  RD$1,755.48
DA9,393.81
List Price:  DA13,420.31
You save:  DA4,026.49
FJ$158.42
List Price:  FJ$226.32
You save:  FJ$67.90
Q544.03
List Price:  Q777.22
You save:  Q233.19
GY$14,645.70
List Price:  GY$20,923.32
You save:  GY$6,277.62
ISK kr9,806.99
List Price:  ISK kr14,010.59
You save:  ISK kr4,203.60
DH708.51
List Price:  DH1,012.20
You save:  DH303.69
L1,235.26
List Price:  L1,764.74
You save:  L529.47
ден4,024.43
List Price:  ден5,749.43
You save:  ден1,725
MOP$564.37
List Price:  MOP$806.28
You save:  MOP$241.91
N$1,312.44
List Price:  N$1,875
You save:  N$562.55
C$2,589.99
List Price:  C$3,700.15
You save:  C$1,110.15
रु9,350.18
List Price:  रु13,357.97
You save:  रु4,007.79
S/262
List Price:  S/374.30
You save:  S/112.30
K266.57
List Price:  K380.83
You save:  K114.26
SAR262.49
List Price:  SAR375.01
You save:  SAR112.51
ZK1,865.62
List Price:  ZK2,665.29
You save:  ZK799.66
L324.62
List Price:  L463.77
You save:  L139.14
Kč1,642.25
List Price:  Kč2,346.17
You save:  Kč703.92
Ft25,489.50
List Price:  Ft36,415.13
You save:  Ft10,925.63
SEK kr767.15
List Price:  SEK kr1,095.98
You save:  SEK kr328.82
ARS$61,365.44
List Price:  ARS$87,668.68
You save:  ARS$26,303.23
Bs484.79
List Price:  Bs692.59
You save:  Bs207.79
COP$272,495.59
List Price:  COP$389,296.10
You save:  COP$116,800.51
₡35,128.88
List Price:  ₡50,186.26
You save:  ₡15,057.38
L1,728.92
List Price:  L2,470
You save:  L741.07
₲521,305.22
List Price:  ₲744,753.66
You save:  ₲223,448.44
$U2,682.06
List Price:  $U3,831.68
You save:  $U1,149.62
zł282.11
List Price:  zł403.03
You save:  zł120.92
Already have an account? Log In

Transcript

So, welcome to lab for as your storage. So, this is a 25 minutes of video and in this 25 minutes in a we will see that how to create a simple as your storage account what are the different data types like blobs, files queues and tables you know which are supported in as your storage. We will also talk about different configuration for storage like v one v two blob hot access cold access, we will also see you know that how as your provides different services like device services like standard and premium, you know, wherein we have HDD and SGD We will also talk about different disaster recovery mechanism or replication mechanism. You know, like LRS, LRS, GRS and ra GRS. And also we'll talk about a nice tool here called as as your Storage Explorer, which can make our as your storage things very easy. So 25 minutes of video.

So first let us start with what exactly is as your storage As your storage is a sophisticated mechanism, you know, wherein you can go and store your data, depending on different kinds of data types. Now, before I go to as your storage, let us try to understand that in our normal life, you know, in our normal computer, when you say you want to go and store data into your hard disk, right, what kind of thought process or what kind of things you know, does the end user do? For example, now, if someone comes to me and says, Okay, see, please go and create a document, then I automatically pick the Word document. If somebody says, create a presentation, then I pick a PowerPoint. So depending on the data type, I first choose my mechanism, my software, you know, by which I can handle that data type.

So that's the first step. The second step is when I say I want to store that data type, when I want to store that file, I store it in some kind of a physical drive. So this physical drive or this device, you know, can be an SGD can be an HDD. So, depending on what kind of drive you have, this data is stored. The third thing is in order that you know, we do not have problems later on, we go and we backup the data. So, we do have some must be some USB or we have a magnetic tape you know in which we keep a backup of the data, so, that we do not have problem.

So, in other words, we go through these three DS You know, when you actually go and store data normally. So, you first identify the data type accordingly you take action, then you go and you store that data type on some kind of a physical medium and then you actually go and you backup you know that you know that data right. So, now when it comes to store data in a car, it also follows the same 3d life cycle. So, first is you identify the data type, then you define what kind of device you want. And then the finally you define how your disaster and backup would be. So, in order to first add data As you're right, you need to go and create them as your storage account.

So you first create an Azure storage account. And then inside that storage account, you go and you add your data types. So you can see I've clicked on the plus new here and you can see there is something called a storage you click on this and there is something called as a storage account. So, first thing is let us give a name to this storage account. Now, remember that whenever you are working on a car, right, you will always find this small sign over here this information sign. So in case if you are confused about some fields that you can always click on this sign and read about it.

So you can see here, it says that this is the name which is given to the storage account in order to identify uniquely, right. So anytime you have a problem, just move your mouse on this and read this one small paragraph so that you understand what that field is. So let us first give a name here to the storage account. So I'll give a name here shave storage account, right so safe storage. dot co dot windows dotnet or don't see me that there is a ship storage account available there. Okay, see I'm famous right my store shave Okay, there it is.

The second thing is we have something here called SM deployment model. Now remember that we'll talk about the new as your which has which is which has which is there for past two years right in that you know we have the concept of resource group, but if you go to the old as your like you know, which was in 2008 2009 right, they did not have the concept of resource group. So, at that time you know, they had the classic model. So, in case you you have an old as your storage account and you are migrating to the new as your into the new version of a car, then you need to switch to classic or else you can just keep the resource manager because resource manager helps you to group the resources. It helps for better accounting. It helps you to you know assign security at the group level, so that it gets assigned to all the resources in that group and so on, right, so I'm going to go and click on this resource manager for now.

So, now, remember those three DS which I talked about. So, first thing is that you need to go and identify the data types right. So, you can see that this is the account kind and in this account kind you know, we can store different data types like blobs, files, tables, queues and so on. So, it says here that tell me you know, what kind of data you have. So, there are there are basically two categories in this one is there is something called as a storage and one is there is something called as a blob storage. Now, as your in general has three kind of data types, so, you can see, there is something called as a blob, there is something called as a file, there is something called as a tables and queues.

So, let us go through each one of them first. So, what I'll do is I'll switch back to my Word document out here and let us try to understand the difference. data types which are supported by OCR, okay. So, as your supports four kinds of data types the first one is the file a file means just a physical file which can be a Word file, a PowerPoint presentation, Excel file and so on right. So, this is one kind of data type. The second kind of data with support is of queues You know, sometimes we want data to be like first in first out.

So, if you are looking for that kind of data types, you know, then you can go and select queues and then we have binary data like you know, like an XC or must be a huge image file right. So, in that case, you can select the blob data type and in case you just have a name value pair, you know columns and rows right then you can you can select table. So, over here you can see that they have created a storage and a blob storage. So, storage means that in this, you will be storing blobs, files, tables, queues, all the four data types, but if you select blob then in this one the blobs will be stored okay. So, both of these accounts are different. So, in case you just want general purpose seeing that I am not looking only for blobs but I have to also store tables, I have to also store files, then you can select the first one, but if you say no like I am interested to one only store raw data binary data, then you can select the blob storage.

Now, also quickly, we have this general purpose v one and then we have the general purpose v two and then we have the blob storage. And if you see, when you are on v one, you would see that some things are not senior, but as soon as I switch to v2, you can see I see something called as access to cool and hot. If I switch to blob, I see I see this access tier, but if I switch to v one, I don't see it. So what exactly is this access tier this access DSC is that how how much is your data accessed for example, If you select hot you know that means that this data is access to frequently and must be that we can do some caching and you know increase your performance right. If it is cool you know that means that this data is not access too much.

So, must be we can disable caching we can look into a less ram kind of a thing and so on. So, in case if you are selecting the blob storage and if you are selecting the storage v2 right, you will see that there is something called as an access tier but that is not present in v1. But please note that if you're selecting this v2 and blob, you are charged accordingly remember in as your for everything that you select right you will be charged. So, please note that whenever you are selecting something select you know as per your need. Now you must be asking So, what is the difference between a storage v one and v two right and blob. So first thing storage v one is the most normal one in this you can still block us files but it does not have the access tier also it does not have the facility of archiving and also the throughput is less.

So, in case you're looking for very very basic thing then definitely General V one is good general purpose v one is good general purpose v two also stores exactly same like v one, but it has this access tier. Also it has the facility of archiving. If you read the as your online or online docs and it says that if you know rather than selecting Blob Storage, they are encouraging people to select storage v2. So, I would suggest that rather than selecting this blob storage in case you want to store blobs and you own the cool and hot feature, you can go and use this storage we do. So storage v one is general purpose, but it does not have the access tier it does not have archiving, storage we do it is again general purpose but it has cool it has access to here and also it has the archiving feature.

So now again, let us continue with our 3d flow. What we have what we have described previously. So remember, this is the first D in a where we have defined the data type. So what I'll do is I'll just select the general purpose v one because I don't want to get charged at this moment. The second thing is we need to now go and select the disk type. So, you can see there is something called as performance and in this we have standard and premium.

If you select standard that means that you will be getting an HDD drive and if you select premium, you will be getting an HDD drive. Now, in case you are not aware of the difference between SSD and HDD, let me explain you in HDD drive, you know, you have a mechanical arm and that mechanical arm actually reads the data from the disk. So it is it is bit slow as compared to HDD. While in SSD we do not have any kind of physical moment and we mostly have chips and through the chips and the mechanism of flash. We read the data and we store the data. So definitely the HDD In terms of efficiency is less than SGD.

But remember that SGD is comes at a cheaper cost. So, HDD drives are cheaper as compared to SGD okay. So, here again if you want better performance, you will select the SGD that is premium and if you say no like I just want to have a basic thing you can select as gd. So, we have defined the data type, we have defined the drive Now, it is time to go and define the disaster and backup So, you can see there is something called as replication and in this we have a lot of options like LRS, LRS, GRS and ra GRS. So, let us let us try to understand that what all these three options are in terms of data backup and disaster. Now, when we talk about disaster recovery, one of the most important thing in disaster recovery is that how do you create your backup plan so, We know that as your is a cloud service and at the end of the day when you say you are a cloud service, you have to be available in a lot of geographical location, right.

So, you can see, we have this something called as as your regions and as your is available in these geographical areas, what you see on the map. So, we have as your data centers in these areas. So, now, when you say that you want to create a backup and recovery plan a proper data replication plan, you would like to have the facility saying that Okay, my data center is in us, but I would like to make a replica copy into India. So, that in case if something happens in us, right, my India copies still there. So, you would like to actually have data backups and recoveries across the geographical location. So, from that perspective, you know, they have given us options here LRS, LRS, GRS and so on, right.

So, let us try to understand these options. So, here is the block diagram or I'll say a diagram which explains you know, how LRS clrs GRS and ra GRS work. So, let's first talk about LRS. Now, when you talk about backup, right, there will be two kinds of backups if you remember in our data types, you know, we said that we are seeing there are two kinds of data types one is we are seeing a general storage and another one is we are very specifically for blob right. So, here as your also classifies data into two types, one is the general data and another one is a blob data. So, if you say general data and if you select LRS right, if you say LRS then the backup copies are created in the same data center.

So in other words, for example, you have an India Chennai data center. So in that in India, Chennai data center, if I select this option here LRS that is locally redundant storage, then what it does is it actually creates a backup in that same data center. So it creates three copies of the backup in the same data center. But if something happens in that data center, then your backup is lost. Right. The second kind of option what we have here is GRS.

I will talk about GRS later on GRS. In GRS, what happens is the backup is done locally as well as it is done in some other region. So for example, if you have a US Texas data center, in that you know you can have so here you can have backup one backup to backup three, then again, you know, because of GRS you also have backup for backup five and backup six. So geographically you know they are located somewhere else as well. So in other words, here you have six backup copies, three locally and three in some other region. Now there is a third option here called as ra GRS.

This ra GRS here stands for read Access geo redundant storage. So if you see this array GRS is same like GRS but it has some extra things here that you can go and also read from the backup. So while the backup is happening, you can also read this backup. So LRS stores locally three backup copies GRS store six backup copies, three locally and three in the US data center or some other geographical data center, region wise they are far away and our GRS goes further one step then GRS it does make six copies but also you can read from the backup copies. So you can read from these copies as well. And also from the from your main copy as well and also from the backup copies.

Also we have a separate option here called a Zed Rs, which is very specially for blob data type. So we can see here, there is something called as a zone redundant storage, Zed RS which especially Typically for blob data storage. So, if you choose Sedaris right, then blob data's can be replicated either in some other geographical location or either in the same region. Center in a For example, I have an India China data center, I have an India Puna data center. Now these both are in the same region. So by clrs, you know, there will be a backup data copy here as well and as well as that'd be backup data copy and puni.

Also in GRS, it is possible that the data copies can also go into some other location. So clrs for blobs LRS for local data GRS geographically different, while ra GRS is geographically different, as well as you can read the data from those backup right. Now remember that if you're choosing the higher end options like Zed, RS and GRS, you will be charged for it. So please note that if you're making a choice, then ensure that you really need it right. So for now, I will not do it. I will just select LRS and it also says that we want to transfer this securely in other words by using SSL I will say no and I will create this in one resource group here saying resource one location I will keep at this moment same central us right and we'll talk about this virtual networks later on.

So you can see that I have covered all the three DS Firstly, I have defined my data type that I'm going to go and store in this files, blobs right. Second, I have defined my desktop I have said that I need an HDD disk. So a standard one and then also I have defined my disaster recovery. So all these three these are provided. Now I can go and create my storage account here my stewardship, so I'm going to go and hit on create over here. So you can see that I've said created and once you Go and see create, it will actually start creating the necessary services at the background.

So you can see at the right hand side it says, deployment of this group is in progress. So we can see now there my storage account is. So if you want to see the storage account, you can go and click on all resources. And you can see my store shift. And we can go here now and then you can start adding things. So for example, if you want to add a blob, then you need to add a container.

So you can go and you can add a container here. And in this you can go and upload blobs. You can see that if you want to add a file, you can go and you can add a file. So file share, we can give some name to it, allocate some, one quarter of one GB of hard disk, and in this I can now go and I can start uploading files, right? In the same way. I can also Go and start creating queues I can go and start creating tables and so on right.

Now definitely, when you talk about creating these things like files queues and so on right you need a better Management Studio for example, if I want to go and create a table it is difficult because in table the structures are in row and column and so on. So, if you see I add a table, you know, you will see that in this to create a column etc, they have not provided good user interface, you can see I have this table out here. Right. But you know, to this table, if I want to add data, then I really don't have anything right. So for that, you know, we have a nice software called as the Microsoft as your Storage Explorer. So you can get Microsoft Storage Explorer, you know, from this link, you know, which I have shown on the video, right?

So you can see that link. You can That link and you can get the Storage Explorer. And even if you google you will get this Microsoft Storage Explorer download right. So, you can go to the Storage Explorer and you can directly connect to your storage account and then you can start doing things. So, you can see here I am connecting to my Storage Explorer. So, my ID my correspond interview questions at interview questions@gmail.com whatever it is, right.

So I need to take that and I need to put it in my as your Storage Explorer. And then it gives a nice interface, you know, by which I can go and create tables, I can go and create queues, it helps me also to query and so on, right. So in order to connect to the storage account, you need to go and you need to add a connection, right you can see add an account. So if you click on Add Account, you need to sign in. So you can see that it asks for a sign in go ahead and sign in over here. Once you sign in, you can see at the left hand side, I can zoom zoom on that.

So you can see that he has been showing me that small icon that you know from where I can go and I can see, this is my stewardship, you can see my stewardship. And inside this my stewardship at this moment, I have created some file share, if you remember, I have created a file share, right? In the same way I can go and create queues. I can also go and create tables, right? So I can go and I can create a table here. Now look at this.

This is table. Let's say, I think I created already a table called as test if you remember, from my UI, from my online portal, I created a test. So in this test, now I can go and I can start adding data so I can see okay, some kind of identifier here. We'll talk about tables, queues, blobs in more detail later on right at this moment. My goal is to just explain you that how as your storage is created. And what are the different factors you need to take into account right?

So do not worry about this partition key row key, I will talk about it everything later on. Because I think we need separate dedicated videos for tables, queues, blobs, and files. Okay? But for now, just understand, you know, so I'll add a property here saying this is a name. So in this I will store shift, right and sort. So in case if you're looking at manipulating the data, creating, you know, the objects like blobs, files and shares and files, and queues, right, the Microsoft as your Storage Explorer is awesome.

Right. Great. So that brings us to the end of this video. In this video, my main goal was to make you acquainted with something called as Microsoft storage and what are the different data types you know how to go into the configuration, how to go and define your recovery plan, you know, and the different options you know, which are needed while you're creating the storage account. Now the next thing what we'll look into is something called as your Cosmos DB because now that we have started with with the storage things right, let us also go and cover Cosmos dB. Actually, I was planning to cover Cosmos dB, you know, in this lab in this current lab, but then I found that, you know, if I directly go to Cosmos dB, you know, I would be doing injustice to as your storage.

So, that's why I first take on the basics of Azure Storage. So in the next video, I will try to cover Cosmos dB. So I hope that you enjoyed this video. And next video is on as your Cosmos dB. Thank you so much.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.