I am Dale Hayter, a Microsoft and VMware certified Technical Consultant.

My blog has been built up over the years from my experience of working on an IT helpdesk and also from being out on-site.

Connect to Azure Classic with PowerShell

Certain features in Azure can only be managed via PowerShell. Before you can start using the commands you need to install Azure PowerShell. Install it from the Microsoft link below :

http://aka.ms/webpi-azps

Once installed, launch an elevated PowerShell session and run the command

Add-AzureAccount

This will launch a Microsoft Web Login page. Login with your Microsoft credentials tied to your Azure tenant.

You are now connected to Azure. The first commands you will generally always type once connected is to select your subscription of which you want to administrate. You can list all the subscriptions under the Azure tenant with the command.

Get-AzureSubscription
azurelogin3

You can now select the subscription that you want to use with the command

Set-AzureSubscription -SubscriptionName SubscriptionName

So in my example above I would use

Set-AzureSubscription -SubscriptionName "Free Trial"

You are now ready to go…..