简体   繁体   中英

Can you use a Managed Identity to access an Azure Function from an Azure App Service?

I have created an Azure Function that is called by a single Azure Web App I also created. I want to secure the Azure Function to only allow the Azure Web App to call it. I know how to do it by creating an App Registration and passing ClientID and Secrets. But I was wondering if I can do it by using the Azure Web App's Service Identity. That way I do not need to maintain the ClientID and Secrets. Any advice would be appreciated. Thank you.

As noted in the comments, you can use MSI for this.

As an alternative approach you could also lock it down on the network layer by integrating the App Service into a VNET and lock down incoming traffic on the Function to that one subnet of the App Service.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM