azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Login-AzAccount or Connect-AzAccount throws an exception

Open sndkr opened this issue 7 years ago • 0 comments

for me is it currently not possible to use the functions Login-AzAccount or Connect-AzAccount with an ADFS Login, because the functions Login-AzAccount or Connect-AzAccount throws the following exception:

Login-AzAccount : Federated service at https://[adfsUrl]/adfs/services/trust/13/usernamemixed returned error: ID3035: The request was not valid or is malformed. In C:[PathToMyPsScript].ps1:637 Zeichen:13

  •         Login-AzAccount -Credential $userCred
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : CloseError: (:) [Connect-AzAccount], AdalServiceException
    • FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.ConnectAzureRmAccountCommand

The ADFS needs a mail address and the Password.

Please look here: https://github.com/AzureAD/azure-activedirectory-library-for-dotnet/issues/699 Maybe it is the same error in your lib.

Thanks Sascha

sndkr avatar Feb 27 '19 14:02 sndkr