Skip to content

Install-PSResource fails with 404 for a module that Find-PSResource was able to find #1491

Closed
@nbarnwell

Description

@nbarnwell

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

  1. Followed the documentation for setting up an authenticated repository
  2. Check a package on the authenticated feed is available: Find-PSResource -Repository MyPowerShellModules -name My.PowerShell.Utility
  3. Attempt to install the module: Install-PSResource -Name My.PowerShell.Utility -Repository MyPowerShellModules

Expected behavior

Module is installed and available to use.

Actual behavior

Failure with error message.

Error details

Install-PSResource: 'Response status code does not indicate success: 404 (Not Found).' Request sent: 'https://my.pkgs.visualstudio.com/DevOps/_packaging/MyPowerShellModules/nuget/v2/package/My.PowerShell.Utility/0.9.6'

Environment data

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Binary     1.0.1                 Microsoft.PowerShell.PSResourceGet  {Find-PSResource, Get-InstalledPSResource, Get-PS…

Key   : PSVersion
Value : 7.4.0
Name  : PSVersion


Key   : PSEdition
Value : Core
Name  : PSEdition


Key   : GitCommitId
Value : 7.4.0
Name  : GitCommitId


Key   : OS
Value : Microsoft Windows 10.0.19044
Name  : OS


Key   : Platform
Value : Win32NT
Name  : Platform


Key   : PSCompatibleVersions
Value : {1.0, 2.0, 3.0, 4.0…}
Name  : PSCompatibleVersions


Key   : PSRemotingProtocolVersion
Value : 2.3
Name  : PSRemotingProtocolVersion


Key   : SerializationVersion
Value : 1.1.0.1
Name  : SerializationVersion


Key   : WSManStackVersion
Value : 3.0
Name  : WSManStackVersion

Visuals

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions