Environment variables can be overridden by values specified directly in the provider configuration block.
Core Provider Variables
M365_CLOUD
The cloud environment to use for authentication and API requests. Valid values:public, dod, gcc, gcchigh, china, ex, rxDefault:
public
M365_TENANT_ID
The Microsoft 365 tenant ID for the Entra ID application. Format: GUID (00000000-0000-0000-0000-000000000000)Required: Yes
M365_AUTH_METHOD
The authentication method to use for the provider. Valid values:azure_developer_cli, azure_cli, device_code, client_secret, client_certificate, interactive_browser, workload_identity, managed_identity, oidc, oidc_github, oidc_azure_devopsRequired: Yes
M365_DEBUG_MODE
Enable debug mode for additional logging and diagnostics. Valid values:true, falseDefault:
false
M365_TELEMETRY_OPTOUT
Opt out of telemetry collection. Valid values:true, falseDefault:
false
Entra ID Authentication Variables
M365_CLIENT_ID
The application (client) ID for the Entra ID application. Format: GUID (00000000-0000-0000-0000-000000000000)Used with: Most authentication methods
M365_CLIENT_SECRET
The client secret value for client secret authentication. Used with:client_secret authentication methodSensitive: Yes
M365_CLIENT_CERTIFICATE_FILE_PATH
Path to the PKCS#12 (.pfx or .p12) certificate file. Used with:client_certificate authentication methodSensitive: Yes
M365_CLIENT_CERTIFICATE_PASSWORD
Password for the certificate file. Used with:client_certificate authentication methodSensitive: Yes
M365_SEND_CERTIFICATE_CHAIN
Whether to send the certificate chain in token requests. Valid values:true, falseDefault:
falseUsed with:
client_certificate authentication method
M365_USERNAME
Username for authentication. Used with:interactive_browser authentication method
M365_REDIRECT_URL
Redirect URL for interactive browser authentication. Used with:interactive_browser authentication method
M365_DISABLE_INSTANCE_DISCOVERY
Disable instance discovery for disconnected or private clouds. Valid values:true, falseDefault:
false
M365_ADDITIONALLY_ALLOWED_TENANTS
Comma-separated list of additional tenant IDs allowed for authentication.Managed Identity Variables
M365_MANAGED_IDENTITY_ID
ID of a user-assigned managed identity. Used with:managed_identity authentication methodFormat: GUID or Azure resource ID
AZURE_CLIENT_ID
Alternative variable name for managed identity client ID. Used with:managed_identity authentication method
Workload Identity Variables
AZURE_FEDERATED_TOKEN_FILE
Path to a Kubernetes service account token file. Used with:workload_identity authentication methodDefault:
/var/run/secrets/azure/tokens/azure-identity-token
OIDC Variables
M365_OIDC_TOKEN_FILE_PATH
Path to a file containing an OIDC token. Used with:oidc authentication method
M365_OIDC_REQUEST_TOKEN
The bearer token for the request to the OIDC provider. Used with:oidc, oidc_github authentication methodsSensitive: Yes
M365_OIDC_REQUEST_URL
The URL for the OIDC provider from which to request an ID token. Used with:oidc, oidc_github authentication methods
ACTIONS_ID_TOKEN_REQUEST_TOKEN
GitHub Actions-specific token variable (automatically set by GitHub). Used with:oidc_github authentication method
ACTIONS_ID_TOKEN_REQUEST_URL
GitHub Actions-specific URL variable (automatically set by GitHub). Used with:oidc_github authentication method
Azure DevOps Variables
ARM_ADO_PIPELINE_SERVICE_CONNECTION_ID
Azure DevOps service connection ID for OIDC authentication. Used with:oidc_azure_devops authentication method
ARM_OIDC_AZURE_SERVICE_CONNECTION_ID
Alternative variable name for Azure DevOps service connection ID. Used with:oidc_azure_devops authentication method
Client Options Variables
M365_ENABLE_HEADERS_INSPECTION
Enable inspection of HTTP headers. Valid values:true, falseDefault:
false
M365_ENABLE_RETRY
Enable automatic retries for failed requests. Valid values:true, falseDefault:
true
M365_MAX_RETRIES
Maximum number of retries for failed requests. Type: IntegerDefault:
3
M365_RETRY_DELAY_SECONDS
Delay between retry attempts in seconds. Type: IntegerDefault:
5
M365_ENABLE_REDIRECT
Enable automatic following of redirects. Valid values:true, falseDefault:
true
M365_MAX_REDIRECTS
Maximum number of redirects to follow. Type: IntegerDefault:
5
M365_ENABLE_COMPRESSION
Enable compression for HTTP requests and responses. Valid values:true, falseDefault:
true
M365_CUSTOM_USER_AGENT
Custom User-Agent string to be sent with requests.M365_TIMEOUT_SECONDS
Timeout for requests in seconds. Type: IntegerDefault:
300
Proxy Variables
M365_USE_PROXY
Enable the use of a proxy for network requests. Valid values:true, falseDefault:
false
M365_PROXY_URL
The URL of the proxy server. Format: Full URL including scheme (http:// or https://)M365_PROXY_USERNAME
Username for proxy authentication.M365_PROXY_PASSWORD
Password for proxy authentication. Sensitive: YesChaos Testing Variables
M365_ENABLE_CHAOS
Enable the chaos handler for testing purposes. Valid values:true, falseDefault:
false
M365_CHAOS_PERCENTAGE
Percentage of requests to apply chaos testing to. Type: Integer (0-100)Default:
10
M365_CHAOS_STATUS_CODE
HTTP status code to return for chaos-affected requests. Type: IntegerDefault: Random error code
