Skip to content

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

Closed

Description

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

Activity

  1. added
    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a
    on Jun 25, 2019
  2. iSazonov commented on Jun 25, 2019

    @iSazonov
    Collaborator

    /cc Paul Higinbotham (@PaulHigin) Steve Lee (@SteveL-MSFT) Should we create new endpoint for 7.0?

  3. SteveL-MSFT commented on Jul 1, 2019

    @SteveL-MSFT
    Member

    I just checked my Windows machine. Enable-PSRemoting creates the PowerShell.7-Preview and version specific PowerShell.7.0.0-preview.1 remoting endpoints and works when I connect to them. Looking at your PR, the test failures don't seem related to remoting?

  4. kvprasoon commented on Jul 2, 2019

    @kvprasoon
    ContributorAuthor

    Yep, It creates the endpoint post enabling the remoting... got confused by seeing below error in CI result.

     Describing TestImplicitRemotingBatching hook should correctly batch simple remote command pipelines
    WARNING: PowerShell remoting has been enabled only for PowerShell 6+ configurations and does not affect Windows PowerShell remoting configurations. Run this cmdlet in Windows PowerShell to affect all PowerShell remoting configurations.
    VERBOSE: Using Global CI Credential
    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
    +                    ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Management.A…tion.RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException
    + FullyQualifiedErrorId : InvalidResourceUri,PSSessionOpenFailed
    +++++++++++++++++
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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