Access Intune Datawrehouse from Azure Data Factory using OData feed

Taciak, Dawid 1 Reputation point
2020-08-05T20:43:36.303+00:00

Hi, I would like to access Microsoft Intune DW from Azure Data Factory using OData feed. I know that there is existing Power BI connector to Intune, based on OData feed, but I need to have some ETL applied first.
So, I have an authentication app registered in my Azure tenant (where Intune resides) and appropriate permissions added (get_data_warehouse and get_device_compliance), admin consent granted. I have Azure Data Factory running where I am trying configure linked service of OData type. I filed in all the fields (AutoResolveIntegrationRuntime, Service URL, AAD service principal with Key, Tenant, Service principal ID and key) except 'AAD resource' (resource url). I have no idea what it is referring to. Tried everything (app's home url, redirect uri, app id uri), but connectivity test fails. Most of the times getting such error:
'Failed to create OData connection to RequestUrl Failed to get access token by using service principal. Error: invalid_resource, Error Message: AADSTS500011: The resource principal named <whatever I try> was not found in the tenant...'
Is there any documentation about ADF to Intune connection. If now, what is 'AAD resource' (url) in here???
Many thanks for any hints.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,160 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Mohsen Alam 11 Reputation points
    2022-05-05T17:30:54.977+00:00

    I was able to successfully create a connection using this value for AAD Resource: https://api.manage.microsoft.com/

    I came across this value in the sample Git repo: https://github.com/microsoft/Intune-Data-Warehouse/tree/master/Samples/CSharp

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.