[Music]
Coming up.
We're going to show you the Cloud Shell.
A new way for managing your resources in the cloud.
We'll be showing you how to with the browser, you can use Bash or PowerShell
to troubleshoot and automate your most common management tasks
and manage on-the-go by keeping your favorite scripts in the cloud
so you can trigger them with the Cloud Shell from any modern browser and even mobile device.
So once again I'm joined by Corey Sanders.
The illustrious member of the Azure Compute team.
Give him a hand everybody.
Welcome. Welcome back again.
We seem to have you on a lot.
That's right. That's right, yeah, I think much to everyone's dismay.
I do keep coming up and just demanding to do shows.
So it's good to be back.
Really great to see you all and what a warm reception, Wonderful.
So most folks know and are familiar with the Azure Portal and it
works for almost all the management tasks that you want to work with on your
different scenarios.
But in the past for whatever reason you do demos,
you've been doing stuff from the command line, Right?
So if you wanted more flexibility you have to install a bunch of tools.
You have to prepare your workstations to make sure they all work,
get all your dependencies.
But Cloud Shell improves that significantly, Right?
Yeah, so the it's really exciting, actually.
Cloud Shell is a browser-based shell experience running right in your portal.
And with it you can run Bash or PowerShell.
And from that you can do management, you can do deployment,
you can troubleshoot right there in the portal.
And so it's on the go.
So it truly is shell on the cloud.
It's the perfect name.
And it's updated by us on a regular basis.
So it's got the latest tools and it's got the latest experiences.
And I'm actually go right here into the portal experience and click this open.
And so here I've got this open
right here with PowerShell and that's what we'll spend most of our time on today.
And it it just takes a couple seconds and you're up and running.
And we just announced that PowerShell is in (public) preview as of today.
So it even will even let YOU use it, right?
Okay perfect, yeah, there we go now we got a bunch of claps all right.
So for folks that are watching this how does all this work anyway?
Yes, so in Azure there are thousands of containers that are basically configured
waiting for you saying, "Rick, Rick please connect to me.
I'm ready to be used."
These are instances are all over the world.
So those containers you can see them in many, many different locations.
The goal is to try and get as close as possible to you.
So when you're deploying from different locations, it'll find a container that's
as close to you and make it fast.
You'll request a Cloud Shell and
once it'll connect it'll actually mount your Azure file storage.
So you can get all sorts of files you can get all sorts of scripts
that you may have run and you can run them anywhere with those pre predefined scripts.
But what's great is that this is a unified experience runs on the portal experience as I'm showing you here
but it also can run on your phone
from virtually anywhere.
So I can do this in the portal, that's kind of obvious.
You showed us how to go launch that which is awesome.
But, what if I'm just learning about Azure is there another way that I can use it as well?
Yeah, absolutely.
So another opportunity that we've added recently is right here in the documentation page
you can actually create there's a little try it button.
And we've had this for Bash for a little while now we're adding it for PowerShell.
You can go in and right here in this experience it logs me into my account.
And I can run commands here that I may want to copy and paste here.
And I can run them in and test them out right here in the documentation page.
Logged in to my account.
So it makes it super easy to be able to follow the tutorial step by step,
right here in the browser I'm authenticated and ready to go.
So the magic of all this is that is completely abstracted from you.
I mean there's literally is nothing for you to set up.
It's always up-to-date and all your stuff is inside of Cloud Shell?
Yeah, so let me actually go and show you a little bit about sort of what's unique
about what we can do with PowerShell.
In addition to having the tools and PowerShell,
you can actually navigate your entire environment right here in PowerShell.
So if I just type "dir" I came into PowerShell.
You can see here this is listing out my subscriptions.
oh so this is not yeah I do have a descriptions.
So this is that just your normal subscription list
but available to me to peruse with normal file commands.
I can navigate this and let's say I want to go into the Ignite Azure productivity,
it autocompletes for me hit a "dir" right here.
I can go in and it's going to go then to get the data for this productivity list
and tell me all the resources and so if I go in here and say I want to find a specific virtual machine
then I can hit dir and it basically keeps scoping me
within the subscription list that I've got.
So those are all the VMs that I created as part of my keynote demos that I did earlier this week.
And so what's cool about this is that
not only can i navigate this and sort of see all of my resources right here,
but I can actually scope all of my commands.
So if I'm running command,
let's say I'm running in command that's get-Azure RMBM right.
And I'm running it here and it's going to list out all the VMs that are in this list.
if I go up a few options here
and I go and let's see where am I now.
Well let's actually go into one of these other subscriptions here.
Let's go into Ignite Azure productivity2
and run a get-azure RMBM here.
You'll see this is going to give me a list of VMs that are just in that subscription right
and so this allows me to scope my commands that I'm running and so it this context
awareness is really fantastic for me to be able to run those commands in each one of those different areas.
Now what about other tools cuz you said you can put your scripts in there?
Can you also add other tools and other more up-to-date commands?
Yeah absolutely so there's a bunch of tools built in a
great example actually do have get built in so you can just type get in it'll it
allow you to run things.
We have Vim built in right.
And so with all these tools let me actually show you a little bit about how you can maybe build a
website or update a website or modify website using this right here in the portal.
Okay and so let's say I built a website and I've got it up and
running here and so this is a website it's called slack invite and what this
going to do is it allows me to invite folks who put in their email address and they
can sign in and join my account so I'll hit join here.
And after doing that I should see this all work beautifully and it will join this account
and put this email address in.
Oh no it didn't so there's actually an issue.
Okay and so what that means is that I got to go debug something and see what's going on.
Luckily I put my source code for this specific file for this
specific solution on my Cloud Drive
And so what I can do here is if I just hit home and go Cloud Drive,
and so here in Cloud Drive I've got all these different solutions and commands.
And it looks like I've actually got some executables here.
And so what I can do here is I can go right into the vim.
So I'm inside and I can see that the slack token that I'm using here
someone commented this out.
Why would you put comments in that?
I don't know why you did this Rick.
Ruining my demos.
All right so let me go in here and go into insert and I'm going to just remove the comments.
It's very easy for me to just remove the comments here.
It's very easy there we go and that works.
Yes I know how to exit Vim, thank you
Just making sure, thank you thank you very much.
I think I know how to exit Vim there we go, thank you.
We're good whoa all right I mastered vim right here!
I do know how to use Vim, all right anyway
Now I actually need to run a few commands here.
I need to run a few commands to be able to put this into my my deployment.
So first I'm going to do a get add here and I'm going to go take that config file and do that.
Right okay and then I need to go to a commit right and so let me do that here.
And what I'm going to do is let's just say comment, fix, Ricks, sucks.
Okay do that that'll be internalized forever forever a part of this.
Then I'm going to do get push Azure.
Okay and so this is all happening in my Cloud Shell my source code right here in this a Cloud Drive
that I can get anywhere, right.
So I do that push and hopefully very quickly
I've now updated my website with that proper config.
And so you can see it's going to run it right here.
Launch it, and the website should be up and running.
And so let me give it just a moment there, deployment successful.
Let me do a reload here.
And so while that's reloading this is again the valuable thing that Cloud Drive the source code that I had there
those are available no matter where I go.
So that just goes with me.
And so now if I go in here and say let's go Corey one at there.
And this should work and there you go so now it worked.
The codes been fixed all through Cloud Shell.
Now what if I wanted to go ahead and run some cmdlets in PowerShell
that aren't part of the default experience because we only load so many of them in, right?
Yeah absolutely, so you can do what you'd normally expect with PowerShell.
You can actually go and find modules and install them
and they'll actually put them into cloud drive so you can get them and use them later on.
So if you're looking for let's say let's say you want to look for the
(Azure) AD module see here yeah you want to look for new hands to type here okay so any
way you can find your module and then you can install them right from here and
and it goes right into your cloud drive.
Yep, ready to roll.
Now this looks great in a browser but what if I don't have my laptop on me?
We're all a mobile device folks, what's experience like on a phone?
I'm really glad you asked that.
In fact what you can do here with your phone is you can run those same exact commands.
Once you get it loaded up here,
you can run the same exact commands right on your phone.
So you can see I've got the PowerShell opened up right here on my phone.
I can do bash, I can do PowerShell, I can do any sorts of commands that I want to.
Right here from my phone experience.
So what you'veshown us is the experience in PowerShell,
I know a lot of people watching online also potentially you're going to have experience with Bash
because we're a very Bash friendly environment as well.
What do you show us there from the Bash experience?
Yeah absolutely, so let me go ahead and restart here and go into the Bash experience.
But what's great about this is that not just not only do you run this in Powershell,
but if you flip over and you'd rather run it in Bash or you'd rather run the Azure CLI,
you can do that in here as well.
And so just with some very simple commands you can spin up many many containers,
many many virtual machines all right here in the Bash experience.
And so this is loading up right now.
And once that gets going you can really run many many different things.
So you see just a simple click here in the upper left swhich it over to Bash
right from PowerShell and away I go.
Okay well this is awesome stuff and this is going to make it a lot easier
to go ahead and manage all your resources in Azure.
And as you showed us you can obviously do this from virtually anywhere.
Any kind of modern browser and also a mobile device as well.
How is someone going to get started with trying Cloud Shell today, man?
You really weren't paying attention?
I mean I literally just walked through that.
I kind of tune out when you're talking.
Okay, well anyway it's super easy you just go to the portal experience and
there's a really big button up here in the portal.
Cloud Shell, you're following that?
You go up to the portal experience, a big button Cloud Shell
and away you go.
Pick PowerShell, pick Bash.
You can learn it in the docs you can do it on your phone.
Pretty much anywhere you go,
anything you're doing you can play around with these experiences.
And the PowerShell experience is rolling out today, right?
It's rolling out today yeah go ahead go to town.
Well thanks again for joining us, I really appreciate it.
And for everyone else watching stay tuned.
Microsoft Mechanics is going to be coming up with some more latest updates.
I think it's Jeffrey Snover coming up after us.
I think we got another one but yes it's fine.
We'll see what it is.
See you all soon buh-bye.
[Music]