Government Cloud SupportProwler CLI scans Microsoft 365 Government GCC High and Microsoft 365 operated by 21Vianet tenants with the
--region flag, see Region Selection. Microsoft 365 GCC uses the commercial endpoints and needs no flag. Microsoft 365 DoD is not available, and Prowler Cloud does not support government clouds yet.Prerequisites
Set up authentication for Microsoft 365 with the Microsoft 365 Authentication guide before starting either path:- Register an application in Microsoft Entra ID
- Grant the Microsoft Graph and external API permissions listed for the provider
- Generate an application certificate (recommended) or client secret
- Prepare PowerShell module permissions to enable every check
Prowler Cloud
Onboard Microsoft 365 using Prowler Cloud
Prowler CLI
Onboard Microsoft 365 using Prowler CLI
Prowler Cloud
Step 1: Locate the Domain ID
-
Open the Entra ID portal, then search for “Domain” or go to Identity > Settings > Domain Names.


- Select the domain that acts as the unique identifier for the Microsoft 365 account in Prowler Cloud.
Step 2: Open Prowler Cloud
- Sign in to Prowler Cloud or create an account.
-
Navigate to “Configuration” > “Providers”.

-
Click “Add Provider”.

-
Select “Microsoft 365”.

-
Add the Domain ID and an optional alias, then click “Next”.

Step 3: Choose and Provide Authentication
After the Domain ID is in place, select the app-only authentication option that matches the Microsoft Entra ID setup:
Application Certificate Authentication (Recommended)
- Enter the tenant ID, the unique identifier for the Microsoft Entra ID directory.
- Enter the application (client) ID, the identifier for the Entra application registration.
- Upload the certificate file content (Base64-encoded PFX).

Application Client Secret Authentication
- Enter the tenant ID.
- Enter the application (client) ID.
- Enter the client secret.

Step 4: Launch the Scan
-
Review the summary, then click Next.

-
Click Launch Scan to start auditing Microsoft 365.

Prowler CLI
Step 1: Confirm PowerShell Coverage
PowerShell 7.4+ keeps the full Microsoft 365 coverage. Installation options are listed in the Authentication guide.Step 2: Select an Authentication Method
Choose the matching flag from the Microsoft 365 Authentication guide:- Application Certificate Authentication (recommended):
--certificate-auth - Application Client Secret Authentication:
--sp-env-auth - Azure CLI Authentication:
--az-cli-auth - Interactive Browser Authentication:
--browser-auth
Step 3: Run the First Scan
Run a baseline scan after credentials are configured:Step 4: Enable Full Coverage
Include PowerShell module initialization to run every check:Region Selection
By default, Prowler connects to the global Microsoft 365 environment (M365Global). To target a different cloud environment, use the --region flag:
- M365Global (default): Standard commercial cloud
- M365China: China-operated cloud (21Vianet)
- M365USGovernment: US Government cloud (GCC High)
- M365Custom: Any other Microsoft cloud, with operator-supplied endpoints
M365USGovernment and M365China, Prowler requests tokens from that cloud’s sign-in endpoint and connects with the matching -ExchangeEnvironmentName (O365USGovGCCHigh, O365China) and -TeamsEnvironmentName (TeamsGCCH, TeamsChina) values. Nothing is sent to the commercial sign-in endpoint for those regions.
Only the Microsoft Teams checks for
M365USGovernment are verified against a live tenant. Exchange Online for M365USGovernment and everything for M365China are not, and Teams checks may not connect with M365China.Custom Cloud Endpoints
Added in: 5.52.0 To scan a tenant in a Microsoft cloud that is not listed above, such as a sovereign or air-gapped cloud, set the region toM365Custom and supply the cloud’s endpoints:
--m365-authority-host: Microsoft Entra ID authority host used to sign in.--m365-graph-endpoint: Microsoft Graph endpoint used to query the tenant.
M365Custom and are only valid with it. Each value is a host or an https:// URL.
With --az-cli-auth, the token comes from whichever cloud the az CLI is signed in to.
With
M365Custom, the checks that rely on the Exchange Online and Microsoft Teams PowerShell modules are skipped, because those modules need environment values that are only known for the built-in regions. The Microsoft Graph checks run against the supplied endpoints.Azure CLI authentication (
--az-cli-auth) uses the cloud the Azure CLI is signed in to. When targeting M365China or M365USGovernment, switch the Azure CLI to the matching cloud before signing in, for example az cloud set --name AzureUSGovernment or az cloud set --name AzureChinaCloud.
