Using Azure from Visual Studio Code Part 3 – Set context and change appearance

As a bonus we will add a specfic subscription so we don’t have to define it in every command and change the layout of VSCode.

You can choose how you like to view your terminal. Go to view, appearance and toggle panel position for a vertical view.

Now let’s se the context to default a subscription.

Get the subscription id by below command.


Add your subscription to a variabel by getting it from the get-command

$SubscriptionID = Get-AzureRMSubscription | Where-Object
Name -like '*minsubscription*'

Now you have your subscription in a variable and you can define it’s context by below command.

Set-AzureRmContext -SubscriptionID $SubscriptionID

There we go! Now start to use Azure from Visual Studio Code!

Leave a Reply

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

You are commenting using your 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

%d bloggers like this: