"No match was found for the specified search criteria and module name 'Microsoft.Graph.Entra'." error during installation
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.EntraorMicrosoft.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?
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 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
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 SourceLocationAdditional 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. :)
@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