Skip to content

Instantly share code, notes, and snippets.

@marckean
Last active February 21, 2020 07:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marckean/402d04988825cbee0180bee18af482dc to your computer and use it in GitHub Desktop.
Save marckean/402d04988825cbee0180bee18af482dc to your computer and use it in GitHub Desktop.
# 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