You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to duplicate Azure Cloud Shell Profile #12120
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.
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 .
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.
Activity
zadjii-msft commentedon 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
connectionTypeas part of the properties for that profile. If we did that, then that property would get duplicated when we duplicate the profile.blessedwithsins commentedon Jan 10, 2022
Mike Griese (@zadjii-msft) I was trying that out of curiosity only. It works for other profiles.
elsaco commentedon Jan 10, 2022
blessedwithsins you're not duplicating the profile only. You're changing the command to
Azurewhich doesn't exist on your system.0x80070002is FILE_NOT_FOUND error. If you have Azure CLI installed, the command isaz.zadjii-msft commentedon 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 inAzureas the commandline. It's obviously not a valid commandline, but that's by design. So when the profile gets duplicated, that invalidAzurecommandline gets duplicated as well.Now, the design just needs to be better to actually allow this to work.
blessedwithsins commentedon Jan 10, 2022
Elsaco (@elsaco) This also doesn't work.
4 remaining items
zadjii-msft commentedon Jan 10, 2022
Oh we just forgot to duplicate
connectionTypethis might be easier than we think.Make sure to copy `connectionType` for the azure shell (#12147)
Make sure to copy `connectionType` for the azure shell (#12147)
Use the macros for duplicating as well (#12284)