StaticSiteUserProvidedFunctionAppForStaticSiteArgs

data class StaticSiteUserProvidedFunctionAppForStaticSiteArgs(val functionAppName: Output<String>? = null, val functionAppRegion: Output<String>? = null, val functionAppResourceId: Output<String>? = null, val isForced: Output<Boolean>? = null, val kind: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<StaticSiteUserProvidedFunctionAppForStaticSiteArgs>

Static Site User Provided Function App ARM resource. Uses Azure REST API version 2024-04-01. In version 2.x of the Azure Native provider, it used API version 2022-09-01. Other available API versions: 2020-12-01, 2021-01-01, 2021-01-15, 2021-02-01, 2021-03-01, 2022-03-01, 2022-09-01, 2023-01-01, 2023-12-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native web [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Register a user provided function app with a static site

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var staticSiteUserProvidedFunctionAppForStaticSite = new AzureNative.Web.StaticSiteUserProvidedFunctionAppForStaticSite("staticSiteUserProvidedFunctionAppForStaticSite", new()
{
FunctionAppName = "testFunctionApp",
FunctionAppRegion = "West US 2",
FunctionAppResourceId = "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp",
IsForced = true,
Name = "testStaticSite0",
ResourceGroupName = "rg",
});
});
package main
import (
web "github.com/pulumi/pulumi-azure-native-sdk/web/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := web.NewStaticSiteUserProvidedFunctionAppForStaticSite(ctx, "staticSiteUserProvidedFunctionAppForStaticSite", &web.StaticSiteUserProvidedFunctionAppForStaticSiteArgs{
FunctionAppName: pulumi.String("testFunctionApp"),
FunctionAppRegion: pulumi.String("West US 2"),
FunctionAppResourceId: pulumi.String("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp"),
IsForced: pulumi.Bool(true),
Name: pulumi.String("testStaticSite0"),
ResourceGroupName: pulumi.String("rg"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.web.StaticSiteUserProvidedFunctionAppForStaticSite;
import com.pulumi.azurenative.web.StaticSiteUserProvidedFunctionAppForStaticSiteArgs;
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 staticSiteUserProvidedFunctionAppForStaticSite = new StaticSiteUserProvidedFunctionAppForStaticSite("staticSiteUserProvidedFunctionAppForStaticSite", StaticSiteUserProvidedFunctionAppForStaticSiteArgs.builder()
.functionAppName("testFunctionApp")
.functionAppRegion("West US 2")
.functionAppResourceId("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/functionRG/providers/Microsoft.Web/sites/testFunctionApp")
.isForced(true)
.name("testStaticSite0")
.resourceGroupName("rg")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:web:StaticSiteUserProvidedFunctionAppForStaticSite testFunctionApp /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/userProvidedFunctionApps/{functionAppName}

Constructors

constructor(functionAppName: Output<String>? = null, functionAppRegion: Output<String>? = null, functionAppResourceId: Output<String>? = null, isForced: Output<Boolean>? = null, kind: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null)

Properties

Link copied to clipboard
val functionAppName: Output<String>? = null

Name of the function app to register with the static site.

Link copied to clipboard
val functionAppRegion: Output<String>? = null

The region of the function app registered with the static site

Link copied to clipboard
val functionAppResourceId: Output<String>? = null

The resource id of the function app registered with the static site

Link copied to clipboard
val isForced: Output<Boolean>? = null

Specify true to force the update of the auth configuration on the function app even if an AzureStaticWebApps provider is already configured on the function app. The default is false.

Link copied to clipboard
val kind: Output<String>? = null

Kind of resource.

Link copied to clipboard
val name: Output<String>? = null

Name of the static site.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Name of the resource group to which the resource belongs.

Functions

Link copied to clipboard
open override fun toJava(): StaticSiteUserProvidedFunctionAppForStaticSiteArgs