Tuesday, August 7, 2018

Azure Cloud Shell Editor with Visual Studio Code

Everyone loves Azure Cloud Shell. It can run Bash or PowerShell commands and all you need is to have logged into the Azure Portal and a storage account there for it. Who would have thought running PowerShell commands on a web browser? 

Things have improved and things are getting even better with more features being added. CloudShell now comes with some open source tools like Terraform, Ansible and Inspec pre-installed. That might make it a bit heavy, but will do a lot more good for people. 

What is very interesting is being able to run those commands on Visual Studio Code. Yes. The Visual Studio Code now allows running Azure Cloud Shell commands without you need to run anywhere. Its super easy to launch and you can easily see or update your Azure resources from the favourite IDE. 

Most popular text editors like vi, which is one of the most popular for Linux commands and emac as well as nano which emulates the Pico editor but with an open license is available for editing files in Cloud Shell. You can experience all colorful texts as it is very helpful in viewing a code and that is thanks to the Monaco project.

Other than colors, there are also auto completion and code snippets available thanks to Monaco. Other than that, the file explorer allows the files to appear in the structure defined. 

This was all about Visual Studio Code. But how about running PowerShell commands while you are on a walk? 

Yes, the Cloud Shell is also available for the Azure Mobile app. That allows the admins to run the PowerShell commands on the go. 

No comments:

Post a Comment