From Azure documentation we can read this:
The Azure support we are going to use requires PowerShell version 5.0 or higher.
1 2 3 4 5 6 7 8 9 | C:\WINDOWS\system32>powershell Windows PowerShell Copyright (C) 2014 Microsoft Corporation. All rights reserved. PS C:\WINDOWS\system32> $PSVersionTable.PSVersion Major Minor Build Revision ----- ----- ----- -------- 4 0 -1 -1 |
The update of PowerShell can be found here, see the table:
Windows PS 3.0 PS 4.0 PS 5.0 PS 5.1
Windows 10 (see Note1)
Windows Server 2016 – – – installed
Windows 8.1
Windows Server 2012 R2 – installed WMF 5.0 WMF 5.1
Windows 8
Windows Server 2012 installed WMF 4.0 WMF 5.0 WMF 5.1
Windows 7 SP1
Windows Server 2008 R2 SP1 WMF 3.0 WMF 4.0 WMF 5.0 WMF 5.1
The solution is:
Don’t use PowerShell < 5.0, use anything else from Azure.