microsoftgraph / msgraph-sdk-powershell

Powershell SDK for Microsoft Graph
https://www.powershellgallery.com/packages/Microsoft.Graph
Other
712 stars 172 forks source link

Conflict with AZ.Accounts #2952

Closed NikCharlebois closed 1 month ago

NikCharlebois commented 2 months ago

Describe the bug

The module has a conflict with the Az.Account 3.0.4 module. Once a Graph module is imported, it breaks the connection to Microsoft Azure via Connect-AzAccount.

Expected behavior

Importing Microsoft.Graph modules in a session should not break the Connect-AzAccount flow.

How to reproduce

Import-Module Microsoft.Graph.Application Connect-azAccount -CertificateThumbprint xxx -ApplicationId xxx -TenantId xxx

SDK Version

2.23.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ``` ```

Configuration

No response

Other information

No response

timayabi2020 commented 2 months ago

@NikCharlebois thanks for logging this issue, however I am not able to reproduce the issue. What is the exact error you are getting? Please share your debug output.

image
microsoft-github-policy-service[bot] commented 2 months ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

alexandair commented 2 months ago

@timayabi2020 Could you try Connect-MgGraph first, and then Connect-AzAccount?