Enable and configure Intune policy device status cache
This article explains how to enable and configure the Intune policy device status cache within the application. This cache improves performance by storing device status data for policies,and therefore reducing the need for repeated API calls.
To enable the Intune policy device status cache:
Note: As of Nerdio Manager for Enterprise v7.3, this setting is enabled by default.
From you Azure Portal, navigate to Settings > Environment variables > App settings.
Set the following variable:
Features:IntuneCache:IntunePolicyDeviceStatusCacheEnabled = True.
Once enabled, a background job will automatically start. This job periodically polls all available policies and caches the device status data.
Note: When this background job first runs, it may take a significant amount of time to complete and depends on the number of policies in the environment.
The front end UI will automatically update when the background job completes, displaying the latest status for each policy.
The background job does not stop on the first API failure. Instead, it continues attempting to retrieve reports for all policies.
Failed attempts will be logged, and the system will retry fetching those policies in subsequent runs.
You can monitor the status and results of the background job through the job logs. The logs will show the following information:
Policies that have failed.
Error messages associated with the failures.
Next scheduled retry time for each failed policy.
Additional cache behavior configurations:
You can further customize the cache using the following environment variables:
To set the duration (in minutes) that cached items remain valid:
Features:IntuneCache:PolicyDeviceStatusCacheLifetimeMinutes.To define the maximum time (in minutes) to wait for policy reports before completing the job and retrying in the next cycle:
Features:IntuneCache:PolicyReportPollingTimeoutMinutes.
Comments (0 comments)