
Explanation:

Step 1: Purchase an Azure subscription.
Complex reporting functionality require an Azure subscription.
Step 2: Create a Log Analytics workspace.
Each Azure resource requires its own diagnostic setting. The diagnostic setting defines the following for a resource:
* One or more destinations to send the logs. Current destinations include Log Analytics workspace, Event Hubs, and Azure Storage.
* Categories of logs and metric data sent to the destinations defined in the setting. The available categories will vary for different resource types.
* Retention policy for data stored in Azure Storage.
Step 3: Add diagnostic settings.
You can create and view custom reports using the following steps:
1. Sign in to the Microsoft Endpoint Manager admin center.
2. Select Reports > Diagnostic settings add a diagnostic setting.
3. Etc.
Reference:
https://docs.microsoft.com/en-us/mem/intune/fundamentals/reports