Skip to content

Add sovereign cloud support for Microsoft Graph Provider#120

Open
dpmerron-ltd wants to merge 1 commit into
microsoft:mainfrom
dpmerron-ltd:sovereign-cloud-china
Open

Add sovereign cloud support for Microsoft Graph Provider#120
dpmerron-ltd wants to merge 1 commit into
microsoft:mainfrom
dpmerron-ltd:sovereign-cloud-china

Conversation

@dpmerron-ltd
Copy link
Copy Markdown

@dpmerron-ltd dpmerron-ltd commented May 27, 2026

Summary

Adds provider-level sovereign cloud support via a new environment argument.

Users can now configure Azure China / 21Vianet with:

Closes #93

provider "msgraph" {
  environment = "china"
}

This change:

  • Adds environment provider configuration with public as the default
  • Supports public, china, and usgovernment
  • Uses Azure SDK cloud configuration for authentication authority selection
  • Requests Microsoft Graph tokens using the selected cloud’s Graph scope
  • Sends Graph API requests to the selected cloud’s Graph endpoint
  • Documents the new argument and Azure China example

Testing

  • gofmt
  • go test ./...
  • make fmtcheck
  • make test

@dpmerron-ltd
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@dpmerron-ltd
Copy link
Copy Markdown
Author

@dpmerron-ltd please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree

@dpmerron-ltd dpmerron-ltd force-pushed the sovereign-cloud-china branch from 309443d to 78d39ec Compare May 28, 2026 01:10
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

Successfully merging this pull request may close these issues.

Add support for sovereign cloud environments

1 participant