This sample template deploys an Azure Function to Azure and creates essential function for Custom Resource Provider. It also creates a System Assigned Identity which is App Registration for using from Azure Function to handle authentication and authorisation process. When deployment is succeeded, you can get System Assigned Identity Id (Principal Id ) from the template output section.
Let you know that your Azure Function name will be :
You need to give an access to the Managed Identity which is created by Azure Function ARM template.
- Give access to Principal Id for Azure Subscription. At least It has to have Deployment/write permission.
- Azure Resource Manager Template will be deployed AZ.Function v2. Do not change it.
This sample deployment creates the following two resource on the Azure.
- It is extended to be ARM resource called custom "ContainerProvider".
- It is going to call API called "startContainer"
resourceTypes": [
{
"name": "startContainer",
"routingType": "proxy",
"endpoint": "https://customprovider-func.azurewebsites.net/api/{RequestPath}"
}