Skip to content

Cloud Environments

Microsoft 365 is available in multiple cloud environments to meet various compliance and sovereignty requirements. All scripts in this toolkit support connecting to different cloud environments using the -Cloud parameter.

Available Environments

Cloud Description
Global Commercial Microsoft 365 (default)
GCC Government Community Cloud - US federal, state, and local government
GCCH Government Community Cloud High - DoD contractors handling CUI
DoD Department of Defense - IL5 workloads
Germany Microsoft Cloud Deutschland
China Microsoft 365 operated by 21Vianet

Environment Mapping

Each cloud environment maps to different endpoint values depending on the PowerShell module:

Cloud MS Graph Exchange Online PnP PowerShell
Global Global O365Default Production
GCC Global O365Default USGovernment
GCCH USGov O365USGovGCCHigh USGovernmentHigh
DoD USGovDoD O365USGovDoD USGovernmentDoD
Germany Germany O365GermanyCloud Germany
China China O365China China

Note that GCC (moderate) uses commercial endpoints for Microsoft Graph and Exchange Online, but has a dedicated PnP PowerShell environment.

Usage

# Connect to GCC High
.\Export-ConditionalAccessReport.ps1 -Cloud GCCH

# Connect to GCC
.\Set-GlobalSiteAdmin.ps1 -Cloud GCC -AdminUrl "https://contoso-admin.sharepoint.us" ...

# Connect to DoD
.\Export-EmailAliasReport.ps1 -Cloud DoD -Tenant "contoso.onmicrosoft.us"