Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 956 Bytes

File metadata and controls

23 lines (17 loc) · 956 Bytes
author MikeRayMSFT
ms.author mikeray
ms.date 11/25/2018
ms.service azure-vm-sql-server
ms.topic include
ms.custom

Start your PowerShell session

Run the Connect-Az Account cmdlet and you will be presented with a sign-in screen to enter your credentials. Use the same credentials that you use to sign in to the Azure portal.

Connect-AzAccount

If you have multiple subscriptions use the Set-AzContext cmdlet to select which subscription your PowerShell session should use. To see what subscription the current PowerShell session is using, run Get-AzContext. To see all your subscriptions, run Get-AzSubscription.

Set-AzContext -SubscriptionId 'aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e'