Time
7 hours 46 minutes
Difficulty
Intermediate
CEU/CPE
7

Video Transcription

00:00
Hello and welcome back to Siberia's Microsoft Azure administrator. Easy 103 Course, I'm Will Carlson. And this is Episode 20 configuration files and file sink.
00:10
In today's episode, we're going to do just that. We're gonna configure an azure file share.
00:15
We're gonna talk about how you map that file share to a local client, end point and we're also gonna step through and discuss configuring azure file sink
00:24
to get started. We're gonna jump right back here into Portal, and we're gonna go to our storage account that we created in a previous episode.
00:31
We're gonna click on into that storage account, and we're gonna scroll down here into files
00:37
very similar to our blob storage. There's not a whole lot going on here, but I can create a file share here.
00:44
All I have to do is name that final share.
00:48
You can put a quota here as well, and that's a great testable differentiator between file shares and blob storage. Blob storage does not have an equivalent function, So if the test asks you or mentions that quota would be required, the answer is going to be a file share.
01:04
We're gonna go ahead and create that file share,
01:07
and that's really all there is to it. We've created a file share here in Azure.
01:12
Another differentiator between file shares and blob storage is that follows. Shares are conducted over the S and B protocol or with port 445 Now, if you're testing this in your home environment, you may run into the fact that your I s P likely blocks outbound 445
01:30
And that's gonna be for security reasons, functionally here in Azure. You won't likely run into that issue because you'll have a VP and set up between your on prim site and the azure environment as well.
01:42
We will talk about setting a BP ends with azure in the networking sections coming up.
01:47
Now that we have this file share up, let's go ahead and click on the file share itself
01:52
and you can see that this window looks very similar to the blob storage window as well. With snapshots in here, we can edit the quota after we've deployed the azure file share, which is great. You can grow. This is you need thio.
02:05
We can add directories and we can even upload files right from here
02:08
very similar again, too.
02:10
Blob storage.
02:13
I'm gonna go ahead and upload a file here real quickly
02:15
and let's go ahead and upload this C I s controls work. She
02:21
go ahead and click, upload.
02:23
And there I've uploaded files to the azure file share. Now, clearly, you're not gonna be interfacing with the azure file shares be a portal most of the time, and your end users most definitely will not. So how do you get connected to the file share from your in pointing device
02:38
again, Relatively straightforward. We're gonna click here on Connect and Portal is gonna show us a few different ways for a few different operating systems as to how we connect to an azure file share.
02:51
One interesting thing here that I want to point out about the Power Shell Command to map this drive is that the first thing that it does is test net connection. And that's just to make sure that you can actually connect to the azure foul share before it attempts to create the drive letter on your windows end point.
03:06
And in order to do this, all you have to do is copy and paste this into a power shell command window, and that's gonna map that drive for you on your end point device.
03:15
The same thing can be said for linen or Mac OS as well. You just copy and paste the commands into a command line window, and that's gonna create that drive for you.
03:25
You'll also notice here that because of the way we set up the storage account that we are required to communicate with this file share via a secure method. In this case, that means you have to use S and B 3.0 in order to support encryption.
03:40
And as your file share usage really can be just that simple.
03:45
I want to go on now, though, and talk about azure file sink because just about every production workload has some file storage of one kind or another. And if you can move that over into Azur and still interface with that storage in exactly the same way that you always have, that's really pretty powerful.
04:00
So with the previous example that we gave you, would is the administrator need to go in and map a new drive for the end user, and they would need to know to use that new drive. But
04:10
as your offers an even more simple way for the end user to interact with file storage. And that's via as your file stink. So we're gonna go up here to create a new resource and search for azure file sink. There it is.
04:26
We're gonna go ahead and click on that and create an azure file sink service.
04:30
As with many of the things that we've done here and azure, we have to select a subscription and a resource group.
04:35
And then we also need to pick a name for the service.
04:41
I'm gonna leave that here and let's actually make this central us.
04:46
We don't need to see tags, and we're gonna review and create and then create that balancing service.
04:51
Now that that housing service has been created, we're gonna go ahead and click, go to resource,
04:57
and that puts us down into the final sink.
05:00
Now, the first thing we need to do in this file sink service is create a sink group.
05:05
We're gonna go ahead and name this file. Same group.
05:12
We're gonna leave this in the free trial subscription, and then we have to select a storage account that we would like to use.
05:16
I'm gonna use the only one that we have here.
05:19
And then I'm gonna go ahead and click on the file share that I would like to use as well.
05:24
We're gonna create that final sinks in group
05:27
and let that deploy
05:29
setting up that sink group has actually deployed the cloud end point. So the azure side of this communication So what we have to do now is deploy the on premise side of the equation and that's gonna be done by clicking here on registered servers.
05:43
Clearly, we have no registered servers here because we haven't installed the azure file sing agent on any of those machines.
05:49
I'm gonna go ahead and copy and paste this address,
05:54
and I'm gonna move it on over into my virtual machine that's running here in Azure as well.
05:59
Now, the first thing you'll likely have to do we get on to your server machine is to go to local server
06:04
and disabled the I E enhanced security configuration.
06:10
You only have to do this for administrators and you can turn it back on when you're done.
06:14
The alternative and maybe more. Best practice way to do this in production would be to download the file sink agent to a separate machine and then use internal file shares after you've made sure the file is safe to move it over to the server. But for the sake of brevity here, we're gonna go ahead and do it this way.
06:29
We're gonna open up Internet Explorer.
06:30
We're gonna accept these defaults and then pay StarLink here, an Internet explorer.
06:35
Go ahead and hide this message, and then you can see right here. It brings me into the address. I'll sing agent download, download that
06:43
and select the appropriate one. Here. We're on Server 2016
06:47
and hit next.
06:49
Now that the M s I has downloaded, I'm gonna go ahead and view the downloads and I'm gonna run that installer.
06:56
We're gonna click next to the first dialogue here.
06:59
We're gonna accept the terms except the default installation selections.
07:03
No custom proxy in this environment.
07:05
We're gonna allow Microsoft update as well.
07:09
And then here you can check mark this box to automatically update as there are updates to the azure file sink agent and choose whether or not you want to send telemetry information to Microsoft
07:18
and I'm gonna hit Install.
07:20
Now that that install has completed, I'm gonna go ahead and select finish here. And that should conclude our installation here on the server device.
07:30
Now that the insulation is done, we're gonna be prompted by the configuration steps for the azure file sink on the server. Gonna select. Okay. Here.
07:39
And you can see that we're missing some required components here for the azure files. Think to run. And what we're missing is the ese power show modules. So we're gonna walk through installing that real quickly.
07:48
We're gonna click here. We're gonna open up our shell. Be sure to run this in the 64 bit version and run it as an administrator.
07:58
And they were gonna paste this code here. Installed dash module, dash name, ese Nash. Allow clubber, and that's gonna install the ese module here in the server.
08:09
We'll say that we need to do some updates here to power shell. We're gonna accept the default is yes.
08:13
We're also warned that the current depository isn't one that's already installed, but we're going to say yes to go ahead with that installation as well.
08:20
Now that those power show modules are installed. I'm gonna close power shell, and I'm gonna retry this configuration. Step
08:26
here in this screen, You most likely won't need to change anything. Nor options here. For that is your environment, our public cloud, our government cloud. And unless you are a government user, you'll have no use for Government Cloud. I'm gonna go ahead and sign in.
08:39
That's gonna problem me to sign in with my azure credentials here.
08:43
Other all signed into Azure. I'm gonna select the subscription that I'd like to use. I'm gonna stick with my free trial subscription
08:48
That's gonna populate my resource group. We're gonna go ahead and select the IITTIE resource group
08:54
and they were gonna select our storage sink service. And now we're going to register this server to the storage sink service.
09:01
We completed the file sink registration of the server. I can go ahead and select. Okay. Here. And then we're gonna go back to portal.
09:09
We're gonna refresh this page
09:11
and you can see the server that we just completed. The registration on is here in azure portal as well.
09:18
Now we have one more step to get the file sink service all set up and running. We're gonna go back to overview
09:22
and we're gonna click on our final sink.
09:26
Now we're going to add the server end point into the equation. We created the Cloud End point when we launched the Fall Sing service. We registered the server and now we can deploy the server in point.
09:37
This list here shows all of the registered servers Minister like that. And now we get to inter and a path on the server. If you do this wrong, it simply will not work. You will get errors. I'm gonna select the C drive, which is the data disk that I have joined to this particular server.
09:52
And then we're gonna look here, a cloud tearing you can enable cloud tearing. And other than just backing up or storing your files onto the azure fella, share is well, cloud tearing will help you offload some of the storage requirements in your on premise environment.
10:05
And what this does is that cloud hearing allows the Azure Files Inc service to store the data that you've access recently on your local machines and to store the rest of the data in the azure foul share of service as well
10:18
And now I'm gonna go ahead and click, create.
10:22
Now that we have everything set up and because we have a really small amount of files to be sync between azure storage and our server, we're going to go ahead and go back to the server and see if the file that we uploaded here in Azure is already there.
10:35
We're gonna click here.
10:37
We're gonna be looking for the Z drive or the file share here on this machine.
10:41
We're gonna click that and we can see that the file that we uploaded in Azure has already sink back to the server using Azure Files, Inc.
10:48
So in today's episode, we walk through how you can host s and the file shares you in Azure using azure files. We talked about the differences between blobs and files, and the primary ones are going to be that azure files support quotas, and they're accessible using SMB.
11:07
The last thing we covered was the install of the azure file sink solution to synchronize your files both between your on prime servers and azure. And we talked briefly about cloud tearing
11:18
and how you can use that to offload some of the storage needs of your on prim servers
11:22
coming up. Next, we're gonna spend an episode talking about some ways that you can secure your storage accounts so you don't end up being the subject of the next storage account. Reach. Thanks for joining me today, and I'm looking forward to the security episode coming up next.

Up Next

AZ-103 Microsoft Azure Administrator

This is a training course for the Microsoft Azure AZ-103 Certification. The Microsoft Azure Administrator training course teaches students to perform tasks like managing Azure subscriptions and resources, implementing and managing storage, deploying and managing virtual machines (VM) and networks, and managing identities!

Instructed By

Instructor Profile Image
Will Carlson
Director of IT and Cybersecurity
Senior Instructor