Skip to content

Rename sovereign cloud environments in CloudManager and Microsoft365Environment#1787

Merged
gautamdsheth merged 1 commit into
pnp:devfrom
gautamdsheth:feat/rename-cloud-graph-ps
Jun 26, 2026
Merged

Rename sovereign cloud environments in CloudManager and Microsoft365Environment#1787
gautamdsheth merged 1 commit into
pnp:devfrom
gautamdsheth:feat/rename-cloud-graph-ps

Conversation

@gautamdsheth

Copy link
Copy Markdown
Collaborator

Renaming it align with 1P tooling and avoid confusion

Copilot AI review requested due to automatic review settings June 26, 2026 19:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Renames sovereign cloud environment identifiers in Microsoft365Environment and updates CloudManager (plus tests) to use the new names, aiming to align with 1P tooling terminology and reduce confusion.

Changes:

  • Renamed enum members for French/German/Singapore sovereign cloud environments.
  • Updated CloudManager domain-to-environment mapping and authority host mappings to use the renamed enum members.
  • Updated CloudManagerTests to validate the new environment names (including adding .sg coverage).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/sdk/PnP.Core/Services/Core/Microsoft365Environment.cs Renames sovereign cloud enum members and updates related XML docs.
src/sdk/PnP.Core/Services/Core/CloudManager.cs Switch mappings updated to new enum names for URI parsing and authority resolution.
src/sdk/PnP.Core.Test/Misc/CloudManagerTests.cs Test data updated to assert the renamed enum values and added .sg URI coverage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +41 to 45
BleuCloud = 7,

/// <summary>
/// Represents the GovDe Cloud environment option. Operated by an SAP subsidiary and aligned with German Cloud Platform Requirements. See https://learn.microsoft.com/en-us/industry/sovereign-cloud/national-partner-clouds/overview-national-partner-clouds
/// Represents the DelosCloud Cloud environment option. Operated by an SAP subsidiary and aligned with German Cloud Platform Requirements. See https://learn.microsoft.com/en-us/industry/sovereign-cloud/national-partner-clouds/overview-national-partner-clouds
/// </summary>

/// <summary>
/// Represents the GovDe Cloud environment option. Operated by an SAP subsidiary and aligned with German Cloud Platform Requirements. See https://learn.microsoft.com/en-us/industry/sovereign-cloud/national-partner-clouds/overview-national-partner-clouds
/// Represents the DelosCloud Cloud environment option. Operated by an SAP subsidiary and aligned with German Cloud Platform Requirements. See https://learn.microsoft.com/en-us/industry/sovereign-cloud/national-partner-clouds/overview-national-partner-clouds

/// <summary>
/// Represents the GovSG Cloud environment option. Operated by a Singaporean government-owned company and aligned with Singapore's Sovereign Cloud Framework. See https://learn.microsoft.com/en-us/industry/sovereign-cloud/national-partner-clouds/overview-national-partner-clouds
/// Represents the GovSGCloud Cloud environment option. Operated by a Singaporean government-owned company and aligned with Singapore's Sovereign Cloud Framework. See https://learn.microsoft.com/en-us/industry/sovereign-cloud/national-partner-clouds/overview-national-partner-clouds
Comment on lines +15 to +18
"de" => Microsoft365Environment.DelosCloud,
"cn" => Microsoft365Environment.China,
"fr" => Microsoft365Environment.GovFr,
"sg" => Microsoft365Environment.GovSg,
"fr" => Microsoft365Environment.BleuCloud,
"sg" => Microsoft365Environment.GovSGCloud,
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 81.21%. Comparing base (63545f3) to head (0408405).
⚠️ Report is 2998 commits behind head on dev.

Files with missing lines Patch % Lines
src/sdk/PnP.Core/Services/Core/CloudManager.cs 88.88% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1787      +/-   ##
==========================================
- Coverage   82.42%   81.21%   -1.21%     
==========================================
  Files         416      637     +221     
  Lines       28590    45413   +16823     
  Branches        0     4780    +4780     
==========================================
+ Hits        23565    36882   +13317     
- Misses       5025     7119    +2094     
- Partials        0     1412    +1412     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@gautamdsheth gautamdsheth merged commit c35ebf8 into pnp:dev Jun 26, 2026
3 checks passed
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.

3 participants