武井です
Azure Powershellを利用して、スクリプトを作成しております。仮想マシンのイメージを定期的に取得するスクリプトで、タスクスケジューラで定期的に実行しようと思っています。
Microsoftアカウントにて、Azureに認証しようと思い、以下のスクリプトを記載し実行しました。
$userName = "ユーザ名"
$password = "パスワード"
$secPassword = ConvertTo-SecureString $password -AsPlainText -Force
$Credential = New-Object System.Management.Automation.PSCredential( $userName,$secPassword )
Add-AzureAccount -Credential $Credential
ただし、以下のエラーが返ってきて認証が出来ませんでした。
please refer to
http://go.microsoft.com/fwlink/?linkid=331007&clcid=0x409 for more information about the difference
between an organizational account and a Microsoft account.
解決方法をご教示頂けますでしょうか?