Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Azure Cloud Shell: Use PowerShell in Bash
Tidjani Belmansour, Ph.D.
Tidjani Belmansour, Ph.D.

Posted on

     

Azure Cloud Shell: Use PowerShell in Bash

A quick one today...

I quite often hear this complaint: "I hate having to switch Cloud Shell from Bash to PowerShell to use cmdlets.". Well, you don't have to!

In fact, you can invoke the PowerShell Core interpreter right from within the Bash command-line in Cloud Shell. Simply type:

pwsh

And you'll fire off the PowerShell Core interpreter.
start a powershell core session in bash

Once you're done and you want to go back to the Bash command-line, simply type:

exit

And you'll exit the PowerShell Core interpreter.
exit the powershell core session and go back to bash

Simple, isn't it? ;)

As a conclusion

Working with the command line is essential when it comes to automation. Knowing that you can combine the power of Bash and PowerShell together will help you do great things.

Let's keep in touch

You can reach me onTwitter orLinkedIn.

See you soon !

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Hi, my name is Tidjani Belmansour. I'm a Microsoft Azure MVP, a Cloud Solutions Architect and a coffee addict.I've been in love with computers since 1988.
  • Location
    physical: QC, Canada | virtual: planet earth
  • Education
    Bachelor in computer science; Master and Ph.D. in industrial engineering
  • Work
    Cloud Solutions Architect at Cofomo
  • Joined

More fromTidjani Belmansour, Ph.D.

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp