Reputation: 1321
I am finding this a bit of challenge. I got a account like [email protected] but when I enter my user credentials, it redirects to my organizational federation server I assume and not Customer ADFS.
Get-AzureStorageBlob -Context $Context -Container $ContainerName;
Add-AzureAccount : Federated service at https://sts.contoso.com/adfs/services/trust/13/usernamemixed returned error: ID3242: The security token could not be authenticated or authorized.: The remote server returned an error: (500) Internal Server Error. At line:4 char:1 + Add-AzureAccount -Credential $AzureCredential; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Add-AzureAccount], AadAuthenticationFailedException + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Profile.AddAzureAccount
Any suggestions on how to authenticate it alternatively?
Upvotes: 2
Views: 4814
Reputation: 531
You cannot currently authenticate to Azure using a Live ID / Microsoft account. You need to create an Azure Active Directory user that you can use to authenticate. See article Azure Automation: Authenticating to Azure using Azure Active Directory for details.
Upvotes: 4