Installing and Updating the Azure Az PowerShell module (vs. AzureRM)

Remove the AzureRM PowerShell module

To install the Az PowerShell module, you must first remove the AzureRM module.  You can check which version(s) of AzureRM you already have installed.

If you see a message like the following, then you’re ready to install the Az PowerShell module.

PackageManagement\Get-Package : No match was found for the specified search criteria and module names 'AzureRM'.
 
If you don’t see that, then you need to uninstall AzureRM first.

or

If neither of those options work, try the following.

Install the Azure PowerShell module

Then running the following code to install Az should succeed.

Update the Azure PowerShell module

If you already have the Az PowerShell module installed, you can update it with the following code.

Reinstall the Azure PowerShell module

If you have any issues updating using PowershellGet, then you should reinstall, rather than update. Reinstalling is done the same way as installing, but you need to add the -Force parameter:

Check the version of the Azure PowerShell module

1 pings

  1. […] Installing and Updating the Azure Az PowerShell module (vs. AzureRM) […]

Comments have been disabled.