Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No match was found for the specified search criteria and module name 'Microsoft.Graph.Entra'." error during installation #1201

Open
csmulligan opened this issue Nov 11, 2024 · 3 comments

Comments

@csmulligan
Copy link
Contributor

csmulligan commented Nov 11, 2024

Thanks for reporting the bug. Please ensure you've gone through the following checklist before opening an issue:

  • Make sure you can reproduce this issue using the latest released version of Microsoft.Graph.Entra or Microsoft.Graph.Entra.Beta.
  • Please search the existing issues to see if there has been a similar issue filed.

Describe the bug
Customer reported the following error when installing the module following this article.

-allowprerelease invalid parameter-repository PSGallery is invalidPS C:\WINDOWS\system32> Install-Module -Name Microsoft.Graph.Entra -Repository PSGallery -Scope CurrentUser -ForcePackageManagement\Install-Package : No match was found for the specified search criteria and module name 'Microsoft.Graph.Entra'. Try Get-PSRepository to see all available registered module repositories.At C:\Program Files (x86)\WindowsPowerShell\Modules\PowerShellGet.0.0.1\PSModule.psm1:1809 char:21+ ... $null = PackageManagement\Install-Package @PSBoundParameters+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Microsoft.Power.... InstallPackage:InstallPackage) [Install-Package], Exception + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage PS C:\WINDOWS\system32> get-psrepositoryName InstallationPolicy SourceLocation

To Reproduce
I could not reproduce the issue, the installation works for me.

Expected behavior
The module installation runs through without any issues.

Debug Output
N/A

Module Version
N/A

Environment Data
N/A

Screenshots
N/A

Additional context
Can you please confirm if there's a general workaround that we could add to the troubleshooting or to the installation article?

@Ryaed
Copy link

Ryaed commented Jan 13, 2025

i also have the same issue. i can install "Microsoft.Graph" but not "Microsoft.Graph.Entra".

error: Install-Package: No match was found for the specified search criteria and module name 'Microsoft.Graph.Entra'. Try Get-PSRepository to see
all available registered module repositories.

@Ryaed
Copy link

Ryaed commented Jan 13, 2025

i also have the same issue. i can install "Microsoft.Graph" but not "Microsoft.Graph.Entra".

error: Install-Package: No match was found for the specified search criteria and module name 'Microsoft.Graph.Entra'. Try Get-PSRepository to see all available registered module repositories.

i was missing the command "-AllowPrerelease". adding that worked

@SamErde
Copy link
Collaborator

SamErde commented Jan 14, 2025

Describe the bug Customer reported the following error when installing the module following this article.

-allowprerelease invalid parameter-repository PSGallery is invalidPS C:\WINDOWS\system32> Install-Module -Name Microsoft.Graph.Entra -Repository PSGallery -Scope CurrentUser -ForcePackageManagement\Install-Package : No match was found for the specified search criteria and module name 'Microsoft.Graph.Entra'. Try Get-PSRepository to see all available registered module repositories.At C:\Program Files (x86)\WindowsPowerShell\Modules\PowerShellGet.0.0.1\PSModule.psm1:1809 char:21+ ... $null = PackageManagement\Install-Package @PSBoundParameters+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Microsoft.Power.... InstallPackage:InstallPackage) [Install-Package], Exception + FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage PS C:\WINDOWS\system32> get-psrepositoryName InstallationPolicy SourceLocation

Additional context Can you please confirm if there's a general workaround that we could add to the troubleshooting or to the installation article?

The person who provided this feedback is trying to install the module using the x86 version of Windows PowerShell. As noted in the article, PowerShell 7 is recommended for the the Microsoft.Graph.Entra module. Their use of the x86 version is particularly odd. :) That said, I did try following the installation steps in Windows PowerShell x86 and the x86 PowerShell ISE. Both worked as expected.

Beyond that, it looks like some formatting, details, and characters were corrupt or lost during copy/paste of the error message. Note "At C:\Program Files (x86)\WindowsPowerShell\Modules\PowerShellGet.0.0.1\PSModule.psm1" which is not a valid path.

This one sounds like a snowflake. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants