Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect-O365Admin files in version 0.0.13 #27

Open
robertbostrom opened this issue May 25, 2024 · 3 comments
Open

Connect-O365Admin files in version 0.0.13 #27

robertbostrom opened this issue May 25, 2024 · 3 comments
Labels
question Further information is requested

Comments

@robertbostrom
Copy link

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

@PrzemyslawKlys
Copy link
Member

PrzemyslawKlys commented May 25, 2024

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

@PrzemyslawKlys PrzemyslawKlys added the question Further information is requested label May 25, 2024
@PrzemyslawKlys
Copy link
Member

Someone suggested: Tempoary workaround prior to Connect-AzAccount

Update-AzConfig -EnableLoginByWam $false

Can you test if it fixes an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants