When using Powershell to control Azure the Cloud Shell doesn’t require an additional login.

Leave a comment

September 18, 2019 by Kenneth Fisher

When studying Azure one of the things you’ll be asked to learn is the Powershell commands that can control, well, pretty much everything in there. One of the first thing’s you’ll have to learn is the command Get-Credential which opens a window so you can manually log in to your Azure account before you do anything. Which makes perfect sense. Security for the win! And I’m sure there are ways to create this connection programmatically (although I don’t know any currently). But I have recently learned a way to avoid(?) having to use Get-Credential. It turns out that when you are in the Azure Portal (you’ve already logged in of course) you can open a shell and use either Bash or Powershell.


Some help documents

 

A few of the things I got out of the help documents
  • Comes with all Az modules pre-installed. (and presumably they are kept updated)
  • Azure Drive (Azure:) let’s you navigate your Azure resources as a directory structure even using things like NET USE to map a drive. As an old DOS guy this is particularly cool for me.
  • Persisted home directory to store your files (using Azure storage)

 
I don’t know about you but I’m going to have to play with this some more.

Edit:I’m also told you can connect to the Cloud Shell through https://shell.azure.com/ which is a more direct way to get there.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 2,542 other followers

Follow me on Twitter

ToadWorld Pro of the Month November 2013
%d bloggers like this: