Edit

Share via


Use the unified tenant configuration management APIs in Microsoft Graph (preview)

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

The unified tenant configuration management (UTCM) APIs allow administrators to control and manage configuration settings across a single workload or multiple workloads within the organization.

The tenant configuration APIs need admins to first add UTCM service principal to their tenant and then grant permissions to it. This is a pre-requisite step. Read more here: Set up authentication for unified tenant configuration management APIs

Authorization

To call the UTCM APIs in Microsoft Graph, your app needs to acquire an access token. For details about access tokens, see Get access tokens to call Microsoft Graph. Your app also needs the appropriate permissions. For more information, see Microsoft Graph permissions reference.

Tenant monitoring APIs

The tenant monitoring APIs in UTCM allow administrators to create one or more monitors, review their monitoring results, and get information about all active drifts in a tenant. Administrators can then resolve these drifts by using the relevant admin centers or other available methods.

Snapshot APIs

The snapshot APIs in UTCM allow administrators to extract the current tenant configuration settings. This process allows administrators to get a baseline that represents the desired tenant configuration and serves as the foundation for periodic tenant monitoring.

Common use cases

The following table lists common use cases for the UTCM APIs.

Use case REST resource See also
Get a baseline and create a snapshot job configurationBaseline configurationBaseline methods
List and get drifts configurationDrift configurationDrift methods
Create and manage monitors configurationMonitor configurationMonitor methods
List and get monitoring results configurationMonitoringResult configurationMonitoringResult methods
List, get, and delete snapshot jobs configurationSnapshotJob configurationSnapshotJob methods

API limits

Tenant monitoring

The following API limits apply to the configurationMonitor API:

  • You can create up to 30 configurationMonitor objects per tenant.
  • Each configurationMonitor runs at a fixed interval of six hours. A monitor cannot be configured to run at any other frequency.
  • An administrator can monitor up to 800 configuration resources per day per tenant, across all monitors. Administrators decide how to use this quota—through a single monitor or multiple monitors. Example: If an admin includes 20 transport rules and 30 conditional access policies in a monitor's baseline, that monitor tracks 50 resources per cycle. Since the monitor runs every six hours (4 cycles/day), this results in 200 monitored resources per day. Additional monitors can be created until the daily 800‑resource limit is reached.
  • When an administrator updates the baseline of an existing monitor, all previously generated monitoring results and detected drifts for that monitor are automatically deleted.

Drifts

The following API limits apply to the configurationDrift API:

  • All active drifts are retained and available for administrators to review at any time.
  • Each fixed drift is deleted 30 days after it is resolved.

Snapshot

The following API limits apply to the configurationSnapshotJob API:

  • You can extract a maximum of 20000 resources per tenant per month. This is a cumulative limit across all snapshots.
  • There is no maximum number of snapshots you can create per day or per month. You may generate as many snapshots as needed, as long as the total number of resources extracted stays within the 20,000-resource monthly quota for the tenant.
  • A maximum of 12 snapshot jobs are visible to the administrator. If the administrator wants to create more snapshot jobs, they have to delete one or more of the existing jobs.
  • A snapshot is retained for a maximum of seven days, after which it is automatically deleted.

Next steps

Use the Microsoft Graph UTCM APIs to control and manage configuration settings across one or more workloads within an organization. To learn more:

  • Explore the resources and methods that are most helpful to your scenario.
  • Try the API in the Graph Explorer.

Overview of the unified tenant configuration management APIs in Microsoft Graph (preview)

Set up authentication for unified tenant configuration management APIs

Supported workloads and resource types