| author | MikeRayMSFT |
|---|---|
| ms.author | mikeray |
| ms.date | 11/25/2018 |
| ms.service | azure-vm-sql-server |
| ms.topic | include |
| ms.custom |
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-AzAccountIf 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'