Skip to content

Get-Help -online is broken on Azure VMs #3079

Closed

Description

Steps to reproduce

Get an Azure VM - Server 2016

PS C:\> get-help -Online gps

Expected behavior

Opens default browser with help content

Actual behavior

get-help : Starting a browser to display online Help failed. No program or browser is associated to open the URI
https://go.microsoft.com/fwlink/?LinkID=113324.
At line:1 char:1
+ get-help -Online gps
+ ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Get-Help], PSInvalidOperationException
    + FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.GetHelpCommand

Environment data

PS C:\> $PSVersionTable

Name                           Value
----                           -----
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
PSVersion                      6.0.0-alpha
PSEdition                      Core
CLRVersion
PSRemotingProtocolVersion      2.3
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   3.0.0.0
GitCommitId                    v6.0.0-alpha.14-59-g14311052514b2626a00eafeae14978c7dac7867c

Activity

  1. added
    WG-Interactive-HelpSystem
    on Feb 1, 2017
  2. added this to the milestone on Feb 1, 2017
  3. daxian-dbw commented on Feb 1, 2017

    @daxian-dbw
    Member

    Important: PR #3051 was merged as a temporary workaround to avoid the test failure. When fixing this issue, please make sure the changes in PR #3051 is reverted.

  4. daxian-dbw commented on Mar 21, 2017

    @daxian-dbw
    Member

    #3051 introduced the if((-not ($skipTest)) -and $IsWindows) block in test/powershell/engine/Help/HelpSystem.OnlineHelp.Tests.ps1 because our default-browser-discovery code, which was used in Get-Help -Online, didn't work correctly on the Azure code-coverage VM.

    After #3281, that code was replaced by calling into ShellExecuteEx. We need to verify if Get-Help -Online works fine now on the Azure code-coverage VM, and if it does then this if block should be removed completely.

  5. modified the milestones: 6.0.0-beta1, on Mar 21, 2017
  6. SteveL-MSFT commented on Mar 21, 2017

    @SteveL-MSFT
    Member

    Just created a WS2016 VM in Azure and get-help -Online gps works as expected although you do get a bunch of warning dialog boxes due to Internet Explorer Enhanced Security Configuration (which is expected). However, if we use Server Core VMs, then I expect there to be no web browser (or GUI) available, so it depends on the type of VM we use for our nightly runs.

    Closing this issue as the original issue doesn't repro.

  7. daxian-dbw commented on Mar 21, 2017

    @daxian-dbw
    Member

    so it depends on the type of VM we use for our nightly runs.

    This doesn't affect our nightly build, which always use Windows Server 2012R2. #3051 was made only because the Get-Help -Online tests fail in code-coverage test run.
    Steve Lee (@SteveL-MSFT) are we using Server Core for code-coverage test run? If not, then I think the if((-not ($skipTest)) -and $IsWindows) block should be removed.

  8. SteveL-MSFT commented on Mar 21, 2017

    @SteveL-MSFT
    Member

    cc James Truher (@JamesWTruher) are we using Server Core for CC? We probably should.

    Dongbo Wang (@daxian-dbw) it doesn't make sense for us to use anything other than Server Core and Nano Server which both don't have a GUI, so for that reason, we probably need the code to be there

  9. daxian-dbw commented on Mar 21, 2017

    @daxian-dbw
    Member

    Steve Lee (@SteveL-MSFT) I agree. That makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Resolution-FixedWG-Interactive-HelpSystem

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions