How Do You Install Azure PowerShell on Windows 10?

Problem scenario
You want to run ARM templates to declaratively create resources such as servers, databases, and subnets in Azure.  You need the PowerShell module for Azure to be installed for certain "reserved" words to work.  How do you install the Azure PowerShell?

Solution
1.  Open PowerShell as administrator.  (PowerShellGet is built into Windows 10 by default.  It may appear uninstalled, but it is natively part of the OS.)
2.  Run this command:  Install-Module Azure
3.  You can choose "Y" to the prompt.*
4.  Run this command:  Install-Module AzureRM.storage
5.  You can choose "Y" to the prompt.*
6.  Run this command: Install-Module AzureRM.resources
7.  You can choose "Y" to the prompt.*
8.  Run this command:  Install-Module AzureRM.Compute
9.  You can choose "Y" to the prompt.*
10.  Run this command:  Install-Module AzureRM.sql
11.  You can choose "Y" to the prompt.*
12.  Run this command:  Install-Module AzureRM.network
13.  You can choose "Y" to the prompt.*

*  If you have been running anti-malware applications on your desktop, and your laptop is reasonably secure, you can choose the "Y" option to the prompt about an untrusted repository and proceeding to install the modules from "PSGallery".

Leave a comment

Your email address will not be published.