Durable Function calling (non-durable) Azure Function in different Function App

%3CLINGO-SUB%20id%3D%22lingo-sub-1833707%22%20slang%3D%22en-US%22%3EDurable%20Function%20calling%20(non-durable)%20Azure%20Function%20in%20different%20Function%20App%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1833707%22%20slang%3D%22en-US%22%3E%3CP%3EWhat%20is%20the%20recommended%20approach%20for%20a%20Durable%20Function%20(App1)%20to%20call%20a%20(non-durable)%20Azure%20Function%20(App2)%20in%20different%20Function%20App%20when%20App2%20has%20AAD%20authentication%20enabled%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1833723%22%20slang%3D%22en-US%22%3ERe%3A%20Durable%20Function%20calling%20(non-durable)%20Azure%20Function%20in%20different%20Function%20App%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1833723%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F850593%22%20target%3D%22_blank%22%3E%40BobbyJ10%3C%2FA%3E%26nbsp%3BIf%20you%20have%20AAD%20authentication%20enabled%2C%20the%20best%20way%20to%20authenticate%20is%20using%20the%20managed%20identity%20of%20the%20function.%20More%20info%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fapp-service%2Foverview-managed-identity%3Ftabs%3Ddotnet%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fapp-service%2Foverview-managed-identity%3Ftabs%3Ddotnet%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1833771%22%20slang%3D%22en-US%22%3ERe%3A%20Durable%20Function%20calling%20(non-durable)%20Azure%20Function%20in%20different%20Function%20App%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1833771%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F196732%22%20target%3D%22_blank%22%3E%40Nills%20Franssens%3C%2FA%3EAwesome%20thank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

What is the recommended approach for a Durable Function (App1) to call a (non-durable) Azure Function (App2) in different Function App when App2 has AAD authentication enabled?

3 Replies

@BobbyJ10 If you have AAD authentication enabled, the best way to authenticate is using the managed identity of the function. More info here: https://docs.microsoft.com/en-us/azure/app-service/overview-managed-identity?tabs=dotnet 

Yep managed identity should work. You can make http calls with managed identity from a Durable Functions orchestrator with the call http feature: https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-http-features?tabs=...