Skip to content

CI fails as no PowerShell 7.x endpoints are available. #9999

@kvprasoon

Description

@kvprasoon

Steps to reproduce

Open PowerShell 7.0.0-Preview.1

Get-PSSessionConfiguration | Select-Object -ExpandProperty Name

Expected behavior

Output should contain a Configuration name for 7.0.0-Preview.1

Actual behavior

Output doesn't contain a Configuration name for 7.0.0-Preview.1

Environment data


Name                           Value
----                           -----
PSVersion                      7.0.0-preview.1
PSEdition                      Core
GitCommitId                    7.0.0-preview.1
OS                             Microsoft Windows 10.0.18922
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Error in CI

New-PSSession : [localhost] Connecting to remote server localhost failed with the following error message : The WS-Management service cannot process the request. Cannot find the WinRM is already set up to receive requests on this computer. WinRM has been updated for remote management. Created a WinRM listener on HTTP://* to accept WS-Man requests to any IP on this machine. 
 PowerShell.7.0.0-preview.2 session configuration in the WSMan: drive on the localhost computer. For more information, see the about_Remote_Troubleshooting Help topic.
At D:\a\1\s\test\tools\Modules\HelpersRemoting\HelpersRemoting.psm1:190 char:20
+         $session = New-PSSession @parameters

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-AnsweredThe question is answered.WG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions