Unable to duplicate Azure Cloud Shell Profile #16356

Closed
opened 2026-01-31 05:05:02 +00:00 by claunia · 11 comments
Owner

Originally created by @blessedwithsins on GitHub (Jan 8, 2022).

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

Originally created by @blessedwithsins on GitHub (Jan 8, 2022). ### 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](https://user-images.githubusercontent.com/26162427/148645462-e63c8fe7-b02a-4b68-a1f8-3cf2b4160bf9.JPG) ![windowsterminal-2](https://user-images.githubusercontent.com/26162427/148645463-36c97d5b-38af-4e29-9966-77246f81b227.JPG) ![windowsterminal-1](https://user-images.githubusercontent.com/26162427/148645464-e8b1f4de-59ac-45ad-9cf6-f2610275ac17.JPG)
Author
Owner

@zadjii-msft commented on GitHub (Jan 10, 2022):

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.

@zadjii-msft commented on GitHub (Jan 10, 2022): 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.
Author
Owner

@blessedwithsins commented on GitHub (Jan 10, 2022):

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

@blessedwithsins commented on GitHub (Jan 10, 2022): @zadjii-msft I was trying that out of curiosity only. It works for other profiles.
Author
Owner

@elsaco commented on GitHub (Jan 10, 2022):

@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 .

@elsaco commented on GitHub (Jan 10, 2022): @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` .
Author
Owner

@zadjii-msft commented on GitHub (Jan 10, 2022):

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.

@zadjii-msft commented on GitHub (Jan 10, 2022): 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.
Author
Owner

@blessedwithsins commented on GitHub (Jan 10, 2022):

@elsaco This also doesn't work.

image

@blessedwithsins commented on GitHub (Jan 10, 2022): @elsaco This also doesn't work. ![image](https://user-images.githubusercontent.com/26162427/148792684-d9cafc2a-bbf5-4020-a635-a12eb57bf052.png)
Author
Owner

@elsaco commented on GitHub (Jan 10, 2022):

I'm seeing different output on my system. This is the duplicated Azure profile:

azure_duplicate

and when launching the duplicated it drops to a CLI prompt:

azure_shell_copy

The first Azure profile works as expected.

@elsaco commented on GitHub (Jan 10, 2022): I'm seeing different output on my system. This is the duplicated Azure profile: ![azure_duplicate](https://user-images.githubusercontent.com/3933920/148793219-e57a35f6-0424-40e9-a9ef-3d80162d336c.png) and when launching the duplicated it drops to a CLI prompt: ![azure_shell_copy](https://user-images.githubusercontent.com/3933920/148793348-e49e4eea-4366-477a-a301-74730a965e15.png) The first `Azure` profile works as expected.
Author
Owner

@elsaco commented on GitHub (Jan 10, 2022):

@blessedwithsins I'm using terminal Version: 1.12.3472.0 the latest preview release. That's probably why the different outputs.

@elsaco commented on GitHub (Jan 10, 2022): @blessedwithsins I'm using terminal `Version: 1.12.3472.0` the latest preview release. That's probably why the different outputs.
Author
Owner

@blessedwithsins commented on GitHub (Jan 10, 2022):

@elsaco not specific to version. Please try to create a new profile using duplicate option for Azure Cloud Shell.

@blessedwithsins commented on GitHub (Jan 10, 2022): @elsaco not specific to version. Please try to create a new profile using duplicate option for Azure Cloud Shell.
Author
Owner

@DHowett commented on GitHub (Jan 10, 2022):

This is for sure a bug -- @elasco don't worry that you are seeing something slightly different from @blessedwithsins. It has not actually been addressed.

@DHowett commented on GitHub (Jan 10, 2022): This is for sure a bug -- @elasco don't worry that you are seeing something _slightly_ different from @blessedwithsins. It has not actually been addressed.
Author
Owner

@zadjii-msft commented on GitHub (Jan 10, 2022):

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

@zadjii-msft commented on GitHub (Jan 10, 2022): Oh we just forgot to duplicate `connectionType` this might be easier than we think.
Author
Owner

@ghost commented on GitHub (Feb 3, 2022):

:tada:This issue was addressed in #12147, which has now been successfully released as Windows Terminal Preview v1.13.10336.0.🎉

Handy links:

@ghost commented on GitHub (Feb 3, 2022): :tada:This issue was addressed in #12147, which has now been successfully released as `Windows Terminal Preview v1.13.10336.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.13.10336.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16356