Time
1 hour 52 minutes
Difficulty
Beginner
CEU/CPE
2

Video Transcription

00:00
In this next lesson, we're gonna talk about how we can configure the different services available. Insider new storage account.
00:07
The objectives include reviewing those storage account services that are now available to us and then jumping out to the azure portal and take a look at a demo how we can create and configure some of them.
00:20
So are four main storage account services that we're gonna look at our container file Q and Table,
00:26
and our demo later is going to focus on the container and file services.
00:33
First, let's talk about container
00:35
containers are used for storing unstructured data like binary, large objects or blobs.
00:42
Our containers are what utilized the access tears that we set our storage account to, such as hot, cool and archive.
00:49
Now a storage account can be set to the archive tear, but individual blob objects inside the container can be set to the archived here, and we'll see the center demo later. Now, within our container. When we upload objects, we do have a couple of different types that we can configure for our blobs. First, we have blocked, which are just binary or text files.
01:08
Next, we have Page, which are optimized for random read write operations like virtual machine dis drives.
01:15
Finally, we have upend, which are optimized for upend operations like you might see in log files where you're just riding to the end of the file.
01:23
In this diagram on the right, I've tried to outline what this relationship looks like. First, we have individual pictures, container and a movies container, and this is where I like to think as containers as almost like the parent folder in a file system.
01:36
And within each container we have our individual blob objects over and pictures. We have image one, an image to and over in movies. We have movie one and movie, too.
01:45
Earlier, when we talked about configuring our storage accounts, I mentioned that the name of the storage account is appended with court dot windows dot net.
01:53
And actually, each service has its own unique euro that we can use to access the service. So for containers, it's gonna be the name of the storage account dot blob dot core dot windows dot net.
02:06
Next, we have the file service. This is a managed file share, just like you might have with other file shares through Windows or Lennox servers. They support the server message block or S and B protocol, which is a which is pretty standard across the industry.
02:20
What's really great is with these manage file shares, you can have concurrent mounts so you can mount the foul share to multiple systems.
02:27
And with azure file sync on Windows Server, we can cash the files for faster access on the server instead of always having to reach out into the storage account. We also have snapshot capabilities, and these are point in time. Read only copies of the data
02:43
they'll protect against application errors that might be accessing the data or any other data corruption or accidental deletions. That might happen again. We have a special you Earl for this. It's going to be the name of the storage account dot file that core dot windows dot net.
02:59
Next, we have the Q service and these air used as an application message queue. What that means is, if you have communication between different application components for the program you've written,
03:10
you can store messages inside these cues and have another part of the application. Go to the Q and retrieve them. An example for this might be incoming and outgoing orders in an order taking system. This Q is accessible over http requests, and in this diagram over here again,
03:28
stealing from my earlier diagram a little bit, we have two different cues. We have an incoming que in an outgoing que
03:32
and each of them we have different messages. These could be orders so you could have an incoming order that you need to process or an outgoing order that you need to process. And just like our other services, this has its own unique girl is going to be the name of the storage account doc. You dot core dot windows dot net.
03:52
Next, let's talk about the table service. This allows for storing large amounts of structure data
03:57
and provides a flexible data set for your applications
04:00
data. Anna is stored in a name value pair inside of each of the entities in your table,
04:06
and here's a little diagram starting to look familiar. I have two different tables here, a customer's table and a products table,
04:14
and the customers have two different entities in him, and we have name value pairs of named John and a customer I D of 123
04:21
and likewise for our products. We have a vendor and M S R P or a price for each product.
04:28
Just like our other services. It has its own unique Eurail that's based off the storage account. Name dot table dot core dot windows dot net
04:38
the desert for concepts Let's jump out to our demo, where we're going to create a container and a file share and see how those work
04:46
Harry are back in the azure portal and to get started. Let's go over to storage accounts and access our J V T 2020 storage account
04:55
Back in the overview page over storage account, you can see our four services that we talked about containers, fall shares, tables and queues. Let's get started by going into containers first
05:06
and inside containers. Let's click the plus sign and create our first container,
05:12
going to name this container training videos
05:15
and I'm gonna set the public access level to Blob. Now in a future episode will discuss thes access levels before. Right now, I just want to make sure I can read it anonymously through the browser.
05:26
Once this is set, let's go and click on OK,
05:30
and let's go ahead and create a second container called vacation pics,
05:34
and we'll set the same public access level to Blob
05:40
with our two containers. Now let's jump back into the training videos.
05:45
I'm going to select upload to put some data in here.
05:48
It was like the folder icon to choose a file
05:50
you see here actually have recordings of the first episodes of this course. Let's go ahead and select lesson 1.1
05:58
and let's go check out some of the advanced options.
06:01
First we have our authentication type will just leave it at account key,
06:05
and we can also set our blood type.
06:08
For right now, I'm gonna leave it at Block Blob, but we do have the option of going in here and selecting our page blob or pen blob.
06:15
We'll leave our block size
06:17
at four megabytes,
06:19
and this is where we consider access to your
06:23
right now the hot is selected by default because that's what our storage accounts configure to. But then we could also change it to cool, and this is where we have the archive access to your option
06:31
that does it for a settings. So let's go and select on upload
06:36
with our upload complete. Let's go back to our foul list here.
06:41
I'll select the three dot context menu over here
06:45
and let's choose properties.
06:47
And here in our properties, we have a euro right here of where we can access our file. I'm going to copy this to the clipboard.
06:55
Let's go ahead and open up a new tab
06:57
and paste this in here. I'm going to zoom in on this and you can see we have our storage account name dot blob that core dot windows dot net
07:03
the name of our container training videos and then the name of our file. So this makes up the euro. We could use to access this file if we need it to.
07:13
Let's go ahead and go to this euro and you can see the first lesson in this course pop up.
07:18
So this is successful. I'm able to access this file inside our container and our blob storage accounts.
07:27
Let's go back to containers.
07:29
It's going to our other container vacation pics.
07:31
I'm going to do the same thing. Let's go to upload.
07:33
I'm going to choose a couple of files to upload here
07:38
I have three National Park vacation pictures.
07:41
I'm gonna go ahead and leave all our advanced settings at their default on Let's select upload.
07:47
Let's clear out of these
07:49
prompts here
07:51
and again. Let's go to the first picture here. Properties will grab the access your l
07:58
open up a new tab,
08:00
paste it in
08:01
and Walla were able to access the picture inside our container storage.
08:05
So hopefully this illustrates how we can use containers to divide up our blob objects and then upload files and access. Um three Euro.
08:13
Let's go back to the overview of our storage account
08:18
and this time was going to file shares.
08:22
We'll click the plus sign to create our first file share,
08:24
going to give it a name of just department data, and we could set a quota here for maximum storage. We wanted in it. Right now, I'm just gonna leave at the default. I believe it's five terabytes.
08:35
Let's click on create.
08:35
Next. Let's go into our new fall share.
08:39
First, I'm gonna upload some data, so when we connect it to our Windows server will be able to see the data in it
08:45
again. I'm going to just select a couple of these vacation pictures.
08:48
Let's clear out of these prompts.
08:52
Next, let's go click on the Connect button,
08:56
and here we have the instructions of how to connect this to our different servers. We have Windows, Linux and Mac OS.
09:05
Let's go back to Windows
09:05
and has instructions. Here we can select the drive letter, and it tells us to run this command down here in a regular power show window.
09:13
This little script here has the commands necessary to connect to the storage account. Let's go ahead and copy this to the clipboard,
09:20
and then I'm going to switch over to a Windows server. I have running an azure so we can test this connection and make sure we could connect to our foul share
09:28
Here in our Windows virtual machine
09:31
already have our power show window open, and I want to switch over to Windows Explorer and show that we don't have any network shares connected. Right now.
09:39
It's going switch back to power show
09:43
going to open up. No pad real quick.
09:46
I want to paste this command here and talk about what it does.
09:48
First, we're running a test net connection to make sure we can connect to our
09:54
file share girl over port for 45 which is the S and B Protocol.
09:58
And if that connection is successful, we're going to store an access key in order to connect to our foul share.
10:05
And by storing this using the CMD key command will be able to reconnect to this foul share after reboots.
10:13
Finally, we'll create a new PS drive
10:16
with the drive letter z out to our foul share.
10:18
Let's go ahead and grab this first command here
10:22
will drop back to power Shell. Let's run our test net connection.
10:26
It looks like it succeeded. So let's check out the Connect test result Variable.
10:31
We can see the TCP tests succeeded is true. So let's go back and grab the rest of this command
10:39
back to power show will paste it in, and we know it's going to be successful. So let's go ahead and run it and also want to get this out of the way so we can watch in the background and see our drive letter connect
10:48
so it creates the command key with are stored access key and then successfully creates the PS drive. If you notice in the background. We now have a new drive letter and Windows Explorer, and if we open it
11:00
there, we have it there. The three pictures I uploaded to our foul share so you can see how great this could be. We can create fall shares and connect him to our different systems for applications or maybe department data and use buyer users without spinning up an actual server to host it. Whether it's the Windows or Lennox one
11:18
that does it for a demo, let's jump back to the slides and wrap this up.
11:22
That is it for this lesson where we discussed our different storage account services that are available to us and took a look at how we can configure our containers and files
11:31
coming up. Next, we're going to take a look at a tool called Storage Explorer and see how we can use it to access our storage account.
11:39
See you in the next episode.

Up Next

Azure Storage Accounts

In this course we will cover the different configuration options when creating storage accounts, how to secure data in the accounts, and finally how to upload and manage data in the storage account services.

Instructed By

Instructor Profile Image
Jeff Brown
Instructor