MicrosoftDocs/azure-docs-powershell

PowerShell commands gives error / message

w-azure opened this issue · 1 comments

When using this command:

Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force

I get this error / message:

Install-Package: The following commands are already available on this system:'Login-AzAccount,Logout-AzAccount,Resolve-Error,Send-Feedback'. This module 'Az.Accounts' may override the existing commands. If you still want to install this module 'Az.Accounts', use -AllowClobber parameter.

You might want to change that command to:

Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force -AllowClobber

...unless there is a reason people might not want to upgrade. Otherwise make a note alert that mentions this error / message, otherwise people might wonder if they should use -AllowClobber or not.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Closing due to duplicate issue. See #2265.