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

Msgraph and Az module are not compatible #2997

Open
i5513 opened this issue Oct 17, 2024 · 0 comments
Open

Msgraph and Az module are not compatible #2997

i5513 opened this issue Oct 17, 2024 · 0 comments

Comments

@i5513
Copy link

i5513 commented Oct 17, 2024

I can see 4 issues about this question, but all are closed

This is from the last comment (as today) of #2284:

          > It appears to be related to the PowerShell extension for VSCode. Kill the terminal and launch a fresh `pwsh` terminal and all is good.

Not here, I am runing powershell 5.1, I have uninstalled vscode-powershell just for test:

PS C:\> import-module Microsoft.Graph.Authentication
PS C:\ [1,78s]> Connect-AzAccount
Please select the account you want to login with.

ADVERTENCIA: Unable to acquire token for tenant 'organizations' with error 'Método no encontrado: 'System.Threading.Tasks.Task`1<Azure.Identity.AuthenticationRecord>
Azure.Identity.InteractiveBrowserCredential.AuthenticateAsync(Azure.Core.TokenRequestContext, System.Threading.CancellationToken)'.'
Connect-AzAccount : Método no encontrado: 'System.Threading.Tasks.Task`1<Azure.Identity.AuthenticationRecord> Azure.Identity.InteractiveBrowserCredential.AuthenticateAsync(Azure.Core.TokenRequestContext,
System.Threading.CancellationToken)'.

PS C:\ [9,34s]> get-module -ListAvailable Az.Accounts,Microsoft.Graph.Authentication


    Directorio: C:\Program Files\WindowsPowerShell\Modules


ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     3.0.4      Az.Accounts                         {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContextAutosave...}
Script     2.24.0     Microsoft.Graph.Authentication      {Connect-MgGraph, Disconnect-MgGraph, Get-MgContext, Invoke-MgGraphRequest...}

Originally posted by @i5513 in #2284 (comment)

For the moment We will use separated Az-Module based script inside our msgraph based scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants