-
Notifications
You must be signed in to change notification settings - Fork 100
Closed
Labels
Milestone
Description
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
Find-PSResource -Name {ModuleName}-Repository {ADOFeedName} -Credential $Credentials
Find-PSResource -Repository {ADOFeedName} -Type Module
I tested two different ways and I've got the same result (error):
VERBOSE: Searching in repository {ADOFeedName}
Find-PSResource: Object reference not set to an instance of an object.
Command that we use in our code:
Find-PSResource -Name {ModuleName} -Prerelease:($installPrereleaseModule) -Version $ModuleVersion -Repository {ADOFeedName} -Credential $Credentials -IncludeDependencies
Expected behavior
Find-PSResource retrieves requested Module from ADO feed {ADOFeedName}
Actual behavior
VERBOSE: Searching in repository {ADOFeedName}
Find-PSResource: Object reference not set to an instance of an object.
Error details
Error started to happen on version 3.0.20.
3.0.19 worked fine
Environment data
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Binary 3.0.20 beta20 powershellget {Find-PSResource, Get-PSResource, Get-PSResourceR…
Script 2.2.5 PowerShellGet {Find-Command, Find-DscResource, Find-Module, Fin…
Key : PSVersion
Value : 7.3.3
Name : PSVersion
Key : PSEdition
Value : Core
Name : PSEdition
Key : GitCommitId
Value : 7.3.3
Name : GitCommitId
Key : OS
Value : Microsoft Windows 10.0.22621
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
kpoxo6op and shadow1163