Hello,
We have a resource group on our tenant that has an Azure function app registered under our tenant. The authentication method that we need to use is the managed identity which should access Dataverse data on a different customer tenant.
The main purpose of this functionality is to have the azure function code on our tenant (not the customer tenant) and be able to manage the cost that will be consumed based on the number of transactions.
So basically when the customer sends us the request it will automatically trigger our Azure function and perform the job.
We have already seen some blog posts that are very straightforward where they register the Azure function on the current tenant using managed identity but we didn't find an approach or example that shows us how to implement it with multi-tenant using Dataverse:
https://www.vodovnik.com/2023/01/12/interacting-with-dataverse-data-from-azure-c/
https://svrooij.io/2022/12/16/poc-multi-tenant-managed-identity/
https://svrooij.io/2022/06/21/managed-identity-multi-tenant-app/
Could you please advise what is the most effective approach to achieving the above?
Any help is greatly appreciated.
Best regards,
EBMRay