0

You can use specific urls like https://shell.azure.com/ or https://portal.azure.com/#cloudshell/ to open the azure portal with the azure cloud shell in focus. How can I select the specific flavor of shell that opens? I specifically want to make sure the user is opening bash, but I'm sure there's a way to specify powershell also.

-- edit things I've tried so far that don't seem to work

https://shell.azure.com/?shell=bash, https://shell.azure.com/?shell=powershell
https://shell.azure.com/?feature.bash=true
https://shell.azure.com/bash, https://shell.azure.com/powershell
https://portal.azure.com/#cloudshell/bash, https://portal.azure.com/#cloudshell/powershell
3
  • Can you share more if tried any approach so far! @JJS Commented Nov 7, 2024 at 3:32
  • @Jahnavi I've modified the question with things I've tried that did not work. Commented Nov 7, 2024 at 18:46
  • AFAIK,there is no such option to open the shells based on url's .By default last selected shell option will be opened. Commented Nov 11, 2024 at 4:20

1 Answer 1

0

By default, Cloud shell opens the Powershell option.

enter image description here

  • If you click on the new session, it opens the flavor which is currently set on the main page.

  • Currently my current session has PowerShell, when I open a new session with the https://ms.portal.azure.com/#cloudshell/ URL it opens the PowerShell windows itself.

enter image description here

  • When I open new session with Bash on main page, new session opens a Bash window.

enter image description here

  • The above URL opens the PowerShell/Bash based on the main page selection.

AFAIK, there is no such option to open the Cloud shell flavor using the URL.

  • Cloud shell remembers the last selected flavor and opens the same for the next time.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.