You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to export the Entra configuration of a 21Vianet tenant (China). It seems that the gathering of the cloud environment doesn't work correctly for connecting to MgGraph as I'm always getting an error, that the tenant cannot be found.
Connect-MgGraph : ClientCertificateCredential authentication failed: AADSTS90002: Tenant 'xxx.partner.onmschina.cn' not found. Check to make sure you have the correct tenant ID and are signing into the correct cloud. Check with your subscription administrator, this may
happen if there are no active subscriptions for the tenant.
If I try to connect through
Connect-MgGraph -TenantId $TenantId -ClientId $ApplicationClientId -CertificateThumbprint $Thumbprint -Environment China
it works without any problem.
Am I missing any parameter here to get it to work with a 21Vianet tenant?
Microsoft 365 DSC Version
V1.24.1127.1
Which workloads are affected
Azure Active Directory (Entra ID)
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered:
Description of the issue
I'm trying to export the Entra configuration of a 21Vianet tenant (China). It seems that the gathering of the cloud environment doesn't work correctly for connecting to MgGraph as I'm always getting an error, that the tenant cannot be found.
Command:
Export-M365DSCConfiguration -Workloads AAD -ApplicationId $ApplicationClientId -TenantId "xxx.partner.onmschina.cn" -CertificateThumbprint $Thumbprint
Export-M365DSCConfiguration -Workloads AAD -ApplicationId $ApplicationClientId -TenantId "xxx.partner.onmschina.cn" -ApplicationSecret $SecureClientSecret
Errormessage:
Connect-MgGraph : ClientCertificateCredential authentication failed: AADSTS90002: Tenant 'xxx.partner.onmschina.cn' not found. Check to make sure you have the correct tenant ID and are signing into the correct cloud. Check with your subscription administrator, this may
happen if there are no active subscriptions for the tenant.
If I try to connect through
Connect-MgGraph -TenantId $TenantId -ClientId $ApplicationClientId -CertificateThumbprint $Thumbprint -Environment China
it works without any problem.
Am I missing any parameter here to get it to work with a 21Vianet tenant?
Microsoft 365 DSC Version
V1.24.1127.1
Which workloads are affected
Azure Active Directory (Entra ID)
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: