Skip to content

Connect-MGGraph : You specified a different tenant - once in WithAuthority() and once using WithTenant().Β #1922

Closed
@NikCharlebois

Description

@NikCharlebois

We are getting a weird behavior when trying to connect via Connect-MgGraph, right after connecting to PnP.PowerShell.

Running the following:

Connect-PnPOnline -ClientId $Global:O365DSCAppId -Tenant $Global:O365DSCTenantId -Thumbprint $Global:O365DSCThumbprint `
    -Url 'https://O365DSC-admin.sharepoint.com' -AzureEnvironment Production
Connect-MGGraph -ClientId $Global:O365DSCAppId -TenantId $Global:O365DSCTenantId -CertificateThumbprint $Global:O365DSCThumbprint

Will always result in the following error being thrown:
image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions