Login into Azure using Powershell
Import-Module -Name Az
Login-AzAccount # This will prompt for the username and password
get-azsubscription
$getallSubscriptions = Get-AzSubscription
Login-AzAccount # This will prompt for the username and password
get-azsubscription
$getallSubscriptions = Get-AzSubscription
$getallSubscriptions will have the complete list of subscriptions
Comments
Post a Comment