Configuration
This page helps you build your file by sections, understand what each part does, then use a complete example at the end.
Required Sections
Section titled “Required Sections”Your config.yaml should contain these top-level sections:
microsoft_authenticationoutputcollection_config
1. Build microsoft_authentication
Section titled “1. Build microsoft_authentication”Use one of these authentication approaches.
microsoft_authentication: microsoft_tenant_id: 'your_tenant_id' microsoft_client_id: 'your_client_id' microsoft_client_secret: 'your_client_secret' microsoft_scope: 'https://graph.microsoft.com/.default' microsoft_grant_type: 'client_credentials' # cloud_deployment: 'global' # Options: global, us_gov_gcc_high, us_gov_dod, chinamicrosoft_authentication: microsoft_tenant_id: 'your_tenant_id' microsoft_client_id: 'your_client_id' microsoft_client_assertion_type: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer' microsoft_client_certificate_path: '/path/to/pem' microsoft_client_certificate_passphrase: 'my_passphrase' microsoft_scope: 'https://graph.microsoft.com/.default' microsoft_grant_type: 'client_credentials' # cloud_deployment: 'global' # Options: global, us_gov_gcc_high, us_gov_dod, chinamicrosoft_authentication: # add these only for Auto Attendant / Call Queue features microsoft_username: 'your_account' microsoft_password: 'your_password'2. Build output
Section titled “2. Build output”Enable only the destinations you need.
output: dynatrace: enabled: true dynatrace_tenant_id: 'your_tenant_id' dynatrace_api_token: 'your_token'output: splunk: enabled: true splunk_hec_url: 'https://mysplunk:8088/services/collector/event' splunk_hec_token: 'hec_token' splunk_ssl_check: falseoutput: console: enabled: true3. Build collection_config
Section titled “3. Build collection_config”This section defines scheduling, logs, license path, and enabled features.
collection_config: microsoft_max_call_duration_hours: 5 logfile_log_level: 'INFO' license_file: '/absolute/path/to/license.lic' interval_collection_minutes: 1 features: ms_teams_calls_collection: enabled: true ms_teams_issues_collection: enabled: true ms_teams_pstn_calls_collection: enabled: true ms_teams_direct_routing_calls_collection: enabled: true ms_teams_site_definition: enabled: false ms_teams_autoattendant_collection: enabled: false ms_teams_callqueue_collection: enabled: false4. Advanced Options
Section titled “4. Advanced Options”The optional advanced block exposes settings for non-standard network environments.
Custom CA Bundle (TLS-inspecting proxies)
Section titled “Custom CA Bundle (TLS-inspecting proxies)”If the collector host sits behind a TLS-inspecting proxy or has a non-standard CA chain, certificate verification may fail for Microsoft Graph API calls — including report downloads that redirect through reportsncu.office.com. Set ca_bundle_path to the absolute path of your enterprise CA bundle in PEM format:
advanced: ca_bundle_path: "/etc/ssl/certs/corporate-ca-bundle.pem"This setting applies to:
- All Microsoft Graph API calls
- Report downloads (including the
reportsncu.office.comredirect) - VAAC API calls
5. Site Enrichment
Section titled “5. Site Enrichment”6. Full Example (config.yaml)
Section titled “6. Full Example (config.yaml)”Download config.yaml or copy the template below:
microsoft_authentication: microsoft_tenant_id: "your-tenant-id" microsoft_client_id: "your-client-id" microsoft_client_secret: "your-client-secret" microsoft_grant_type: "client_credentials" # cloud_deployment: "global" # Options: global, us_gov_gcc_high, us_gov_dod, china
output: dynatrace: dynatrace_tenant_id: "your-tenant-id" dynatrace_api_token: "your-api-token" enabled: true splunk: splunk_hec_url: "https://your-splunk-url:8088/services/collector/event" splunk_hec_token: "your-hec-token" splunk_ssl_check: false enabled: false console: enabled: truecollection_config: microsoft_max_call_duration_hours: 5 logfile_log_level: "INFO" interval_collection_minutes: 5 license_file: '/absolute/path/to/your/license.lic' features: ms_teams_direct_routing_calls_collection: enabled: true ms_teams_calls_collection: enabled: true ms_teams_issues_collection: enabled: false ms_teams_pstn_calls_collection: enabled: false ms_teams_autoattendant_collection: enabled: false ms_teams_callqueue_collection: enabled: false ms_teams_site_definition: enabled: false
# advanced:# # Optional: path to a CA bundle PEM file.# # Required when running behind a TLS-inspecting proxy or using a non-standard CA chain.# # Applies to all Microsoft Graph API calls (incl. reportsncu.office.com) and VAAC API calls.# ca_bundle_path: "/etc/ssl/certs/corporate-ca-bundle.pem"7. Validate Before Production Start
Section titled “7. Validate Before Production Start”-
Check the binary and config path:
Terminal window ./ms-teams-agent.bin --version -
Run one first cycle without historical state:
Terminal window ./ms-teams-agent.bin --config ./conf/config.yaml --ignore_state -
Check logs and backend ingestion before enabling service mode.