Skip to content

Feature: National Cloud Support - #425

Merged
Peter Ombwa (peombwa) merged 10 commits into
devfrom
feature/NationalCloudSupport
Oct 15, 2020
Merged

Peter Ombwa (peombwa) merged 10 commits into
devfrom
feature/NationalCloudSupport

Conversation

@peombwa

@peombwa Peter Ombwa (peombwa) commented Oct 10, 2020 •

Copy link
Copy Markdown
Member

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 Peter Ombwa (peombwa) self-assigned this Oct 10, 2020
@ddyett

Copy link
Copy Markdown
Contributor

does Remove-MgEnvironment allow removing our default environments?

@peombwa

Peter Ombwa (peombwa) commented Oct 12, 2020 •

Copy link
Copy Markdown
Member Author

DeVere Dyett (@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>
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