Login into Azure using Powershell

Import-Module -Name Az
Login-AzAccount  # This will prompt for the username and password
get-azsubscription
$getallSubscriptions = Get-AzSubscription

$getallSubscriptions  will have the complete list of subscriptions 



Comments

Popular posts from this blog

Powershell commands for DNS Management

Find the Vnet details of an Azure VM -Powershell

Export Azure VM details to CSV with Tags