Skip to content

hasangural/CustomResourceProvider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Creating a Azure Function for Custom Resource Providers

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 :

https://{FuncName}.azurewebsites.net/

You need to give an access to the Managed Identity which is created by Azure Function ARM template.

Requirements for Azure Function - Custom Resource Provides

  • 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.

Registering and Using Custom Resource Provider

This sample deployment creates the following two resource on the Azure.

  1. It is extended to be ARM resource called custom "ContainerProvider".
  2. It is going to call API called "startContainer"

Note: You need to update the Custom Resource Template to put your Azure Function URL.

resourceTypes": [
                    {
                        "name": "startContainer",
                        "routingType": "proxy",
                        "endpoint": "https://customprovider-func.azurewebsites.net/api/{RequestPath}"
                    }

Creating a Container Using Custom Resource Provider.

About

Collection of ARM templates and resources to get started with developing custom resource providers in ARM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors