Registering devices with Intune for management and policy enforcement
Advanced Hunting is a capability of Microsoft Defender XDR. Access to specific Advanced Hunting data depends on the Defender products licensed. To query endpoint EDR data, Microsoft Defender for Endpoint Plan 2 is required. Plan 1 provides limited endpoint visibility and does not support full Advanced Hunting for endpoints.
The MDM - intune has the capability for device query and Defender is not required for that https://dotnet.territoriali.olinfo.it/intune/advanced-analytics/device-query
For licenses that provide access to Microsoft Defender XDR (In your case Advanced Hunting) features via the Defender portal refer to https://dotnet.territoriali.olinfo.it/en-us/defender-xdr/prerequisites
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.