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

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.appservice.StaticWebAppCustomDomain

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Example Usage

    CNAME validation

    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 exampleCNameRecord = new azure.dns.CNameRecord("example", {
        name: "my-domain",
        zoneName: "contoso.com",
        resourceGroupName: example.name,
        ttl: 300,
        record: exampleStaticWebApp.defaultHostName,
    });
    const exampleStaticWebAppCustomDomain = new azure.appservice.StaticWebAppCustomDomain("example", {
        staticWebAppId: exampleStaticWebApp.id,
        domainName: pulumi.interpolate`${exampleCNameRecord.name}.${exampleCNameRecord.zoneName}`,
        validationType: "cname-delegation",
    });
    
    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_c_name_record = azure.dns.CNameRecord("example",
        name="my-domain",
        zone_name="contoso.com",
        resource_group_name=example.name,
        ttl=300,
        record=example_static_web_app.default_host_name)
    example_static_web_app_custom_domain = azure.appservice.StaticWebAppCustomDomain("example",
        static_web_app_id=example_static_web_app.id,
        domain_name=pulumi.Output.all(
            name=example_c_name_record.name,
            zone_name=example_c_name_record.zone_name
    ).apply(lambda resolved_outputs: f"{resolved_outputs['name']}.{resolved_outputs['zone_name']}")
    ,
        validation_type="cname-delegation")
    
    package main
    
    import (
    	"fmt"
    
    	"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/dns"
    	"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
    		}
    		exampleCNameRecord, err := dns.NewCNameRecord(ctx, "example", &dns.CNameRecordArgs{
    			Name:              pulumi.String("my-domain"),
    			ZoneName:          pulumi.String("contoso.com"),
    			ResourceGroupName: example.Name,
    			Ttl:               pulumi.Int(300),
    			Record:            exampleStaticWebApp.DefaultHostName,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = appservice.NewStaticWebAppCustomDomain(ctx, "example", &appservice.StaticWebAppCustomDomainArgs{
    			StaticWebAppId: exampleStaticWebApp.ID(),
    			DomainName: pulumi.All(exampleCNameRecord.Name, exampleCNameRecord.ZoneName).ApplyT(func(_args []interface{}) (string, error) {
    				name := _args[0].(string)
    				zoneName := _args[1].(string)
    				return fmt.Sprintf("%v.%v", name, zoneName), nil
    			}).(pulumi.StringOutput),
    			ValidationType: pulumi.String("cname-delegation"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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 exampleCNameRecord = new Azure.Dns.CNameRecord("example", new()
        {
            Name = "my-domain",
            ZoneName = "contoso.com",
            ResourceGroupName = example.Name,
            Ttl = 300,
            Record = exampleStaticWebApp.DefaultHostName,
        });
    
        var exampleStaticWebAppCustomDomain = new Azure.AppService.StaticWebAppCustomDomain("example", new()
        {
            StaticWebAppId = exampleStaticWebApp.Id,
            DomainName = Output.Tuple(exampleCNameRecord.Name, exampleCNameRecord.ZoneName).Apply(values =>
            {
                var name = values.Item1;
                var zoneName = values.Item2;
                return $"{name}.{zoneName}";
            }),
            ValidationType = "cname-delegation",
        });
    
    });
    
    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.dns.CNameRecord;
    import com.pulumi.azure.dns.CNameRecordArgs;
    import com.pulumi.azure.appservice.StaticWebAppCustomDomain;
    import com.pulumi.azure.appservice.StaticWebAppCustomDomainArgs;
    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 exampleCNameRecord = new CNameRecord("exampleCNameRecord", CNameRecordArgs.builder()
                .name("my-domain")
                .zoneName("contoso.com")
                .resourceGroupName(example.name())
                .ttl(300)
                .record(exampleStaticWebApp.defaultHostName())
                .build());
    
            var exampleStaticWebAppCustomDomain = new StaticWebAppCustomDomain("exampleStaticWebAppCustomDomain", StaticWebAppCustomDomainArgs.builder()
                .staticWebAppId(exampleStaticWebApp.id())
                .domainName(Output.tuple(exampleCNameRecord.name(), exampleCNameRecord.zoneName()).applyValue(values -> {
                    var name = values.t1;
                    var zoneName = values.t2;
                    return String.format("%s.%s", name,zoneName);
                }))
                .validationType("cname-delegation")
                .build());
    
        }
    }
    
    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}
      exampleCNameRecord:
        type: azure:dns:CNameRecord
        name: example
        properties:
          name: my-domain
          zoneName: contoso.com
          resourceGroupName: ${example.name}
          ttl: 300
          record: ${exampleStaticWebApp.defaultHostName}
      exampleStaticWebAppCustomDomain:
        type: azure:appservice:StaticWebAppCustomDomain
        name: example
        properties:
          staticWebAppId: ${exampleStaticWebApp.id}
          domainName: ${exampleCNameRecord.name}.${exampleCNameRecord.zoneName}
          validationType: cname-delegation
    

    TXT validation

    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 exampleStaticWebAppCustomDomain = new azure.appservice.StaticWebAppCustomDomain("example", {
        staticWebAppId: exampleStaticWebApp.id,
        domainName: "my-domain.contoso.com",
        validationType: "dns-txt-token",
    });
    const exampleTxtRecord = new azure.dns.TxtRecord("example", {
        name: "_dnsauth.my-domain",
        zoneName: "contoso.com",
        resourceGroupName: example.name,
        ttl: 300,
        records: [{
            value: exampleStaticWebAppCustomDomain.validationToken,
        }],
    });
    
    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_static_web_app_custom_domain = azure.appservice.StaticWebAppCustomDomain("example",
        static_web_app_id=example_static_web_app.id,
        domain_name="my-domain.contoso.com",
        validation_type="dns-txt-token")
    example_txt_record = azure.dns.TxtRecord("example",
        name="_dnsauth.my-domain",
        zone_name="contoso.com",
        resource_group_name=example.name,
        ttl=300,
        records=[{
            "value": example_static_web_app_custom_domain.validation_token,
        }])
    
    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/dns"
    	"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
    		}
    		exampleStaticWebAppCustomDomain, err := appservice.NewStaticWebAppCustomDomain(ctx, "example", &appservice.StaticWebAppCustomDomainArgs{
    			StaticWebAppId: exampleStaticWebApp.ID(),
    			DomainName:     pulumi.String("my-domain.contoso.com"),
    			ValidationType: pulumi.String("dns-txt-token"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = dns.NewTxtRecord(ctx, "example", &dns.TxtRecordArgs{
    			Name:              pulumi.String("_dnsauth.my-domain"),
    			ZoneName:          pulumi.String("contoso.com"),
    			ResourceGroupName: example.Name,
    			Ttl:               pulumi.Int(300),
    			Records: dns.TxtRecordRecordArray{
    				&dns.TxtRecordRecordArgs{
    					Value: exampleStaticWebAppCustomDomain.ValidationToken,
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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 exampleStaticWebAppCustomDomain = new Azure.AppService.StaticWebAppCustomDomain("example", new()
        {
            StaticWebAppId = exampleStaticWebApp.Id,
            DomainName = "my-domain.contoso.com",
            ValidationType = "dns-txt-token",
        });
    
        var exampleTxtRecord = new Azure.Dns.TxtRecord("example", new()
        {
            Name = "_dnsauth.my-domain",
            ZoneName = "contoso.com",
            ResourceGroupName = example.Name,
            Ttl = 300,
            Records = new[]
            {
                new Azure.Dns.Inputs.TxtRecordRecordArgs
                {
                    Value = exampleStaticWebAppCustomDomain.ValidationToken,
                },
            },
        });
    
    });
    
    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.appservice.StaticWebAppCustomDomain;
    import com.pulumi.azure.appservice.StaticWebAppCustomDomainArgs;
    import com.pulumi.azure.dns.TxtRecord;
    import com.pulumi.azure.dns.TxtRecordArgs;
    import com.pulumi.azure.dns.inputs.TxtRecordRecordArgs;
    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 exampleStaticWebAppCustomDomain = new StaticWebAppCustomDomain("exampleStaticWebAppCustomDomain", StaticWebAppCustomDomainArgs.builder()
                .staticWebAppId(exampleStaticWebApp.id())
                .domainName("my-domain.contoso.com")
                .validationType("dns-txt-token")
                .build());
    
            var exampleTxtRecord = new TxtRecord("exampleTxtRecord", TxtRecordArgs.builder()
                .name("_dnsauth.my-domain")
                .zoneName("contoso.com")
                .resourceGroupName(example.name())
                .ttl(300)
                .records(TxtRecordRecordArgs.builder()
                    .value(exampleStaticWebAppCustomDomain.validationToken())
                    .build())
                .build());
    
        }
    }
    
    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}
      exampleStaticWebAppCustomDomain:
        type: azure:appservice:StaticWebAppCustomDomain
        name: example
        properties:
          staticWebAppId: ${exampleStaticWebApp.id}
          domainName: my-domain.contoso.com
          validationType: dns-txt-token
      exampleTxtRecord:
        type: azure:dns:TxtRecord
        name: example
        properties:
          name: _dnsauth.my-domain
          zoneName: contoso.com
          resourceGroupName: ${example.name}
          ttl: 300
          records:
            - value: ${exampleStaticWebAppCustomDomain.validationToken}
    

    Create StaticWebAppCustomDomain Resource

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

    Constructor syntax

    new StaticWebAppCustomDomain(name: string, args: StaticWebAppCustomDomainArgs, opts?: CustomResourceOptions);
    @overload
    def StaticWebAppCustomDomain(resource_name: str,
                                 args: StaticWebAppCustomDomainArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def StaticWebAppCustomDomain(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 domain_name: Optional[str] = None,
                                 static_web_app_id: Optional[str] = None,
                                 validation_type: Optional[str] = None)
    func NewStaticWebAppCustomDomain(ctx *Context, name string, args StaticWebAppCustomDomainArgs, opts ...ResourceOption) (*StaticWebAppCustomDomain, error)
    public StaticWebAppCustomDomain(string name, StaticWebAppCustomDomainArgs args, CustomResourceOptions? opts = null)
    public StaticWebAppCustomDomain(String name, StaticWebAppCustomDomainArgs args)
    public StaticWebAppCustomDomain(String name, StaticWebAppCustomDomainArgs args, CustomResourceOptions options)
    
    type: azure:appservice:StaticWebAppCustomDomain
    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 StaticWebAppCustomDomainArgs
    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 StaticWebAppCustomDomainArgs
    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 StaticWebAppCustomDomainArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StaticWebAppCustomDomainArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StaticWebAppCustomDomainArgs
    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 staticWebAppCustomDomainResource = new Azure.AppService.StaticWebAppCustomDomain("staticWebAppCustomDomainResource", new()
    {
        DomainName = "string",
        StaticWebAppId = "string",
        ValidationType = "string",
    });
    
    example, err := appservice.NewStaticWebAppCustomDomain(ctx, "staticWebAppCustomDomainResource", &appservice.StaticWebAppCustomDomainArgs{
    	DomainName:     pulumi.String("string"),
    	StaticWebAppId: pulumi.String("string"),
    	ValidationType: pulumi.String("string"),
    })
    
    var staticWebAppCustomDomainResource = new StaticWebAppCustomDomain("staticWebAppCustomDomainResource", StaticWebAppCustomDomainArgs.builder()
        .domainName("string")
        .staticWebAppId("string")
        .validationType("string")
        .build());
    
    static_web_app_custom_domain_resource = azure.appservice.StaticWebAppCustomDomain("staticWebAppCustomDomainResource",
        domain_name="string",
        static_web_app_id="string",
        validation_type="string")
    
    const staticWebAppCustomDomainResource = new azure.appservice.StaticWebAppCustomDomain("staticWebAppCustomDomainResource", {
        domainName: "string",
        staticWebAppId: "string",
        validationType: "string",
    });
    
    type: azure:appservice:StaticWebAppCustomDomain
    properties:
        domainName: string
        staticWebAppId: string
        validationType: string
    

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

    DomainName string
    The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created.
    StaticWebAppId string
    The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
    ValidationType string
    DomainName string
    The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created.
    StaticWebAppId string
    The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
    ValidationType string
    domainName String
    The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created.
    staticWebAppId String
    The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
    validationType String
    domainName string
    The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created.
    staticWebAppId string
    The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
    validationType string
    domain_name str
    The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created.
    static_web_app_id str
    The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
    validation_type str
    domainName String
    The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created.
    staticWebAppId String
    The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
    validationType String

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    ValidationToken string
    Token to be used with dns-txt-token validation.
    Id string
    The provider-assigned unique ID for this managed resource.
    ValidationToken string
    Token to be used with dns-txt-token validation.
    id String
    The provider-assigned unique ID for this managed resource.
    validationToken String
    Token to be used with dns-txt-token validation.
    id string
    The provider-assigned unique ID for this managed resource.
    validationToken string
    Token to be used with dns-txt-token validation.
    id str
    The provider-assigned unique ID for this managed resource.
    validation_token str
    Token to be used with dns-txt-token validation.
    id String
    The provider-assigned unique ID for this managed resource.
    validationToken String
    Token to be used with dns-txt-token validation.

    Look up Existing StaticWebAppCustomDomain Resource

    Get an existing StaticWebAppCustomDomain 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?: StaticWebAppCustomDomainState, opts?: CustomResourceOptions): StaticWebAppCustomDomain
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            domain_name: Optional[str] = None,
            static_web_app_id: Optional[str] = None,
            validation_token: Optional[str] = None,
            validation_type: Optional[str] = None) -> StaticWebAppCustomDomain
    func GetStaticWebAppCustomDomain(ctx *Context, name string, id IDInput, state *StaticWebAppCustomDomainState, opts ...ResourceOption) (*StaticWebAppCustomDomain, error)
    public static StaticWebAppCustomDomain Get(string name, Input<string> id, StaticWebAppCustomDomainState? state, CustomResourceOptions? opts = null)
    public static StaticWebAppCustomDomain get(String name, Output<String> id, StaticWebAppCustomDomainState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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:
    DomainName string
    The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created.
    StaticWebAppId string
    The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
    ValidationToken string
    Token to be used with dns-txt-token validation.
    ValidationType string
    DomainName string
    The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created.
    StaticWebAppId string
    The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
    ValidationToken string
    Token to be used with dns-txt-token validation.
    ValidationType string
    domainName String
    The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created.
    staticWebAppId String
    The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
    validationToken String
    Token to be used with dns-txt-token validation.
    validationType String
    domainName string
    The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created.
    staticWebAppId string
    The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
    validationToken string
    Token to be used with dns-txt-token validation.
    validationType string
    domain_name str
    The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created.
    static_web_app_id str
    The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
    validation_token str
    Token to be used with dns-txt-token validation.
    validation_type str
    domainName String
    The Domain Name which should be associated with this Static Site. Changing this forces a new Static Site Custom Domain to be created.
    staticWebAppId String
    The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
    validationToken String
    Token to be used with dns-txt-token validation.
    validationType String

    Import

    Static Site Custom Domains can be imported using the resource id, e.g.

    $ pulumi import azure:appservice/staticWebAppCustomDomain:StaticWebAppCustomDomain example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.Web/staticSites/my-static-site1/customDomains/name.contoso.com
    

    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.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi