Powershell - How to authenticate with Azure Active Directory using federated account


  • I would like to run some scripts that query azure ad using an account that is federated within powershell

    any help in doing so would be great!

    usually when you type connect-msolservice, you can supply the $creds section since the account is a federated account, i am getting authentication error,


    Friday, March 24, 2017 1:56 PM


  • Connect-MsolService works just fine with federated accounts. Do you happen to have some form of multi-factor authentication configured on that account?
    • Marked as answer by RKermit Friday, March 24, 2017 7:51 PM
    Friday, March 24, 2017 7:38 PM