We have an existing Function App deployed to Azure and secured with Azure AD authentication. The functions are set to anonymous access as a result, so one cannot use a function key to authenticate.
We can successfully deploy Logic App and connect to Function App via Managed Service Identity.
But while building and running a Logic App in VS Code, how can we authenticate and make calls to this deployed Function App from local development machine?
I’m going to add this as answer although I haven’t delved into it completely for your scenario. I have used this approach before for other scenarios relating to functions but not via LogicApps. I can’t see why it wouldn’t be an issue though.
So on that, you should look into the standard Azure Identity framework for VSCode/Visual Studio.
https://learn.microsoft.com/en-us/dotnet/api/overview/azure/identity-readme
This is straight from the documentation …
Theoretically, if the user you have logged into the VSCode extension with has access to run the function then I’d expect it to work.