1. Packages
  2. Azure Native v1
  3. API Docs
  4. web
  5. StaticSiteLinkedBackend
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.web.StaticSiteLinkedBackend

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Static Site Linked Backend ARM resource. API Version: 2022-03-01.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var staticSiteLinkedBackend = new AzureNative.Web.StaticSiteLinkedBackend("staticSiteLinkedBackend", new()
        {
            BackendResourceId = "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend",
            LinkedBackendName = "testBackend",
            Name = "testStaticSite0",
            Region = "West US 2",
            ResourceGroupName = "rg",
        });
    
    });
    
    package main
    
    import (
    	web "github.com/pulumi/pulumi-azure-native-sdk/web"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := web.NewStaticSiteLinkedBackend(ctx, "staticSiteLinkedBackend", &web.StaticSiteLinkedBackendArgs{
    			BackendResourceId: pulumi.String("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend"),
    			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
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.web.StaticSiteLinkedBackend;
    import com.pulumi.azurenative.web.StaticSiteLinkedBackendArgs;
    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 staticSiteLinkedBackend = new StaticSiteLinkedBackend("staticSiteLinkedBackend", StaticSiteLinkedBackendArgs.builder()        
                .backendResourceId("/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend")
                .linkedBackendName("testBackend")
                .name("testStaticSite0")
                .region("West US 2")
                .resourceGroupName("rg")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    static_site_linked_backend = azure_native.web.StaticSiteLinkedBackend("staticSiteLinkedBackend",
        backend_resource_id="/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend",
        linked_backend_name="testBackend",
        name="testStaticSite0",
        region="West US 2",
        resource_group_name="rg")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const staticSiteLinkedBackend = new azure_native.web.StaticSiteLinkedBackend("staticSiteLinkedBackend", {
        backendResourceId: "/subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend",
        linkedBackendName: "testBackend",
        name: "testStaticSite0",
        region: "West US 2",
        resourceGroupName: "rg",
    });
    
    resources:
      staticSiteLinkedBackend:
        type: azure-native:web:StaticSiteLinkedBackend
        properties:
          backendResourceId: /subscription/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/backendRg/providers/Microsoft.Web/sites/testBackend
          linkedBackendName: testBackend
          name: testStaticSite0
          region: West US 2
          resourceGroupName: rg
    

    Create StaticSiteLinkedBackend Resource

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

    Constructor syntax

    new StaticSiteLinkedBackend(name: string, args: StaticSiteLinkedBackendArgs, opts?: CustomResourceOptions);
    @overload
    def StaticSiteLinkedBackend(resource_name: str,
                                args: StaticSiteLinkedBackendArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def StaticSiteLinkedBackend(resource_name: str,
                                opts: Optional[ResourceOptions] = 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 NewStaticSiteLinkedBackend(ctx *Context, name string, args StaticSiteLinkedBackendArgs, opts ...ResourceOption) (*StaticSiteLinkedBackend, error)
    public StaticSiteLinkedBackend(string name, StaticSiteLinkedBackendArgs args, CustomResourceOptions? opts = null)
    public StaticSiteLinkedBackend(String name, StaticSiteLinkedBackendArgs args)
    public StaticSiteLinkedBackend(String name, StaticSiteLinkedBackendArgs args, CustomResourceOptions options)
    
    type: azure-native:web:StaticSiteLinkedBackend
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args StaticSiteLinkedBackendArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args StaticSiteLinkedBackendArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args StaticSiteLinkedBackendArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StaticSiteLinkedBackendArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StaticSiteLinkedBackendArgs
    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 staticSiteLinkedBackendResource = new AzureNative.Web.StaticSiteLinkedBackend("staticSiteLinkedBackendResource", new()
    {
        Name = "string",
        ResourceGroupName = "string",
        BackendResourceId = "string",
        Kind = "string",
        LinkedBackendName = "string",
        Region = "string",
    });
    
    example, err := web.NewStaticSiteLinkedBackend(ctx, "staticSiteLinkedBackendResource", &web.StaticSiteLinkedBackendArgs{
    	Name:              "string",
    	ResourceGroupName: "string",
    	BackendResourceId: "string",
    	Kind:              "string",
    	LinkedBackendName: "string",
    	Region:            "string",
    })
    
    var staticSiteLinkedBackendResource = new StaticSiteLinkedBackend("staticSiteLinkedBackendResource", StaticSiteLinkedBackendArgs.builder()
        .name("string")
        .resourceGroupName("string")
        .backendResourceId("string")
        .kind("string")
        .linkedBackendName("string")
        .region("string")
        .build());
    
    static_site_linked_backend_resource = azure_native.web.StaticSiteLinkedBackend("staticSiteLinkedBackendResource",
        name=string,
        resource_group_name=string,
        backend_resource_id=string,
        kind=string,
        linked_backend_name=string,
        region=string)
    
    const staticSiteLinkedBackendResource = new azure_native.web.StaticSiteLinkedBackend("staticSiteLinkedBackendResource", {
        name: "string",
        resourceGroupName: "string",
        backendResourceId: "string",
        kind: "string",
        linkedBackendName: "string",
        region: "string",
    });
    
    type: azure-native:web:StaticSiteLinkedBackend
    properties:
        backendResourceId: string
        kind: string
        linkedBackendName: string
        name: string
        region: string
        resourceGroupName: string
    

    StaticSiteLinkedBackend Resource Properties

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

    Inputs

    The StaticSiteLinkedBackend resource accepts the following input properties:

    Name string
    Name of the static site
    ResourceGroupName 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 string
    Name of the backend to link to the static site
    Region string
    The region of the backend linked to the static site
    Name string
    Name of the static site
    ResourceGroupName 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 string
    Name of the backend to link to the static site
    Region string
    The region of the backend linked to the static site
    name String
    Name of the static site
    resourceGroupName 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 String
    Name of the backend to link to the static site
    region String
    The region of the backend linked to the static site
    name string
    Name of the static site
    resourceGroupName 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 string
    Name of the backend to link to the static site
    region string
    The region of the backend linked to the static site
    name str
    Name of the static site
    resource_group_name 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 str
    Name of the backend to link to the static site
    region str
    The region of the backend linked to the static site
    name String
    Name of the static site
    resourceGroupName 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 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 StaticSiteLinkedBackend 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:StaticSiteLinkedBackend testBackend /subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/builds/default/linkedBackends/testBackend 
    

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

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi