Time
7 hours 46 minutes
Difficulty
Intermediate
CEU/CPE
8

Video Transcription

00:01
Welcome back to Cyber Aires, ese 103 Microsoft Azure Administrator. Of course, my name's Will Carlson, and this is Episode 30 virtual machine extensions.
00:10
In today's episode, we're gonna talk about how virtual machine extensions can help us automate the post deployment configuration steps that we often have to perform as administrators. And again, the whole goal here is we have these armed templates that can automate some of these deployments. But
00:28
how do we automate the steps that we have to do to the virtual machine after that? And
00:33
thankfully, through virtual machine extensions, there is a way
00:37
we're gonna jump right here into portal and go to resource groups
00:43
and back into our I T resource group, where we currently have a couple of virtual machine workloads running.
00:49
Now the extensions available to you are going to depend on the operating system of the virtual machine. And to prove that point here, we're going to go to this service desk of'em, which is a Lennox virtual machine. I can go ahead and click on extensions here,
01:03
and I can see that a number of extensions have already run, but I can go ahead and add some others. And here is a list of all of the extensions available for Olympics machine. Some of these air gonna be from third party vendors. Some of these air gonna be vendor neutral or vendor agnostic that you can use to do whatever you would like to do.
01:22
For example, custom script for Lennox.
01:23
Custom script for Lennox is going to be a V m extension produced by Microsoft, and it ultimately will use and leverage Power Shell that is cross platform and can be installed little the next machine to do any number of the post configuration steps of your Lennox machine itself.
01:40
You'll also notice another pretty infamous or famous Lennox. Just piece of software for automating and orchestrating is going to be chef and Chef also has a
01:51
bm extension here available in azure as well. So if you have a chef environment, you can simply deploy this Lennox extension. You could even do this, be of the armed template, and then that machine would go ahead and register to chef. And then you could handle all of your post deployment orchestration using Chef.
02:08
Now, we're gonna go back out here in the resource group and go to Bible sing server. And this is a Windows virtual machine that I have running here in this resource group.
02:20
And we're gonna go back to extensions just to look at some of the different extensions available here. Tow us for a windows were closed.
02:27
Now, the first thing you might notice is that some of these air going to be familiar when the chef extension is similar to the linen chef extension Custom script extension is here, available with for windows as well.
02:37
One particularly powerful virtual machine extension. You might want to look into his power shell. Desire to state configuration D S C is a very powerful suite of tools that are available to us as administrators b a power shell toe. Help us automate a lot of these post deployment and configuration tasks
02:54
to simplify the example. Here, I'm gonna go ahead and select on custom script extension,
03:01
and I'm gonna create one of these.
03:04
I'm going to go ahead and upload a power shell script
03:08
and I have a basic I asked Power Shell script here.
03:12
Gonna open that
03:14
and we can see that that's uploaded to Azure so I can go ahead and select okay.
03:19
And although it looks like nothing is going on, if I come up here to my
03:23
notifications,
03:24
I can see that the deployment of this script was successful. And if I click on deployment succeeded here, I'll actually see the deployment screen.
03:32
And what this tells me is that the deployment on the server is actually underway,
03:38
and now I can see that our custom script extension deployment is finally complete.
03:43
So in this instance, in order to test this, we can simply navigate to the public i p address for this virtual machine and make sure that I, I s is actually running.
03:53
So let's go over to a virtual machine and grab its public I p address. We're gonna go back to resource groups.
04:00
It's in our I T resource group.
04:01
And that was the file sing Virtual machine.
04:04
And I can see that the public I p address for my virtual machine is right here, and I can copy and paste that into a new browser window.
04:14
And now I can see that I ask, is up and running on the server, all things to a custom script extension.
04:20
In today's episode, we talked about how we can use custom script extensions to help us as administrators handle some of the post BM deployment tasks and configuration tasks that we may need to do on a recurring basis for any given workload.
04:36
Now that we have our virtual machines completely automated from start to finish,
04:42
how can we make sure that we maximize their up time and make sure they're highly available? And in order to do that, we're gonna talk about the concept of availability sets.
04:51
Thanks for joining me in this video. I'm looking forward to the episode on availability sense 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