This recipe requires us to create the Azure Functions (with the V1 runtime) and the SQL Database in the same resource group. If you haven't created these, create them and come back to this recipe to continue. Here are the steps that we will be performing in this recipe:
- First, we will create a function app using Visual Studio 2017 with V1 runtime.
- Then, we will create a Logical SQL Server and a SQL database.
- Then, we will enable Managed Service Identity from the portal.
- Afterwards, we will retrieve Managed Service Identity information using the Azure CLI.
- Then, we will allow SQL Server access to the new Managed Service Identity.
- Finally, we will execute the HTTP trigger and testing.