Azure PowerShell

A free video tutorial from Intellezy Trainers
Multi-Award-Winning eLearning Specialists
Rating: 4.4 out of 5Instructor rating
238 courses
201,538 students
Azure PowerShell

Learn more from the full course

Microsoft Azure Solutions (Exam 70-533) – 9 Course Bundle

Get a comprehensive overview of Azure cloud services in this 9-course bundle

09:25:53 of on-demand video • Updated June 2018

Have an understanding of cloud services
Understand Virtual Networks
Understand Virtual Machines
Get an overview of storage
Learn ARM deployment
Understand PaaS Cloud Service
Learn how to provision Azure SQL
English [Auto]
Up while working with Azure through a goofy interface like the portal makes life a lot easier for you. Often times using Power Shell may make it much nicer in terms of having to do things that are repetitive or having to do certain things that maybe you just can't quite accomplish in the portal. So you need to actually have the ability to work with power show now Power Shell in and of itself is built into most of your Windows operating systems. However the command set the command LIT's as we call them in power shell command with to actually work with Azure aren't there by default which means I have to install them now in order to do that I need to go out there and actually download them first. So let me go ahead. I'm going to go out to two Azure dot com here and that's going to take me out to Azure's at Microsoft dot com. It'll just redirect over there from the main page here if I go into my resources. Right you have the ability to go in here and and look into your your product you've got your documentation but if I come all the way over here you'll see a section called Resources a click on resources and I scroll down you'll see I've got a download section where I can download a lot of various things to interact with and work with Azure first at the top we have all those software development kits for the various different code bases you may be working with. We scroll down a little further though you'll see the command line tools and the command line tools where I can download not only power shell but also the azure CLIA are the azure command line interface if I wanted to work with that through say a Linux system or something like that for here let's just go ahead and download and install the power shell. So I'm going to click on Windows pounde our show here I'm going to click the install button when I do that I'm going to go ahead and run the Windows installer. That's going to bring up the Web platform installer for me. That web platform installer is going to give me the ability to install the Microsoft Azure power show or click install and we'll go ahead and accept that agreement and it's going to download and install that for me. Now when you start working with power shell one of the things you have to pay attention to is the fact that power show works and exists both in classic mode and in resource manager mode. Often times the same command will be different simply by two little letters are for resource manager. So for example if I wanted to go create a brand new virtual machine in classic mode I would use something like New dash Azure VM if I wanted to create a brand new virtual machine in a resource manager mode same command but new dash Azure r m b m so inside the same shell I have the ability to work with both of those command sets. Now that we've got it downloaded and installed Let's go out there we'll go ahead and exit out of that. We're going to just go to our desktop and I'm going to launch power show. All right let's go ahead just run that. Open it up and empower shell. One of the things I like to do when I'm demoing these is just make the font a little bit bigger make a little bit easier for you to see while you're working with this. I'm going to bump that up a little bit. Now in order to work with power show you have to connect to your Azure subscription. All right. And you have to connect to it the way you want to work with it. What I mean by that is this if I want to work in classic mode I need to log into Azure via the classic mode. If I wanted to connect to and work with resource manager stuff I have to connect to it via a resource manager. So there's two different ways to do it but you have to make sure that you're connected in the appropriate mode depending on the commands that you want to work with. Now if you wanted to you could work with both of them at the same time. I could add my Azure account I could add my Azure R.E.M. account and now I'm connected in both classic and resource manager mode and I could issue those commands going in both ways so I'd have the ability to go both ways with that. So let's start by just adding my Azure account Okay saw an azure let's say a count here add my Azure count it's come on what I'm doing now when you start typing you can type part of a command and actually type part of the command you can then hit the tab key that's called tab completion and it will look through the possible commandments and actually try to autocomplete it for you like I did here where as ADD Azure count. Once that comes up you then will be presented with the opportunity to authenticate into your Azure environment in my case we're going to go to demo is one two three at our local comp put in that password and it will now list for me my subscription. I am now connected to it in a classic mode. But what if I wanted to work with this environment using resource manager my well now I would have to go in and add as your R.E.M. account right. By putting that or him in there tell that I want to work with an resource manager mode. Again I'm going to hit the enter key. I will again have to go out there and log in to demo a z one to three at dot com put in that password and now I will be connected to my subscription and resource management. So I have the ability to connect to both in terms of classic mode and in resource manager mode what if I need it to run some power shell commands but I wasn't at my computer and I don't have the right or the permissions to actually download and install power shell in that system. All I would have to do is if I am in the regular portal Let's go back over to our portal about Azure dot com by him in the standard portal what you will notice up near the top. If you look in the upper right hand section there you'll actually see the Power Shell symbol right. A little greater the ends with the underlined right we have the ability to go out there and that's what that symbol is. If I click on that that's going to open up and say hey do you want to work with an azure cloud shell so I can actually run the shell in the cloud. Notice that I can either do bash for Linux based systems are I can go out here and say power shelf or Windows based systems. I don't have a storage account mounted Yes. I'm going to have to go out there with my subscription. Create a storage account that can hold and set up this environment for me. So it's going to go through the process of actually creating this. Now the initial time you do this you have to go through the process of setting everything up once you have it already set up and configured. You'll be able to come back from any browser whenever you want and just click on that and have it actually go through and allow you the ability to start running power show commands. Right. From a browser making life a little bit easier especially for those of us that might travel might have to have you know other systems that were on temporarily and we don't want to necessarily go through and install everything that we would normally want to use in that environment. It makes it a lot easier for us to go through and actually set this up and create using the cloud shell environment.