An API that connects multiple Microsoft services, enabling data access and automation across platforms
Hi @Leo Yang ,
The error message indicates you are running this API against a tenant that doesn't have active Intune subscription.
Please note, the Microsoft Graph API for Intune requires an active Intune license for the tenant.
Alos note, APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".