Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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
You can’t perform that action at this time.