azure-powershell
azure-powershell copied to clipboard
Login-AzAccount or Connect-AzAccount throws an exception
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