Skip to content

Unable to duplicate Azure Cloud Shell Profile #12120

Closed

Description

@blessedwithsins

Windows Terminal version

1.11.3471.0

Windows build number

10.0.19044.1415

Other Software

No response

Steps to reproduce

Start Windows Terminal
Go to settings
Add a new profile
Duplicate Azure Cloud Shell Profile & Save

Expected Behavior

I expect this to work in the same way as it works for PowerShell or Ubuntu.

Actual Behavior

It doesn't work and fails with the error below.

[error 0x80070002 when launching `Azure']
windowsterminal-3
windowsterminal-2
windowsterminal-1

Activity

  1. ghost added
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Jan 8, 2022
  2. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on Jan 8, 2022
  3. zadjii-msft commented on Jan 10, 2022

    @zadjii-msft
    Member

    Huh. Out of curiosity, why are you trying to duplicate the azure shell profile? I'm not sure there's any configuration you can do to the shell itself, o it's always going to drop you to the same shell prompt...

    This might require more discussion. Duplicating that profile does make sense in the future where we do allow more customization of that prompt, to allow other configs. Maybe we need to include connectionType as part of the properties for that profile. If we did that, then that property would get duplicated when we duplicate the profile.

  4. added
    Area-AzureShellWorkitems pertaining to the Azure Cloud Shell connection.
    Area-SettingsIssues related to settings and customizability, for console or terminal
    Issue-TaskIt's a feature request, but it doesn't really need a major design.
    on Jan 10, 2022
  5. ghost removed
    Needs-Tag-FixDoesn't match tag requirements
    on Jan 10, 2022
  6. blessedwithsins commented on Jan 10, 2022

    @blessedwithsins
    Author

    Mike Griese (@zadjii-msft) I was trying that out of curiosity only. It works for other profiles.

  7. elsaco commented on Jan 10, 2022

    @elsaco

    blessedwithsins you're not duplicating the profile only. You're changing the command to Azure which doesn't exist on your system. 0x80070002 is FILE_NOT_FOUND error. If you have Azure CLI installed, the command is az .

  8. zadjii-msft commented on Jan 10, 2022

    @zadjii-msft
    Member

    That's not strictly true. The Terminal does some behind-the-scenes magic for the azure cloud shell, so it doesn't even really use the commandline. However, the profile also does need a valid commandline, so we just slap in Azure as the commandline. It's obviously not a valid commandline, but that's by design. So when the profile gets duplicated, that invalid Azure commandline gets duplicated as well.

    Now, the design just needs to be better to actually allow this to work.

  9. blessedwithsins commented on Jan 10, 2022

    @blessedwithsins
    Author

    Elsaco (@elsaco) This also doesn't work.

    image

  10. 4 remaining items

  11. removed
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Jan 10, 2022
  12. zadjii-msft commented on Jan 10, 2022

    @zadjii-msft
    Member

    Oh we just forgot to duplicate connectionType this might be easier than we think.

  13. added
    Issue-BugIt either shouldn't be doing this or needs an investigation.
    and removed
    Issue-TaskIt's a feature request, but it doesn't really need a major design.
    on Jan 10, 2022
  14. ghost added
    In-PRThis issue has a related PR
    on Jan 12, 2022
  15. ghost closed this as completedin #12147on Jan 12, 2022
  16. ghost removed
    In-PRThis issue has a related PR
    on Jan 12, 2022
  17. ghost added a commit that references this issue on Jan 12, 2022
    eb83469
  18. ghost added
    Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.
    on Jan 12, 2022
  19. added a commit that references this issue on Jan 21, 2022
    75745df
  20. ghost added a commit that references this issue on Jan 31, 2022
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

    Area-AzureShellWorkitems pertaining to the Azure Cloud Shell connection.Area-SettingsIssues related to settings and customizability, for console or terminalIssue-BugIt either shouldn't be doing this or needs an investigation.Priority-2A description (P2)Product-TerminalThe new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions