Skip to content

Feature: National Cloud Support #425

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

Merged
merged 10 commits into from
Oct 15, 2020
Merged

Feature: National Cloud Support #425

merged 10 commits into from
Oct 15, 2020

Conversation

peombwa
Copy link
Member

@peombwa peombwa commented Oct 10, 2020

This PR closes #357 #93 #260 by proposing the following changes:

  • Adds Get-MgEnvironment, Set-MgEnvironment, Add-MgEnvironment, and Remove-MgEnvironment commands to manage cloud environments. Add-MgEnvironment can be used to add air-gapped clouds such as canary.
  • Adds -Environment parameter to Connect-MgGraph. This parameter will be used to switch to a cloud of choice by providing its name. This defaults to Global if none is specified.
  • Adds GraphSettings, DiskDataStore and ProtectedFileProvider to handle settings persistence on disk in a thread safe manner.
  • Updates AuthenticationHelpers.cs to construct an authority URL based on the selected cloud.
  • Updates Invoke-GraphRequest to work in harmony with Connect-MgGraph -Environment.
Proposed Usage
  1. List available environments (Get-MgEnvironment)
    image

  2. Add user-defined environment (Add-MgEnvironment)
    image

  3. Connect to environment/cloud (Connect-MgGraph -Environment)
    image
    image

  4. Remove user-defined environment (Remove-MgEnvironment).
    image

Open questions
  • Apps don't replicate to China cloud. Should we have a special app id for China, or should we wait for managed identities support to support delegated access in China cloud?

@peombwa peombwa self-assigned this Oct 10, 2020
@peombwa peombwa marked this pull request as ready for review October 12, 2020 17:07
@ddyett
Copy link
Contributor

ddyett commented Oct 12, 2020

does Remove-MgEnvironment allow removing our default environments?

@peombwa
Copy link
Member Author

peombwa commented Oct 12, 2020

@ddyett We guard against that. An error will be thrown when a customer tries to remove or modify built-in environments.

Co-authored-by: DeVere Dyett <ddyett@microsoft.com>
@peombwa peombwa requested a review from ddyett October 12, 2020 23:46
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.

Support for National Clouds
3 participants