Open PowerShell session as Admin
Install-Module -Name Az
Answer Y to trust the repository
In non-admin PowerShell session
Import-Module Az
To Connect to an Azure account
Connect-AzAccount
A browser session will open, here enter your account details.
If you have multiple account subscriptions you need to switch to the correct one
C:\\Users\\dave> Get-AzSubscription
Name Id TenantId State
---
Free Trial 4bbdff0b-xxxxxx-xxxxxx-d08b6c8dd5bc cb1dab68-xxxxxx-xxxxxxc012e8c33f6a Enabled
RC Forensic. 3432e00a-xxxxxx-xxxxxx-ffa464b50534 3ae8626e-*************-25c5855f9a6d Enabled
C:\\Users\\dave> Select-AzSubscription -SubscriptionId xxxxx-xxxxxx-xxxxxx-xxxxx
Get-AzResourceGroup | % {$_.Location}
uksouth
westeurope
eastasia
uksouth
westeurope
uksouth
uksouth
uksouth
uksouth
uksouth
uksouth
uksouth
uksouth
uksouth
Get-AzResourceGroup | % {$_.ResourceGroupName}
databricks-rg-hqa
databricks-rg-qa
NetworkWatcherRG