1. Packages
  2. Azure Native v2
  3. API Docs
  4. web
  5. StaticSiteLinkedBackendForBuild
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.web.StaticSiteLinkedBackendForBuild

Explore with Pulumi AI

Static Site Linked Backend ARM resource. Azure REST API version: 2022-09-01. Prior API version in Azure Native 1.x: 2022-03-01.

Other available API versions: 2023-01-01, 2023-12-01, 2024-04-01.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var staticSiteLinkedBackendForBuild = new AzureNative.Web.StaticSiteLinkedBackendForBuild("staticSiteLinkedBackendForBuild", new()
    {
        BackendResourceId = "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend",
        EnvironmentName = "default",
        LinkedBackendName = "testBackend",
        Name = "testStaticSite0",
        Region = "West US 2",
        ResourceGroupName = "rg",
    });

});
Copy
package main

import (
	web "github.com/pulumi/pulumi-azure-native-sdk/web/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := web.NewStaticSiteLinkedBackendForBuild(ctx, "staticSiteLinkedBackendForBuild", &web.StaticSiteLinkedBackendForBuildArgs{
			BackendResourceId: pulumi.String("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend"),
			EnvironmentName:   pulumi.String("default"),
			LinkedBackendName: pulumi.String("testBackend"),
			Name:              pulumi.String("testStaticSite0"),
			Region:            pulumi.String("West US 2"),
			ResourceGroupName: pulumi.String("rg"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.web.StaticSiteLinkedBackendForBuild;
import com.pulumi.azurenative.web.StaticSiteLinkedBackendForBuildArgs;
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 staticSiteLinkedBackendForBuild = new StaticSiteLinkedBackendForBuild("staticSiteLinkedBackendForBuild", StaticSiteLinkedBackendForBuildArgs.builder()
            .backendResourceId("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend")
            .environmentName("default")
            .linkedBackendName("testBackend")
            .name("testStaticSite0")
            .region("West US 2")
            .resourceGroupName("rg")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const staticSiteLinkedBackendForBuild = new azure_native.web.StaticSiteLinkedBackendForBuild("staticSiteLinkedBackendForBuild", {
    backendResourceId: "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend",
    environmentName: "default",
    linkedBackendName: "testBackend",
    name: "testStaticSite0",
    region: "West US 2",
    resourceGroupName: "rg",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

static_site_linked_backend_for_build = azure_native.web.StaticSiteLinkedBackendForBuild("staticSiteLinkedBackendForBuild",
    backend_resource_id="/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend",
    environment_name="default",
    linked_backend_name="testBackend",
    name="testStaticSite0",
    region="West US 2",
    resource_group_name="rg")
Copy
resources:
  staticSiteLinkedBackendForBuild:
    type: azure-native:web:StaticSiteLinkedBackendForBuild
    properties:
      backendResourceId: /subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend
      environmentName: default
      linkedBackendName: testBackend
      name: testStaticSite0
      region: West US 2
      resourceGroupName: rg
Copy

Create StaticSiteLinkedBackendForBuild Resource

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

Constructor syntax

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

@overload
def StaticSiteLinkedBackendForBuild(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    environment_name: Optional[str] = None,
                                    name: Optional[str] = None,
                                    resource_group_name: Optional[str] = None,
                                    backend_resource_id: Optional[str] = None,
                                    kind: Optional[str] = None,
                                    linked_backend_name: Optional[str] = None,
                                    region: Optional[str] = None)
func NewStaticSiteLinkedBackendForBuild(ctx *Context, name string, args StaticSiteLinkedBackendForBuildArgs, opts ...ResourceOption) (*StaticSiteLinkedBackendForBuild, error)
public StaticSiteLinkedBackendForBuild(string name, StaticSiteLinkedBackendForBuildArgs args, CustomResourceOptions? opts = null)
public StaticSiteLinkedBackendForBuild(String name, StaticSiteLinkedBackendForBuildArgs args)
public StaticSiteLinkedBackendForBuild(String name, StaticSiteLinkedBackendForBuildArgs args, CustomResourceOptions options)
type: azure-native:web:StaticSiteLinkedBackendForBuild
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. StaticSiteLinkedBackendForBuildArgs
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. StaticSiteLinkedBackendForBuildArgs
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. StaticSiteLinkedBackendForBuildArgs
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. StaticSiteLinkedBackendForBuildArgs
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. StaticSiteLinkedBackendForBuildArgs
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 staticSiteLinkedBackendForBuildResource = new AzureNative.Web.StaticSiteLinkedBackendForBuild("staticSiteLinkedBackendForBuildResource", new()
{
    EnvironmentName = "string",
    Name = "string",
    ResourceGroupName = "string",
    BackendResourceId = "string",
    Kind = "string",
    LinkedBackendName = "string",
    Region = "string",
});
Copy
example, err := web.NewStaticSiteLinkedBackendForBuild(ctx, "staticSiteLinkedBackendForBuildResource", &web.StaticSiteLinkedBackendForBuildArgs{
	EnvironmentName:   "string",
	Name:              "string",
	ResourceGroupName: "string",
	BackendResourceId: "string",
	Kind:              "string",
	LinkedBackendName: "string",
	Region:            "string",
})
Copy
var staticSiteLinkedBackendForBuildResource = new StaticSiteLinkedBackendForBuild("staticSiteLinkedBackendForBuildResource", StaticSiteLinkedBackendForBuildArgs.builder()
    .environmentName("string")
    .name("string")
    .resourceGroupName("string")
    .backendResourceId("string")
    .kind("string")
    .linkedBackendName("string")
    .region("string")
    .build());
Copy
static_site_linked_backend_for_build_resource = azure_native.web.StaticSiteLinkedBackendForBuild("staticSiteLinkedBackendForBuildResource",
    environment_name=string,
    name=string,
    resource_group_name=string,
    backend_resource_id=string,
    kind=string,
    linked_backend_name=string,
    region=string)
Copy
const staticSiteLinkedBackendForBuildResource = new azure_native.web.StaticSiteLinkedBackendForBuild("staticSiteLinkedBackendForBuildResource", {
    environmentName: "string",
    name: "string",
    resourceGroupName: "string",
    backendResourceId: "string",
    kind: "string",
    linkedBackendName: "string",
    region: "string",
});
Copy
type: azure-native:web:StaticSiteLinkedBackendForBuild
properties:
    backendResourceId: string
    environmentName: string
    kind: string
    linkedBackendName: string
    name: string
    region: string
    resourceGroupName: string
Copy

StaticSiteLinkedBackendForBuild 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 StaticSiteLinkedBackendForBuild resource accepts the following input properties:

EnvironmentName
This property is required.
Changes to this property will trigger replacement.
string
The stage site identifier
Name
This property is required.
Changes to this property will trigger replacement.
string
Name of the static site
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group to which the resource belongs.
BackendResourceId string
The resource id of the backend linked to the static site
Kind string
Kind of resource.
LinkedBackendName Changes to this property will trigger replacement. string
Name of the backend to link to the static site
Region string
The region of the backend linked to the static site
EnvironmentName
This property is required.
Changes to this property will trigger replacement.
string
The stage site identifier
Name
This property is required.
Changes to this property will trigger replacement.
string
Name of the static site
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group to which the resource belongs.
BackendResourceId string
The resource id of the backend linked to the static site
Kind string
Kind of resource.
LinkedBackendName Changes to this property will trigger replacement. string
Name of the backend to link to the static site
Region string
The region of the backend linked to the static site
environmentName
This property is required.
Changes to this property will trigger replacement.
String
The stage site identifier
name
This property is required.
Changes to this property will trigger replacement.
String
Name of the static site
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group to which the resource belongs.
backendResourceId String
The resource id of the backend linked to the static site
kind String
Kind of resource.
linkedBackendName Changes to this property will trigger replacement. String
Name of the backend to link to the static site
region String
The region of the backend linked to the static site
environmentName
This property is required.
Changes to this property will trigger replacement.
string
The stage site identifier
name
This property is required.
Changes to this property will trigger replacement.
string
Name of the static site
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group to which the resource belongs.
backendResourceId string
The resource id of the backend linked to the static site
kind string
Kind of resource.
linkedBackendName Changes to this property will trigger replacement. string
Name of the backend to link to the static site
region string
The region of the backend linked to the static site
environment_name
This property is required.
Changes to this property will trigger replacement.
str
The stage site identifier
name
This property is required.
Changes to this property will trigger replacement.
str
Name of the static site
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the resource group to which the resource belongs.
backend_resource_id str
The resource id of the backend linked to the static site
kind str
Kind of resource.
linked_backend_name Changes to this property will trigger replacement. str
Name of the backend to link to the static site
region str
The region of the backend linked to the static site
environmentName
This property is required.
Changes to this property will trigger replacement.
String
The stage site identifier
name
This property is required.
Changes to this property will trigger replacement.
String
Name of the static site
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group to which the resource belongs.
backendResourceId String
The resource id of the backend linked to the static site
kind String
Kind of resource.
linkedBackendName Changes to this property will trigger replacement. String
Name of the backend to link to the static site
region String
The region of the backend linked to the static site

Outputs

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

CreatedOn string
The date and time on which the backend was linked to the static site.
Id string
The provider-assigned unique ID for this managed resource.
ProvisioningState string
The provisioning state of the linking process.
Type string
Resource type.
CreatedOn string
The date and time on which the backend was linked to the static site.
Id string
The provider-assigned unique ID for this managed resource.
ProvisioningState string
The provisioning state of the linking process.
Type string
Resource type.
createdOn String
The date and time on which the backend was linked to the static site.
id String
The provider-assigned unique ID for this managed resource.
provisioningState String
The provisioning state of the linking process.
type String
Resource type.
createdOn string
The date and time on which the backend was linked to the static site.
id string
The provider-assigned unique ID for this managed resource.
provisioningState string
The provisioning state of the linking process.
type string
Resource type.
created_on str
The date and time on which the backend was linked to the static site.
id str
The provider-assigned unique ID for this managed resource.
provisioning_state str
The provisioning state of the linking process.
type str
Resource type.
createdOn String
The date and time on which the backend was linked to the static site.
id String
The provider-assigned unique ID for this managed resource.
provisioningState String
The provisioning state of the linking process.
type String
Resource type.

Import

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

$ pulumi import azure-native:web:StaticSiteLinkedBackendForBuild testBackend /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/linkedBackends/{linkedBackendName} 
Copy

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

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0