[MUSIC]
>> What is going on? Today I'm
doing a sponsored stream with Microsoft.
They're using weather tools that I am a maintainer of,
so I figured that it would be really cool to
base demo the product where they
are using the tools that I maintain.
That's what we're doing today.
First thing we're going to do,
we're going to create a VM and we're going to choose one.
Apparently that, new resource group.
Let's do a little funny rue.
Trusts me guys, I'm a professional.
This was the cheapest one that I found,
which was 482 a month,
which is less than I pay for a VPN. This is fine.
I also already looked at all the images.
We're going to go with the cheapest one that we can
find, $0.01 an hour.
Let's do a little wish demo.
I'm going to try and set up a soft serve on the VM so I could have
a hosted Git server in Azure and then I can be like I have a need,
a strong desire to bring this over the Terraform,
even though I barely know what Terraform does, but it's fun.
It doesn't really matter. I'll just do a premium SSD.
Use those credits, baby.
I'm just going to confirm.
I'm just hitting "Create". You know what?
I am just going to go right here in and just do
a little Tmux review and we're going
to go to Downloads, something like that.
Now, deployment is in progress like a true professional.
Your deployment is complete, wish demo.
Wish demo group. Baby,
we already got the resource group.
This is like most of what
I need to do to actually use Azure five,
but we're going to attempt to do some stuff with the VM.
We're going to do a little host Azure.
Host name. Identity file.
I'm going to go to SSH,
and then Wish demo_key.
We gotten the host name, we gotten the identity file.
User, I think I made
a bunny and I don't really care about the port.
Got to change my perms on mode.
I got a little 600,
I got a little SSH, then the wish one.
Nice. Warned your ass, fine.
Don't worry, we got this.
I'm sweating, but it's not because of this,
it's just because of who I am as a person.
This is actually has to be Azure user and now we go again.
This should work. Nice. I'm going to do that.
I'm going to do a little copy link and do a little W
get. We've got a little tar.
I think it's something like XZSF.
Then your little chmod,
I don't know if I always have to do sudo chmod,
but I'm going to do sudo chmod
[inaudible] We`re going to execute it.
Basically now we actually have soft serve Git server
running in the VM and then now if I want to be really antsy,
we're going to try and open up some ports here.
Add a little inbound port rule.
Let's do 23231.
Let's go to project.
We're going to do this, but then we're going to change it.
I thought I could just do this
where I just do like this and then it takes
all of my info from the SSH little info thing.
That seems to have worked.
Now what I'm going to do,
I basically want to do that,
but then I want to do Azure,
but then I want the port to be 23231 is going to work?
Men, I'm going to update this.
This is a little Git server that we`re running.
Wait, I didn't commit it.
We are out here pushing things.
So the get server's working,
all that good stuff looking cute, looking good.
This is really cool and I'm very
pleased that I was able to do something.
Let's go ahead and do a quick little Azure file thing.
I think I have to install Azure.
I need you to install the Azure CLI,
which I should do get update and stuff.
Then we'll still sudo
apt get install easy.
We go again. Trust me, I'm a scientist.
We did it everyone.
Lets do aztfy.
Let me read a little bit about what this is, Azure terrify,
a tool to bring your existing Azure resources
under the management of Terraform.
Let's install it with Go because we love Go.
Nice, interactive mode.
This is what we want to do.
You guys want to see what all the hype's about?
Let me show you.
This is where my backups are going to leave,
all my Terraform related things.
We're going to do that. Then this look familiar.
These almost looks like the tools I build at
work being used by Microsoft.
Basically what I can actually do here.
This is one of my VMs.
I can rename this to Azure RM virtual machine and demo.
I just copied this from their documentation.
Then now, let me zoom in again,
got all these cool options at the bottom where I can filter,
skip, or an error,
show recommendation, import, save.
Basically with aztfy,
I'm going to try importing it first
so you guys see what that looks like.
But basically I'm going to try to import that,
maybe try and save it after.
Terraform and a config are generated. This is what you want.
Now if I hit any key, it's going to exit.
This is the main TFs.
This is all the Terraform stuff in it.
You get all of the Terraform info that you need.
Let's talk a little bit about
Terraform and why you'd even want to use it.
Azure LA five Terraform.
Terraform is an Infrastructure as
Code tool that lets you define both Cloud and
on-prem resources in human-readable configuration files
that you conversion, reuse and share.
Everyone creates and manages resources on Cloud platforms and
other services through their application programming interfaces.
Interesting.
You can basically like backup your existing setup,
that's in Azure and convert that to Terraform so that
you can either do a pretty smooth migration it seems,
or whether it's either to a new tenant or to
another Cloud provider that's all in
Terraform so it should be pretty smooth.
I'm going to say that this is going to end
the sponsored portion of the stream.
[MUSIC]