Greetings & Welcome to Microsoft Q&A forum! Thanks for posting your query!
The reason you are seeing two TenantIds in your ADFPipelineRun log analytics query is because there are two different types of tenants in Azure Active Directory (AAD): the Home tenant and the Guest tenant.
When a user is invited to a different AAD tenant as a guest, they are assigned a Guest tenant ID in addition to their Home tenant ID. This allows them to access resources in the Guest tenant while still maintaining their Home tenant identity.
In the context of Azure Data Factory, if a user runs a pipeline in a different AAD tenant as a guest, the pipeline run will have two TenantIds associated with it: the Home tenant ID of the user and the Guest tenant ID of the AAD tenant where the pipeline was run.
This is why you are seeing two TenantIds in your log analytics query. You can filter on one of the TenantIds to get the results you need.
I hope this helps! Let me know if you have any further questions.