Add-AzureAccount : Federated service - Error: ID3242

Add-AzureAccount : Federated service - Error: ID3242

我发现这有点挑战。我有一个像 HBala@contoso.com 这样的帐户,但是当我输入我的用户凭据时,它会重定向到我假设的组织联合服务器,而不是客户 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

关于如何验证它的任何建议?

您目前无法使用 Live ID/Microsoft 帐户向 Azure 进行身份验证。您需要创建可用于身份验证的 Azure Active Directory 用户。有关详细信息,请参阅文章 Azure Automation: Authenticating to Azure using Azure Active Directory