Share via

Get data from log analytics with system assigned managed identity

Ronald Mussche 56 Reputation points
2025-08-27T09:38:05.8666667+00:00

Hi,

I have set up a connection to log analytics in ADF. I grant access to the Log analytics resource for data factory.

In a web activity it works fine and I see data in the activity, but in a copy activity I get empty results:

User's image

I am using the same authentication:

  • System-assigned managed identity

endpoint:

Microsoft Entra ID resource:

Query:

{"query":"Table |take 10"}

Hope someone can help me with this.

Regards,

Ronald

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.

0 comments No comments

Answer accepted by question author

Vinodh247-1375 43,181 Reputation points Volunteer Moderator
2025-08-27T10:33:49.2666667+00:00

Hi ,

Thanks for reaching out to Microsoft Q&A.

The image yo uhave attached shows that the 'copy activity' returns an empty tables array, while the web activity correctly returns data. This usually happens because ADF’s copy activity with REST connector expects a slightly different response format or there is a schema parsing mismatch.

If you just need the raw JSON for further processing, in copy source settings:

  • Set 'Response format' to JSON
  • Use $.tables[0].rows[*] as the collection reference

Can you try this and let me know?

Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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