...The Az module replaces AzureRM. You should not install Az side-by-side with AzureRM. Update-Module installs the new version side-by-side with previous versions. It does not uninstall the previous versions. To connect to Azure, use the Connect-AzAccount cmdlet. A session context persists login information across Azure PowerShell modules and PowerShell instances. To view the context you are using in the current session, which contains the subscription and tenant, use the Get-AzContext cmdlet. To get the subscriptions in a tenant, use the Get-AzSubscription cmdlet. ...