Basic Configuration
Configuration Parameters
Specifies the Microsoft cloud environment for authentication and API requests. This setting determines the endpoints used for Microsoft Graph and Graph Beta APIs.Valid values:
public- Microsoft Azure Public Cloud (default)dod- US Department of Defense (DoD) Cloudgcc- US Government Cloudgcchigh- US Government High Cloudchina- China Cloudex- EagleX Cloudrx- Secure Cloud (RX)
M365_CLOUD environment variable.The Microsoft 365 tenant ID for the Entra ID (formerly Azure AD) application. This GUID uniquely identifies your Entra ID instance.To find your tenant ID:Can be set using the
- Log in to the Azure portal
- Navigate to ‘Microsoft Entra ID’ (formerly Azure Active Directory)
- In the Overview page, look for ‘Tenant ID’
M365_TENANT_ID environment variable.The authentication method to use for the Entra ID application to authenticate the provider.Supported methods:
azure_developer_cli- Uses the identity logged into the Azure Developer CLI (azd)azure_cli- Uses the identity logged into the Azure CLI (az)device_code- Uses a device code flow for authenticationclient_secret- Uses a client ID and secret for authenticationclient_certificate- Uses a client certificate (.pfx) for authenticationinteractive_browser- Opens a browser for interactive loginworkload_identity- Uses workload identity federation for Kubernetes podsmanaged_identity- Uses Azure managed identity for authenticationoidc- Uses generic OpenID Connect (OIDC) authenticationoidc_github- Uses GitHub Actions-specific OIDC authenticationoidc_azure_devops- Uses Azure DevOps-specific OIDC authentication
entra_id_options block.Can be set using the M365_AUTH_METHOD environment variable.Controls the collection of telemetry data for the Microsoft 365 provider by Microsoft Services.Usage:
- Set to
trueto disable all telemetry collection - Set to
false(default) to allow telemetry collection
- Telemetry, when enabled, may include provider version, Terraform version, and general usage patterns
- No personally identifiable information (PII) or sensitive data is collected
- For development or non-sensitive environments, consider leaving telemetry enabled to support product improvement
- For production or sensitive environments, you may choose to opt out
M365_TELEMETRY_OPTOUT environment variable.Flag to enable debug mode for the provider. This setting enables additional logging and diagnostics for the provider.Can be set using the
M365_DEBUG_MODE environment variable.Configuration options for Entra ID authentication. The required attributes depend on the selected
auth_method.See Authentication Methods for detailed configuration examples for each authentication method.Configuration options for the Microsoft Graph client, including retry behavior, compression, proxy settings, and more.See Client Options for detailed configuration.
