Microsoft.Web sites/functions 2020-12-01

Template format

To create a Microsoft.Web/sites/functions resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.Web/sites/functions",
  "apiVersion": "2020-12-01",
  "kind": "string",
  "properties": {
    "function_app_id": "string",
    "script_root_path_href": "string",
    "script_href": "string",
    "config_href": "string",
    "test_data_href": "string",
    "secrets_file_href": "string",
    "href": "string",
    "config": {},
    "files": {},
    "test_data": "string",
    "invoke_url_template": "string",
    "language": "string",
    "isDisabled": "boolean"
  },
  "resources": []
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.Web/sites/functions object

Note

In Bicep, type and apiVersion are specified in the first line of the resource declaration. Use the format <type>@<apiVersion>. Don't set those properties in the resource body.

Name Type Required Value
name string Yes Function name.
type enum Yes For JSON -functions
-or-
Microsoft.Web/sites/functions

See Set name and type for child resources.
apiVersion enum Yes For JSON - 2020-12-01
kind string No Kind of resource.
properties object Yes FunctionEnvelope resource specific properties - FunctionEnvelopeProperties object
resources array No keys

FunctionEnvelopeProperties object

Name Type Required Value
function_app_id string No Function App ID.
script_root_path_href string No Script root path URI.
script_href string No Script URI.
config_href string No Config URI.
test_data_href string No Test data URI.
secrets_file_href string No Secrets file URI.
href string No Function URI.
config object No Config information.
files object No File list.
test_data string No Test data used when testing via the Azure Portal.
invoke_url_template string No The invocation URL
language string No The function language
isDisabled boolean No Gets or sets a value indicating whether the function is disabled

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Front Door Premium with Azure Functions and Private Link

Deploy to Azure
This template creates a Front Door Premium (Preview) and an Azure Functions app, and uses a private endpoint for Front Door to send traffic to the function app.
Front Door Standard/Premium with Azure Functions origin

Deploy to Azure
This template creates a Front Door Standard/Premium (Preview), an Azure Functions app, and configures the function app to validate that traffic has come through the Front Door origin.
Azure function with transform capabilites

Deploy to Azure
Creates a webhook based C# azure function with transform capabilites to use in logic apps integration scenarios