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
€67.10
List Price:  €95.86
You save:  €28.76
£55.67
List Price:  £79.54
You save:  £23.86
CA$100.49
List Price:  CA$143.56
You save:  CA$43.07
A$111.96
List Price:  A$159.95
You save:  A$47.99
S$94.87
List Price:  S$135.54
You save:  S$40.66
HK$544.16
List Price:  HK$777.41
You save:  HK$233.24
CHF 62.56
List Price:  CHF 89.37
You save:  CHF 26.81
NOK kr792.29
List Price:  NOK kr1,131.89
You save:  NOK kr339.60
DKK kr500.54
List Price:  DKK kr715.08
You save:  DKK kr214.54
NZ$123.74
List Price:  NZ$176.78
You save:  NZ$53.04
د.إ257.07
List Price:  د.إ367.26
You save:  د.إ110.19
৳8,330.24
List Price:  ৳11,900.85
You save:  ৳3,570.61
₹5,945.56
List Price:  ₹8,494.03
You save:  ₹2,548.46
RM315.51
List Price:  RM450.75
You save:  RM135.24
₦108,149.19
List Price:  ₦154,505.46
You save:  ₦46,356.27
₨19,403.53
List Price:  ₨27,720.51
You save:  ₨8,316.98
฿2,393.75
List Price:  ฿3,419.79
You save:  ฿1,026.04
₺2,454.67
List Price:  ₺3,506.82
You save:  ₺1,052.15
B$425.95
List Price:  B$608.53
You save:  B$182.58
R1,282.09
List Price:  R1,831.63
You save:  R549.54
Лв131.15
List Price:  Лв187.37
You save:  Лв56.21
₩101,234.93
List Price:  ₩144,627.53
You save:  ₩43,392.60
₪254.67
List Price:  ₪363.83
You save:  ₪109.16
₱4,117.86
List Price:  ₱5,882.91
You save:  ₱1,765.05
¥10,949.58
List Price:  ¥15,642.93
You save:  ¥4,693.35
MX$1,405.49
List Price:  MX$2,007.92
You save:  MX$602.43
QR254.12
List Price:  QR363.05
You save:  QR108.92
P963.49
List Price:  P1,376.48
You save:  P412.98
KSh8,999.72
List Price:  KSh12,857.29
You save:  KSh3,857.57
E£3,561.31
List Price:  E£5,087.81
You save:  E£1,526.49
ብር8,689.79
List Price:  ብር12,414.52
You save:  ብር3,724.72
Kz64,250.82
List Price:  Kz91,790.82
You save:  Kz27,540
CLP$69,143.42
List Price:  CLP$98,780.55
You save:  CLP$29,637.13
CN¥510.67
List Price:  CN¥729.56
You save:  CN¥218.89
RD$4,244.94
List Price:  RD$6,064.47
You save:  RD$1,819.52
DA9,440.04
List Price:  DA13,486.35
You save:  DA4,046.31
FJ$162.13
List Price:  FJ$231.62
You save:  FJ$69.49
Q537.12
List Price:  Q767.35
You save:  Q230.22
GY$14,584.29
List Price:  GY$20,835.60
You save:  GY$6,251.30
ISK kr9,693.35
List Price:  ISK kr13,848.23
You save:  ISK kr4,154.88
DH701.59
List Price:  DH1,002.31
You save:  DH300.72
L1,285.64
List Price:  L1,836.70
You save:  L551.06
ден4,127.89
List Price:  ден5,897.23
You save:  ден1,769.34
MOP$558.06
List Price:  MOP$797.27
You save:  MOP$239.20
N$1,283.39
List Price:  N$1,833.49
You save:  N$550.10
C$2,565.21
List Price:  C$3,664.75
You save:  C$1,099.53
रु9,482.30
List Price:  रु13,546.73
You save:  रु4,064.42
S/259.58
List Price:  S/370.84
You save:  S/111.26
K282.68
List Price:  K403.85
You save:  K121.16
SAR262.90
List Price:  SAR375.59
You save:  SAR112.68
ZK1,929.21
List Price:  ZK2,756.13
You save:  ZK826.92
L333.95
List Price:  L477.10
You save:  L143.14
Kč1,686.22
List Price:  Kč2,408.98
You save:  Kč722.76
Ft27,781.83
List Price:  Ft39,690.03
You save:  Ft11,908.20
SEK kr772.17
List Price:  SEK kr1,103.14
You save:  SEK kr330.97
ARS$71,242.69
List Price:  ARS$101,779.64
You save:  ARS$30,536.94
Bs481.71
List Price:  Bs688.19
You save:  Bs206.47
COP$305,135.87
List Price:  COP$435,927.07
You save:  COP$130,791.20
₡35,171.10
List Price:  ₡50,246.58
You save:  ₡15,075.48
L1,769.55
List Price:  L2,528.04
You save:  L758.48
₲543,563.42
List Price:  ₲776,552.46
You save:  ₲232,989.03
$U3,109.25
List Price:  $U4,441.97
You save:  $U1,332.72
zł286.15
List Price:  zł408.81
You save:  zł122.65
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.