If you are working on Azure, you know that most of tasks are done using Azure portal. The same tasks can be managed using PowerShell as well. When you install Azure PowerShell modules, it adds cmdlets with which you can manage Azure using PowerShell. Azure services can be managed and accessed primarily via PowerShell or the Azure Portal. The PowerShell automation is supported through the Azure Portal. In this post we will see the steps to install Azure PowerShell module in Windows 10. If you have Windows 7 or Windows 8.1, the steps are the same.
How to Install Azure PowerShell Module in Windows 10
There are different ways to install Azure PowerShell module. You could choose any of these methods listed below:
- Azure PowerShell from WebPI. Download Azure PowerShell and start the install.
- Using PowerShell Gallery. We will be using this method which I feel is the easiest one.
- MSI installer from GitHub. Click this link to download the msi installer file.
As mentioned above, we will install Azure PowerShell from PowerShell gallery. Ensure that your computer is installed with the Windows Management Framework 5. Next, open an elevated Windows PowerShell or PowerShell Integrated Scripting Environment (ISE). Type the commands in the shown order.
a) Install-Module AzureRm – This command installs the Azure resource manager module from PowerShell gallery. When you type the command, it asks you if you want to install modules from untrusted repository. Type A and hit enter.
Wait for few minutes while the modules are downloaded and installed. b) Install-Module Azure – This command installs the Azure module for managing tasks such as creating, managing vm’s etc. Type A and hit enter.
c) Login-AzureRMAccount – This command is used to login to your Azure resource manager. When you enter this command, it brings up a page to enter your account and password. Type the email address and password associated with your account. Note that you should have an Azure subscription with the account that you have entered.
You can now see your Account info, Subscription ID, Tenant ID and other details. You can view these details when you login to your Azure management portal as well. Using PowerShell, you can see how easy it is to get the information in lesser time.