About Flex Consumtion Plan and enable Managed Identity in Azure Function

Micrsoft bring a new plan for Azure Function - Flex Consumtion Plan for hosting. It is Linux based Azure Functions hosting plan.

Below a quick sneek preview of the plan. And here is more details.



Pretty simple way to create Azure Function.



Created by a minute, and below my Azure Function is up and running.




Let's try to enable managed identity in Azure Function.

1. Click on your Azure Function and bring the Function dashborad
2. Click on Identity under Settings
3. On the System assigned tab, switch the status to On and click save


Next, you need to assign the roles to he Managed identity. To do so, first you browse to the respective Azure resources like Azure Storage/SQL DB/key Vault and assign the necesarry role-based-access-control (RBAC).



Let's create a key Vault first and assign the 

Afterwards, select the subscription and search your RBAC role and assigned the sale. Click on Save.



Now, go back to Functon dashboard and then Settings >> Identity and then Azure Role Assignment page. Here, you need to select the scope as key vault, subscripttion and search and assign the respective role. Click on Save. Done!!!



Comments

Popular posts from this blog

How to fix Azure DevOps error MSB4126

SharePoint Admin Center

SharePoint Framework Reference Guide