I am trying to call azure function app from ASP.NET MVC applicaton (AZURE AD authentication enabled) to consume the results. Based on the details mentioned in the below link, I was able to accomplish it but in this case there are two ways how the key is passed to the in the call to ensure azure will process the request.
http://mario-loza.blogspot.com/2017/06/calling-azure-functions-from-c-with.html
Instead of the two ways mentioned in the link, can we use Managed Service Identity in the ASP.NET MVC application to access the Azure function app.
In this case I want to restrict the calls made to the azure function from an app that is already Azure AD authenticated.
Can anyone help me here by providing their inputs