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

Convert Dynamic IP to static IP in a Windows computer or server

Powershell commands for DNS Management

Export Azure VM details to CSV with Tags