How To Open Azure PowerShell

How To Open Azure PowerShell

Well, there are many ways to open Azure PowerShell. The easiest way and one of the best ways to open Powershell in Azure portal is to use the Azure Cloud Shell environment.

Follow the below steps to use the Azure PowerShell in the Azure Cloud Shell environment.

  1. Sign in to Azure Portal (https://portal.azure.com/).
  2. Once logged in to Azure Portal, click the Cloud Shell button before the Directories + Subscriptions button at the top of the navigation.
how to open powershell in azure portal

3. Select the PowerShell environment option from the drop-down as highlighted below.

PowerShell in azure portal

4. Click on the Confirm button to confirm the PowerShell environment.

azure portal powershell

You can also install Azure PowerShell on your local machine.

How To Open Azure PowerShell Windows

Once you have installed Azure PowerShell on your local machine, follow the below steps to open Azure PowerShell on your local machine.

  1. Right-click on the PowerShell ISE and select the Run as administrator option.
How To Open Azure PowerShell windows

2. Use the below PowerShell cmdlet to sign in to Azure.

Connect-AzAccount

Once you execute the above PowerShell cmdlet, it will ask you to provide your Azure credentials.

Connect-AzAccount

Provide your username and password for your Azure account, then click the sign-in button.

3. Now, you can execute the needed PowerShell cmdlet. For example, you can execute the below Azure PowerShell cmdlet to retrieve the Azure Subscription details.

Get-AzSubscription

Once you execute the above PowerShell cmdlet, you can get the below output.

how to run azure PowerShell

Video Tutorial

To start with the execution, Check out the complete lists of Azure PowerShell Commands.

You may also like the following articles

Azure Virtual Machine

DOWNLOAD FREE AZURE VIRTUAL MACHINE PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!