Use ClientSecretCredentialBuilder to connect to MS Graph in China

AlexanderMaisch-9403 0 Reputation points
2024-04-16T13:09:56.5733333+00:00

Hi,

We want to use MS Graph using the Java Azure SDK. For Azure public cloud we used the ClientSecretCredentialBuilder to set clientID, tenantID and client secret. Now we want to make our app also be able to use MS Graph for China. For this, we need to use https://microsoftgraph.chinacloudapi.cn instead of https://graph.microsoft.com but we don't know how we can set this configuration. This is the only problem still left.

The environment variable AZURE_AUTHORITY_HOST was already set correctly. This was done inside our Github Actions workflow. So if there is a similar configuration, this can be also set like this.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,624 questions
0 comments No comments
{count} votes