Last active
February 21, 2020 07:51
-
-
Save marckean/402d04988825cbee0180bee18af482dc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Switch to the Azure AzureRM PowerShell module | |
if(Get-Module -Name Az*){ | |
Remove-Module -Name Az* | |
Import-Module -Name AzureRM -Force} | |
# Switch to the Azure AZ PowerShell module ( | |
if(Get-Module -Name AzureRM*){ | |
Remove-Module -Name AzureRM* | |
Import-Module -Name Az -Force} | |
<# | |
Recommend to update to version 1.4.0 of the Az PowerShell Module | |
The Az PowerShell Module is available from here https://github.com/Azure/azure-powershell/releases/tag/v1.4.0-February2019 | |
... or run: Install-Module -Name Az -RequiredVersion 1.4.0 -AllowClobber | |
Run Get-InstalledModule to check installed modules | |
Run $PSEdition to check for version of PowerShell | |
Migration instructions Azure.RM to Az - https://azure.microsoft.com/en-au/blog/how-to-migrate-from-azurerm-to-az-in-azure-powershell/ | |
More information on Installing PowerShell Core 6 https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-windows?view=powershell-6 | |
#> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment