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

The v2 SDK don't support sovereign cloud (like China)? #2255

Closed
chenxizhang opened this issue Aug 18, 2023 · 1 comment
Closed

The v2 SDK don't support sovereign cloud (like China)? #2255

chenxizhang opened this issue Aug 18, 2023 · 1 comment

Comments

@chenxizhang
Copy link

Hi team,

Thanks for the good work and I am excited to see the better version of powershell sdk for msgraph.

I've done some tests and most of them worked as expect. But I found the supporting for sovereign cloud (like China) might be broken.

When I try the cmdlet Connect-MgGraph -Environment China and input the username and password, I got the below error message.

image

@peombwa
Copy link
Member

peombwa commented Aug 18, 2023

Thanks for following up on this.

You'll need to register your own app in your tenant and use it when connecting to the SDK via -ClientId. Globally registered apps don't replicate to some sovereign cloud like Azure China. This is mentioned at auth documentation.

Globally registered apps don't replicate to Azure China. You'll need to register your own applications in Azure China and use them when connecting to Microsoft Graph.

Closing as duplicate of #802.

@peombwa peombwa closed this as completed Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants