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

Find the Vnet details of an Azure VM -Powershell