EvotecIT / O365Essentials

A module that helps to manage some tasks on Office 365/Azure via undocumented API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Connect-O365Admin files in version 0.0.13

robertbostrom opened this issue · comments

When run the Connect-O365Admin in PowerShell 7.4.2 I get the following message:
WARNING: Connect-O365Admin - Error: InteractiveBrowserCredential authentication failed: User canceled authentication.

I get a web prompt but the cmdlet have already returned the message and when I try the cmdlet Get-O365Domain I get the message:
WARNING: Invoke-O365Admin - Not connected. Please connect using Connect-O365Admin.

It works fine in PowerShell on the MacOS but not in Windows. I have tried using different browsers. clear caches etc but I am stuck.

Skärmavbild 2024-05-25 kl  18 52 09

I guess you updated Az.Accounts to newest version - and I guess that's what causes it seeing as I haven't updated anything for a while now. There seems to be 3.0 out which I guess you have and which changes things: https://www.powershellgallery.com/packages/Az.Accounts/3.0.0

Someone suggested: Tempoary workaround prior to Connect-AzAccount

Update-AzConfig -EnableLoginByWam $false

Can you test if it fixes an issue?