Azure-Samples / Azure-Samples/azure-files-samples

Unable to install Az modules

Open
#45 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
261
Forks
202
Avg merge
1d 5h
Merged PRs (30d)
4

Description

When i try running below powershell command on Powershell command prompt:

Install-Module Az -Force -confirm:$false -AllowClobber -Scope CurrentUser

Getting Below error:

WARNING: 'Az' matched module 'Az/4.6.0' from provider: 'PowerShellGet', repository 'PSGallery'.
WARNING: 'Az' matched module 'Az/4.6.0' from provider: 'PowerShellGet', repository 'PSGallery1'.
PackageManagement\Install-Package : Unable to install, multiple modules matched 'Az'. Please specify a single
-Repository.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Pa
ckage], Exception
+ FullyQualifiedErrorId : DisambiguateForInstall,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPa
ckage

![image](https://user-images.githubusercontent.com/70286106/91339312-edbee000-e7f3-11ea-8089-e33f5906abd2.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported Install-Module Az command in PowerShell and inspect the registered PowerShellGet repositories, especially PSGallery and PSGallery1. Compare the repository's setup guidance with the observed error; done means the installation path is verified or the required repository configuration is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, powershell
Domain
cloud, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.