-
Notifications
You must be signed in to change notification settings - Fork 21
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
Comments
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 |
i was missing the command "-AllowPrerelease". adding that worked |
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. :) |
@Ryaed, we've redesigned the Entra PowerShell module to be modular with sub-modules. The work is finalized (from version 0.22.0 onwards), and we've released both the module and public docs. Could you check if the new approach works smoothly? The new docs are closer to the General Availability version, so your feedback is highly appreciated. cc: @csmulligan |
Thanks for reporting the bug. Please ensure you've gone through the following checklist before opening an issue:
Microsoft.Graph.Entra
orMicrosoft.Graph.Entra.Beta
.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?
The text was updated successfully, but these errors were encountered: