Skip to content

Unable to install Microsoft Graph PowerShell from the nukpg file. #1342

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

Closed
willfiddes opened this issue Jun 23, 2022 · 2 comments · Fixed by #1360
Closed

Unable to install Microsoft Graph PowerShell from the nukpg file. #1342

willfiddes opened this issue Jun 23, 2022 · 2 comments · Fixed by #1360
Assignees
Labels
enhancement New feature or request

Comments

@willfiddes
Copy link

Repro steps:

Register-PackageSource -Name PSR -Location C:\AAD\Apps\powershell\GraphRepository\ -ProviderName NuGet -Trusted

Place files into the local repository i.e. microsoft.graph.1.10.0.nupkg; microsoft.graph.authentication.1.10.0.nupkg

Install-Package -Name Microsoft.Graph.Authentication -Source PSR
Install-Package : No match was found for the specified search criteria and package name 'Microsoft.Graph.Authentication'. Try
Get-PackageSource to see all available registered package sources.

Find-Package -Source PSR returns no results.

Other nukpg files work such as Azure AD PowerShell module

@peombwa
Copy link
Member

peombwa commented Jun 24, 2022

@willfiddes, I'm not able to reproduce this on my end using the steps provided above.
image

Tested using:

Get-Module PackageManagement

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     1.4.7                 PackageManagement                   {Find-Package, Find-PackageProvider, Get-Package, Get-PackageP

Try running Install-Package with -Debug to see where the issue is coming from. I suspect it is something to do with your environment.

@ghost
Copy link

ghost commented Jun 28, 2022

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants