1. Packages
  2. Azure Classic
  3. API Docs
  4. appservice
  5. StaticWebAppFunctionAppRegistration

We recommend using Azure Native.

Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi

azure.appservice.StaticWebAppFunctionAppRegistration

Explore with Pulumi AI

Manages an App Service Static Web App Function App Registration.

NOTE: This resource registers the specified Function App to the Production build of the Static Web App.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleStaticWebApp = new azure.appservice.StaticWebApp("example", {
    name: "example",
    resourceGroupName: example.name,
    location: example.location,
});
const exampleAccount = new azure.storage.Account("example", {
    name: "examplesstorageacc",
    resourceGroupName: example.name,
    location: example.location,
    accountTier: "Standard",
    accountReplicationType: "LRS",
});
const exampleServicePlan = new azure.appservice.ServicePlan("example", {
    name: "example-service-plan",
    location: example.location,
    resourceGroupName: example.name,
    osType: "Linux",
    skuName: "S1",
});
const exampleLinuxFunctionApp = new azure.appservice.LinuxFunctionApp("example", {
    name: "example-function-app",
    location: example.location,
    resourceGroupName: example.name,
    servicePlanId: exampleServicePlan.id,
    storageAccountName: exampleAccount.name,
    storageAccountAccessKey: exampleAccount.primaryAccessKey,
    siteConfig: {},
});
const exampleStaticWebAppFunctionAppRegistration = new azure.appservice.StaticWebAppFunctionAppRegistration("example", {
    staticWebAppId: exampleStaticWebApp.id,
    functionAppId: exampleLinuxFunctionApp.id,
});
Copy
import pulumi
import pulumi_azure as azure

example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_static_web_app = azure.appservice.StaticWebApp("example",
    name="example",
    resource_group_name=example.name,
    location=example.location)
example_account = azure.storage.Account("example",
    name="examplesstorageacc",
    resource_group_name=example.name,
    location=example.location,
    account_tier="Standard",
    account_replication_type="LRS")
example_service_plan = azure.appservice.ServicePlan("example",
    name="example-service-plan",
    location=example.location,
    resource_group_name=example.name,
    os_type="Linux",
    sku_name="S1")
example_linux_function_app = azure.appservice.LinuxFunctionApp("example",
    name="example-function-app",
    location=example.location,
    resource_group_name=example.name,
    service_plan_id=example_service_plan.id,
    storage_account_name=example_account.name,
    storage_account_access_key=example_account.primary_access_key,
    site_config={})
example_static_web_app_function_app_registration = azure.appservice.StaticWebAppFunctionAppRegistration("example",
    static_web_app_id=example_static_web_app.id,
    function_app_id=example_linux_function_app.id)
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleStaticWebApp, err := appservice.NewStaticWebApp(ctx, "example", &appservice.StaticWebAppArgs{
			Name:              pulumi.String("example"),
			ResourceGroupName: example.Name,
			Location:          example.Location,
		})
		if err != nil {
			return err
		}
		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
			Name:                   pulumi.String("examplesstorageacc"),
			ResourceGroupName:      example.Name,
			Location:               example.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("LRS"),
		})
		if err != nil {
			return err
		}
		exampleServicePlan, err := appservice.NewServicePlan(ctx, "example", &appservice.ServicePlanArgs{
			Name:              pulumi.String("example-service-plan"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			OsType:            pulumi.String("Linux"),
			SkuName:           pulumi.String("S1"),
		})
		if err != nil {
			return err
		}
		exampleLinuxFunctionApp, err := appservice.NewLinuxFunctionApp(ctx, "example", &appservice.LinuxFunctionAppArgs{
			Name:                    pulumi.String("example-function-app"),
			Location:                example.Location,
			ResourceGroupName:       example.Name,
			ServicePlanId:           exampleServicePlan.ID(),
			StorageAccountName:      exampleAccount.Name,
			StorageAccountAccessKey: exampleAccount.PrimaryAccessKey,
			SiteConfig:              &appservice.LinuxFunctionAppSiteConfigArgs{},
		})
		if err != nil {
			return err
		}
		_, err = appservice.NewStaticWebAppFunctionAppRegistration(ctx, "example", &appservice.StaticWebAppFunctionAppRegistrationArgs{
			StaticWebAppId: exampleStaticWebApp.ID(),
			FunctionAppId:  exampleLinuxFunctionApp.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });

    var exampleStaticWebApp = new Azure.AppService.StaticWebApp("example", new()
    {
        Name = "example",
        ResourceGroupName = example.Name,
        Location = example.Location,
    });

    var exampleAccount = new Azure.Storage.Account("example", new()
    {
        Name = "examplesstorageacc",
        ResourceGroupName = example.Name,
        Location = example.Location,
        AccountTier = "Standard",
        AccountReplicationType = "LRS",
    });

    var exampleServicePlan = new Azure.AppService.ServicePlan("example", new()
    {
        Name = "example-service-plan",
        Location = example.Location,
        ResourceGroupName = example.Name,
        OsType = "Linux",
        SkuName = "S1",
    });

    var exampleLinuxFunctionApp = new Azure.AppService.LinuxFunctionApp("example", new()
    {
        Name = "example-function-app",
        Location = example.Location,
        ResourceGroupName = example.Name,
        ServicePlanId = exampleServicePlan.Id,
        StorageAccountName = exampleAccount.Name,
        StorageAccountAccessKey = exampleAccount.PrimaryAccessKey,
        SiteConfig = null,
    });

    var exampleStaticWebAppFunctionAppRegistration = new Azure.AppService.StaticWebAppFunctionAppRegistration("example", new()
    {
        StaticWebAppId = exampleStaticWebApp.Id,
        FunctionAppId = exampleLinuxFunctionApp.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.appservice.StaticWebApp;
import com.pulumi.azure.appservice.StaticWebAppArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.appservice.ServicePlan;
import com.pulumi.azure.appservice.ServicePlanArgs;
import com.pulumi.azure.appservice.LinuxFunctionApp;
import com.pulumi.azure.appservice.LinuxFunctionAppArgs;
import com.pulumi.azure.appservice.inputs.LinuxFunctionAppSiteConfigArgs;
import com.pulumi.azure.appservice.StaticWebAppFunctionAppRegistration;
import com.pulumi.azure.appservice.StaticWebAppFunctionAppRegistrationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());

        var exampleStaticWebApp = new StaticWebApp("exampleStaticWebApp", StaticWebAppArgs.builder()
            .name("example")
            .resourceGroupName(example.name())
            .location(example.location())
            .build());

        var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
            .name("examplesstorageacc")
            .resourceGroupName(example.name())
            .location(example.location())
            .accountTier("Standard")
            .accountReplicationType("LRS")
            .build());

        var exampleServicePlan = new ServicePlan("exampleServicePlan", ServicePlanArgs.builder()
            .name("example-service-plan")
            .location(example.location())
            .resourceGroupName(example.name())
            .osType("Linux")
            .skuName("S1")
            .build());

        var exampleLinuxFunctionApp = new LinuxFunctionApp("exampleLinuxFunctionApp", LinuxFunctionAppArgs.builder()
            .name("example-function-app")
            .location(example.location())
            .resourceGroupName(example.name())
            .servicePlanId(exampleServicePlan.id())
            .storageAccountName(exampleAccount.name())
            .storageAccountAccessKey(exampleAccount.primaryAccessKey())
            .siteConfig()
            .build());

        var exampleStaticWebAppFunctionAppRegistration = new StaticWebAppFunctionAppRegistration("exampleStaticWebAppFunctionAppRegistration", StaticWebAppFunctionAppRegistrationArgs.builder()
            .staticWebAppId(exampleStaticWebApp.id())
            .functionAppId(exampleLinuxFunctionApp.id())
            .build());

    }
}
Copy
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  exampleStaticWebApp:
    type: azure:appservice:StaticWebApp
    name: example
    properties:
      name: example
      resourceGroupName: ${example.name}
      location: ${example.location}
  exampleAccount:
    type: azure:storage:Account
    name: example
    properties:
      name: examplesstorageacc
      resourceGroupName: ${example.name}
      location: ${example.location}
      accountTier: Standard
      accountReplicationType: LRS
  exampleServicePlan:
    type: azure:appservice:ServicePlan
    name: example
    properties:
      name: example-service-plan
      location: ${example.location}
      resourceGroupName: ${example.name}
      osType: Linux
      skuName: S1
  exampleLinuxFunctionApp:
    type: azure:appservice:LinuxFunctionApp
    name: example
    properties:
      name: example-function-app
      location: ${example.location}
      resourceGroupName: ${example.name}
      servicePlanId: ${exampleServicePlan.id}
      storageAccountName: ${exampleAccount.name}
      storageAccountAccessKey: ${exampleAccount.primaryAccessKey}
      siteConfig: {}
  exampleStaticWebAppFunctionAppRegistration:
    type: azure:appservice:StaticWebAppFunctionAppRegistration
    name: example
    properties:
      staticWebAppId: ${exampleStaticWebApp.id}
      functionAppId: ${exampleLinuxFunctionApp.id}
Copy

Create StaticWebAppFunctionAppRegistration Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new StaticWebAppFunctionAppRegistration(name: string, args: StaticWebAppFunctionAppRegistrationArgs, opts?: CustomResourceOptions);
@overload
def StaticWebAppFunctionAppRegistration(resource_name: str,
                                        args: StaticWebAppFunctionAppRegistrationArgs,
                                        opts: Optional[ResourceOptions] = None)

@overload
def StaticWebAppFunctionAppRegistration(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        function_app_id: Optional[str] = None,
                                        static_web_app_id: Optional[str] = None)
func NewStaticWebAppFunctionAppRegistration(ctx *Context, name string, args StaticWebAppFunctionAppRegistrationArgs, opts ...ResourceOption) (*StaticWebAppFunctionAppRegistration, error)
public StaticWebAppFunctionAppRegistration(string name, StaticWebAppFunctionAppRegistrationArgs args, CustomResourceOptions? opts = null)
public StaticWebAppFunctionAppRegistration(String name, StaticWebAppFunctionAppRegistrationArgs args)
public StaticWebAppFunctionAppRegistration(String name, StaticWebAppFunctionAppRegistrationArgs args, CustomResourceOptions options)
type: azure:appservice:StaticWebAppFunctionAppRegistration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. StaticWebAppFunctionAppRegistrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. StaticWebAppFunctionAppRegistrationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. StaticWebAppFunctionAppRegistrationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. StaticWebAppFunctionAppRegistrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. StaticWebAppFunctionAppRegistrationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var staticWebAppFunctionAppRegistrationResource = new Azure.AppService.StaticWebAppFunctionAppRegistration("staticWebAppFunctionAppRegistrationResource", new()
{
    FunctionAppId = "string",
    StaticWebAppId = "string",
});
Copy
example, err := appservice.NewStaticWebAppFunctionAppRegistration(ctx, "staticWebAppFunctionAppRegistrationResource", &appservice.StaticWebAppFunctionAppRegistrationArgs{
	FunctionAppId:  pulumi.String("string"),
	StaticWebAppId: pulumi.String("string"),
})
Copy
var staticWebAppFunctionAppRegistrationResource = new StaticWebAppFunctionAppRegistration("staticWebAppFunctionAppRegistrationResource", StaticWebAppFunctionAppRegistrationArgs.builder()
    .functionAppId("string")
    .staticWebAppId("string")
    .build());
Copy
static_web_app_function_app_registration_resource = azure.appservice.StaticWebAppFunctionAppRegistration("staticWebAppFunctionAppRegistrationResource",
    function_app_id="string",
    static_web_app_id="string")
Copy
const staticWebAppFunctionAppRegistrationResource = new azure.appservice.StaticWebAppFunctionAppRegistration("staticWebAppFunctionAppRegistrationResource", {
    functionAppId: "string",
    staticWebAppId: "string",
});
Copy
type: azure:appservice:StaticWebAppFunctionAppRegistration
properties:
    functionAppId: string
    staticWebAppId: string
Copy

StaticWebAppFunctionAppRegistration Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The StaticWebAppFunctionAppRegistration resource accepts the following input properties:

FunctionAppId
This property is required.
Changes to this property will trigger replacement.
string

The ID of a Linux or Windows Function App to connect to the Static Web App as a Backend. Changing this forces a new resource to be created.

NOTE: Only one Function App can be connected to a Static Web App. Multiple Function Apps are not currently supported.

NOTE: Connecting a Function App resource to a Static Web App resource updates the Function App to use AuthV2 and configures the azure_static_web_app_v2 which may need to be accounted for by the use of ignore_changes depending on the existing auth_settings_v2 configuration of the target Function App.

StaticWebAppId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Static Web App to register the Function App to as a backend. Changing this forces a new resource to be created.
FunctionAppId
This property is required.
Changes to this property will trigger replacement.
string

The ID of a Linux or Windows Function App to connect to the Static Web App as a Backend. Changing this forces a new resource to be created.

NOTE: Only one Function App can be connected to a Static Web App. Multiple Function Apps are not currently supported.

NOTE: Connecting a Function App resource to a Static Web App resource updates the Function App to use AuthV2 and configures the azure_static_web_app_v2 which may need to be accounted for by the use of ignore_changes depending on the existing auth_settings_v2 configuration of the target Function App.

StaticWebAppId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Static Web App to register the Function App to as a backend. Changing this forces a new resource to be created.
functionAppId
This property is required.
Changes to this property will trigger replacement.
String

The ID of a Linux or Windows Function App to connect to the Static Web App as a Backend. Changing this forces a new resource to be created.

NOTE: Only one Function App can be connected to a Static Web App. Multiple Function Apps are not currently supported.

NOTE: Connecting a Function App resource to a Static Web App resource updates the Function App to use AuthV2 and configures the azure_static_web_app_v2 which may need to be accounted for by the use of ignore_changes depending on the existing auth_settings_v2 configuration of the target Function App.

staticWebAppId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Static Web App to register the Function App to as a backend. Changing this forces a new resource to be created.
functionAppId
This property is required.
Changes to this property will trigger replacement.
string

The ID of a Linux or Windows Function App to connect to the Static Web App as a Backend. Changing this forces a new resource to be created.

NOTE: Only one Function App can be connected to a Static Web App. Multiple Function Apps are not currently supported.

NOTE: Connecting a Function App resource to a Static Web App resource updates the Function App to use AuthV2 and configures the azure_static_web_app_v2 which may need to be accounted for by the use of ignore_changes depending on the existing auth_settings_v2 configuration of the target Function App.

staticWebAppId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the Static Web App to register the Function App to as a backend. Changing this forces a new resource to be created.
function_app_id
This property is required.
Changes to this property will trigger replacement.
str

The ID of a Linux or Windows Function App to connect to the Static Web App as a Backend. Changing this forces a new resource to be created.

NOTE: Only one Function App can be connected to a Static Web App. Multiple Function Apps are not currently supported.

NOTE: Connecting a Function App resource to a Static Web App resource updates the Function App to use AuthV2 and configures the azure_static_web_app_v2 which may need to be accounted for by the use of ignore_changes depending on the existing auth_settings_v2 configuration of the target Function App.

static_web_app_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the Static Web App to register the Function App to as a backend. Changing this forces a new resource to be created.
functionAppId
This property is required.
Changes to this property will trigger replacement.
String

The ID of a Linux or Windows Function App to connect to the Static Web App as a Backend. Changing this forces a new resource to be created.

NOTE: Only one Function App can be connected to a Static Web App. Multiple Function Apps are not currently supported.

NOTE: Connecting a Function App resource to a Static Web App resource updates the Function App to use AuthV2 and configures the azure_static_web_app_v2 which may need to be accounted for by the use of ignore_changes depending on the existing auth_settings_v2 configuration of the target Function App.

staticWebAppId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the Static Web App to register the Function App to as a backend. Changing this forces a new resource to be created.

Outputs

All input properties are implicitly available as output properties. Additionally, the StaticWebAppFunctionAppRegistration resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing StaticWebAppFunctionAppRegistration Resource

Get an existing StaticWebAppFunctionAppRegistration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: StaticWebAppFunctionAppRegistrationState, opts?: CustomResourceOptions): StaticWebAppFunctionAppRegistration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        function_app_id: Optional[str] = None,
        static_web_app_id: Optional[str] = None) -> StaticWebAppFunctionAppRegistration
func GetStaticWebAppFunctionAppRegistration(ctx *Context, name string, id IDInput, state *StaticWebAppFunctionAppRegistrationState, opts ...ResourceOption) (*StaticWebAppFunctionAppRegistration, error)
public static StaticWebAppFunctionAppRegistration Get(string name, Input<string> id, StaticWebAppFunctionAppRegistrationState? state, CustomResourceOptions? opts = null)
public static StaticWebAppFunctionAppRegistration get(String name, Output<String> id, StaticWebAppFunctionAppRegistrationState state, CustomResourceOptions options)
resources:  _:    type: azure:appservice:StaticWebAppFunctionAppRegistration    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
FunctionAppId Changes to this property will trigger replacement. string

The ID of a Linux or Windows Function App to connect to the Static Web App as a Backend. Changing this forces a new resource to be created.

NOTE: Only one Function App can be connected to a Static Web App. Multiple Function Apps are not currently supported.

NOTE: Connecting a Function App resource to a Static Web App resource updates the Function App to use AuthV2 and configures the azure_static_web_app_v2 which may need to be accounted for by the use of ignore_changes depending on the existing auth_settings_v2 configuration of the target Function App.

StaticWebAppId Changes to this property will trigger replacement. string
The ID of the Static Web App to register the Function App to as a backend. Changing this forces a new resource to be created.
FunctionAppId Changes to this property will trigger replacement. string

The ID of a Linux or Windows Function App to connect to the Static Web App as a Backend. Changing this forces a new resource to be created.

NOTE: Only one Function App can be connected to a Static Web App. Multiple Function Apps are not currently supported.

NOTE: Connecting a Function App resource to a Static Web App resource updates the Function App to use AuthV2 and configures the azure_static_web_app_v2 which may need to be accounted for by the use of ignore_changes depending on the existing auth_settings_v2 configuration of the target Function App.

StaticWebAppId Changes to this property will trigger replacement. string
The ID of the Static Web App to register the Function App to as a backend. Changing this forces a new resource to be created.
functionAppId Changes to this property will trigger replacement. String

The ID of a Linux or Windows Function App to connect to the Static Web App as a Backend. Changing this forces a new resource to be created.

NOTE: Only one Function App can be connected to a Static Web App. Multiple Function Apps are not currently supported.

NOTE: Connecting a Function App resource to a Static Web App resource updates the Function App to use AuthV2 and configures the azure_static_web_app_v2 which may need to be accounted for by the use of ignore_changes depending on the existing auth_settings_v2 configuration of the target Function App.

staticWebAppId Changes to this property will trigger replacement. String
The ID of the Static Web App to register the Function App to as a backend. Changing this forces a new resource to be created.
functionAppId Changes to this property will trigger replacement. string

The ID of a Linux or Windows Function App to connect to the Static Web App as a Backend. Changing this forces a new resource to be created.

NOTE: Only one Function App can be connected to a Static Web App. Multiple Function Apps are not currently supported.

NOTE: Connecting a Function App resource to a Static Web App resource updates the Function App to use AuthV2 and configures the azure_static_web_app_v2 which may need to be accounted for by the use of ignore_changes depending on the existing auth_settings_v2 configuration of the target Function App.

staticWebAppId Changes to this property will trigger replacement. string
The ID of the Static Web App to register the Function App to as a backend. Changing this forces a new resource to be created.
function_app_id Changes to this property will trigger replacement. str

The ID of a Linux or Windows Function App to connect to the Static Web App as a Backend. Changing this forces a new resource to be created.

NOTE: Only one Function App can be connected to a Static Web App. Multiple Function Apps are not currently supported.

NOTE: Connecting a Function App resource to a Static Web App resource updates the Function App to use AuthV2 and configures the azure_static_web_app_v2 which may need to be accounted for by the use of ignore_changes depending on the existing auth_settings_v2 configuration of the target Function App.

static_web_app_id Changes to this property will trigger replacement. str
The ID of the Static Web App to register the Function App to as a backend. Changing this forces a new resource to be created.
functionAppId Changes to this property will trigger replacement. String

The ID of a Linux or Windows Function App to connect to the Static Web App as a Backend. Changing this forces a new resource to be created.

NOTE: Only one Function App can be connected to a Static Web App. Multiple Function Apps are not currently supported.

NOTE: Connecting a Function App resource to a Static Web App resource updates the Function App to use AuthV2 and configures the azure_static_web_app_v2 which may need to be accounted for by the use of ignore_changes depending on the existing auth_settings_v2 configuration of the target Function App.

staticWebAppId Changes to this property will trigger replacement. String
The ID of the Static Web App to register the Function App to as a backend. Changing this forces a new resource to be created.

Import

Static Web App Function App Registration can be imported using the resource id, e.g.

$ pulumi import azure:appservice/staticWebAppFunctionAppRegistration:StaticWebAppFunctionAppRegistration example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.Web/staticSites/my-static-site1/userProvidedFunctionApps/myFunctionApp
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.