Azure PowerShell: Have PSVersion 5

If you're new to the Azure PowerShell save yourself some hassle and immediately go to PowerShell Version 5.

Otherwise you will end up struggling with many issues like:

PS C:\Windows\system32> Import-AzureRM
Import-AzureRM : The term 'Import-AzureRM' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ Import-AzureRM
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Import-AzureRM:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Windows 7 for example usually has version 3 installed. You can check the version by simply pasting into the command prompt:

$PSVersionTable

How to upgrade to PowerShell 5? Well, just by installing the WMF 5.

And a general remark for PowerShell: Run as Administrator.


Sources:

Comments

Popular posts from this blog

SQL Server Setup: Windows Firewall warning (Ports)

SQL Server 2014 Enterprise Edition: Server Setup: Feature Selection

How to read an assembly.dll.config