スクリプトに非対話型ログインを実装する必要があります。ただ、以下のようにスクリプトを変更します。
##login Azure
$subscriptionId = "xxxxxxxxxxxxxxxxxxxxx"
$username = "<username>"
$password = "<password>"
$secstr = New-Object -TypeName System.Security.SecureString
$password.ToCharArray() | ForEach-Object {$secstr.AppendChar($_)}
$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $username, $secstr
Login-AzureRmAccount -Credential $cred
Select-AzureRmSubscription -SubscriptionId $subscriptionId
注:あなたは、このような*@hotmail.com、*@outlook.comとして、マイクロソフトLiveアカウントを使用してAzureのに非intereractivelyログインすることはできません。