Relative Content

Tag Archive for azurepowershellactive-directory

Connect to Azure AD with service principal to get a listing of users and info

I’m trying to connect to Azure AD and get a listing of accounts that match a specific company and get a file with the account info. The script works if I use an interactive login, but I need to automate this with the service principal login. I get an error at get-azureaduser in this script – what am I doing wrong?