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

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.

get-azsubscription

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