(upbeat music)
>> Thanks for joining us.
>> It's daddy and daughter night tonight.
>> Yeah!
>> Okay, so I'm going to go to install the Azure CLI,
and like I was just saying,
I absolutely have nothing installed on this machine,
so it's completely from scratch.
So you see it has things like it had Windows,
it has Mac, it also has the ability to run
different types of Linux.
>> Daughter: What is Mac OS?
>> Mac OS?
>> Daughter: Yeah.
>> It's this operating system that
I'm currently on right now.
>> Daughter: Oh.
>> It's Apple.
And so these are a bunch of just different types of
distributions of Linux.
Like this right here is WSL,
this works on Windows, Windows ten.
Ubuntu, Fedora, and a couple of these other ones.
The only flavor of Linux that I've really ever
worked with has been Ubuntu.
That is it.
So I am going to go back here,
I'm gonna click on install on Mac OS.
What it does is it says okay,
if you've already got Homebrew, then it's pretty easy.
Well, since this is actually a brand new installation,
I do not have that.
So, what I'm going to do here is I'm gonna take a look.
It says alternative installs.
Mac, I've already got that installed.
Installation that are on the homepage.
Paste this long command here.
Do a control C, and we're gonna paste this into,
this is called the Mac OS terminal prompt.
I'm gonna go here and I'm gonna go terminal.
And so this is the actual terminal.
So this right here is where you're able to input
commands and such.
I'm gonna do a control V here.
Press return to continue.
That needs to go this way.
Really?
>> This is what you're gonna do to me?
>> Okay, cool.
So installing command line tools, Mac OS, Mojave,
10.4 for XCODE.
And it says, hey, that is your missing package manager.
And yes, I'm a big fan of Homebrew.
Okay, so I'm gonna switch back over.
Now I am back on docs.microsoft.com.
And there is these little buttons, hardly nobody knows
about this or nobody really uses it.
You can just hit the copy button here and it will copy
that information in there and there's even this ability,
very few people really use this, but if you sign in with
your Azure account, you can actually come in here to run
the login command.
You can copy this and you can paste it.
I may actually take a look at that.
That would actually be a really good topic.
Do you want to jot that down for us?
>> Yeah.
>> It's okay, I'll remember it.
All right, so I'm gonna go here, and let's go ahead and
let's go back over to the terminal.
On the terminal, I am going to control V and so what it is
doing here is it's running the update and it is making sure
that it installs the Azure CLI.
And again, Homebrew is nothing more than a package manager.
Is that not correct, Ryn?
(whispers) Yes.
>> Yes!
>> Okay, cool.
So again, you can see it's actually pulling up Mojave here.
I should be getting very close to having this finished.
All right, so the good news here is that it shows that
it is now completed.
So we're gonna go az, and what does that stand for?
>> Azure!
>> Correct.
>> Azure!
>> We're gonna hit az.
Make sure you come on into the frame here.
So going back to where we were at,
so I typed in az and with az it says,
hey here's all the different types of commands
that you can use,
or you can go to this aka.ms/cli.
I've never been to that, but it looks like it'd
probably be fun.
It does say it collects some data here.
Okay, so Azure, welcome to the cool new CLI,
and we're like on account.
So the first thing that the documentation gave was saying,
hey, use az login.
And this is where we're gonna start tonight.
I'm gonna do az, login, I'm gonna hit return,
and the instructions over here,
it had said something like, once it finishes,
it's gonna open a browser page.
>> Yeah.
>> Okay, so it opened it up.
What I am going to do is I am going to login.
Okay, so inside of the terminal, actually it's listed
all of my different types of accounts.
What I'm gonna need to do is
I'm gonna need to set a subscription,
so I'm gonna go...
Okay, so we're gonna be talking a little bit about
extensions in just a bit, and well,
now we can see it's actually installing that extension.
I've actually never used this.
Yes, I'm going to do very good,
and I am going to actually say yes to this.
You like it because there's a lot of colors?
Sweet!
Hit enter to refresh.
Oh, okay.
So, switch back over to az interactive mode.
Oh, okay, so like if I'm creating a webapp,
webapp, space, create,
and then I can pass in the name, or so forth.
Okay, so let's do this.
I want actually switch and go back and login to my account.
I need to switch my account first.
az feedback, this is a good one to,
where you're able to drop in and provide feedback.
Let's go here,
a bit more information.
So az, oh, okay there we go.
>> Daughter: az... >> Dad: az...
This is finally the interactive mode
>> Daughter: So do you just say Azure?
>> Dad: that I was talking about.
A's and stuff.
But it did az account, yeah it's showing some of it,
but that's okay.
That one's okay to show.
Subscription, and then I actually had to pass in
the numbers and you can see here's
for one of my subscriptions.
Okay, cool.
Extension and then list available?
Isn't that like so easy?
>> Yep.
>> You know when I was originally doing the tips and tricks,
and I was originally working on this sort of thing?
I never ever ever, I had one ded and teletyper some sort of
type completion for this a long long time ago.
Let's see what extensions we have,
I know there's gotta be a crazy number of em.
So these are extensions that are already installed
is how I'm reading this,
because remember it said preview on some of them
a little bit earlier?
So let's see here.
False, additional commands for app service.
Let's try one more command here, let's go az extension,
>> Daughter: az Azure extension list, type that.
>> Dad: It did complete available again?
All right let's try this,
az extension, and then
add -n, -n does the name,
and this is the find extension,
which I think it's already installed.
Az extension add -n, find.
The installed extension find is in preview.
Okay, cool.
Now we can do something like az find,
and now that extension is actually working.
Isn't that pretty cool?
>> Daughter: Yeah, that's awesome.
>> Dad: Here, it says I'm an AI robot.
My advice is based on our Azure documentation CLI
and Azure Arm users using me improves Azure products.
>> Daughter: What is an AI?
>> Dad: Artificial intelligence.
Artificial intelligence, what do you think?
So, I'm gonna do this -h, so again,
this is really sweet, -h.
So if you do the -h, this is showing me,
what does h stand for?
>> Daughter: Help?
>> Dad: That's it!
>> Daughter: Seriously?
>> Dad: It's so easy, a nine year old can do it.
>> Daughter: Yeah.
>> Dad: All right, so let's try one of these.
Let's go and let's do az find,
az webapp config container set.
>> Daughter: I think we can do it!
What time is it?
Okay.
>> Dad: So what's kinda cool here
is that this helps us like figure out a command.
So, what we wanna do here is we want to,
in our web application,
in the configuration for a container,
>> Daughter: Set?
>> Dad: Set the settings.
At least that's how I'm reading it.
So set a webapp container settings.
So this is autogenerated.
I wonder if these are the same?
They do look the same.
I wonder why it recommended three of the same thing?
So what you could do by using this
find extension that we just found,
is you could use this as kinda like your start
or bolder play for if you wanted to know what type
of command you would use to actually set an Azure container.
Very cool.
So, I think we go to this link right here,
and then we'll look really quick at making our own.
Once we go to this link,
available extensions for the Azure CLI.
Well one of the really coolest thing,
and there's that command, az extension list available.
Yeah, so one of the cool things about this
is that you can create your own,
and so that's what I wanna take a look at now.