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

We recommend using Azure Native.

Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi

azure.appservice.StaticSiteCustomDomain

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.70.0 published on Wednesday, Mar 27, 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 exampleStaticSite = new azure.appservice.StaticSite("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: exampleStaticSite.defaultHostName,
    });
    const exampleStaticSiteCustomDomain = new azure.appservice.StaticSiteCustomDomain("example", {
        staticSiteId: exampleStaticSite.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_site = azure.appservice.StaticSite("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_site.default_host_name)
    example_static_site_custom_domain = azure.appservice.StaticSiteCustomDomain("example",
        static_site_id=example_static_site.id,
        domain_name=pulumi.Output.all(example_c_name_record.name, example_c_name_record.zone_name).apply(lambda name, zone_name: f"{name}.{zone_name}"),
        validation_type="cname-delegation")
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/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
    		}
    		exampleStaticSite, err := appservice.NewStaticSite(ctx, "example", &appservice.StaticSiteArgs{
    			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:            exampleStaticSite.DefaultHostName,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = appservice.NewStaticSiteCustomDomain(ctx, "example", &appservice.StaticSiteCustomDomainArgs{
    			StaticSiteId: exampleStaticSite.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 exampleStaticSite = new Azure.AppService.StaticSite("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 = exampleStaticSite.DefaultHostName,
        });
    
        var exampleStaticSiteCustomDomain = new Azure.AppService.StaticSiteCustomDomain("example", new()
        {
            StaticSiteId = exampleStaticSite.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.StaticSite;
    import com.pulumi.azure.appservice.StaticSiteArgs;
    import com.pulumi.azure.dns.CNameRecord;
    import com.pulumi.azure.dns.CNameRecordArgs;
    import com.pulumi.azure.appservice.StaticSiteCustomDomain;
    import com.pulumi.azure.appservice.StaticSiteCustomDomainArgs;
    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 exampleStaticSite = new StaticSite("exampleStaticSite", StaticSiteArgs.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(exampleStaticSite.defaultHostName())
                .build());
    
            var exampleStaticSiteCustomDomain = new StaticSiteCustomDomain("exampleStaticSiteCustomDomain", StaticSiteCustomDomainArgs.builder()        
                .staticSiteId(exampleStaticSite.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
      exampleStaticSite:
        type: azure:appservice:StaticSite
        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: ${exampleStaticSite.defaultHostName}
      exampleStaticSiteCustomDomain:
        type: azure:appservice:StaticSiteCustomDomain
        name: example
        properties:
          staticSiteId: ${exampleStaticSite.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 exampleStaticSite = new azure.appservice.StaticSite("example", {
        name: "example",
        resourceGroupName: example.name,
        location: example.location,
    });
    const exampleStaticSiteCustomDomain = new azure.appservice.StaticSiteCustomDomain("example", {
        staticSiteId: exampleStaticSite.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: exampleStaticSiteCustomDomain.validationToken,
        }],
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_static_site = azure.appservice.StaticSite("example",
        name="example",
        resource_group_name=example.name,
        location=example.location)
    example_static_site_custom_domain = azure.appservice.StaticSiteCustomDomain("example",
        static_site_id=example_static_site.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=[azure.dns.TxtRecordRecordArgs(
            value=example_static_site_custom_domain.validation_token,
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appservice"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/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
    		}
    		exampleStaticSite, err := appservice.NewStaticSite(ctx, "example", &appservice.StaticSiteArgs{
    			Name:              pulumi.String("example"),
    			ResourceGroupName: example.Name,
    			Location:          example.Location,
    		})
    		if err != nil {
    			return err
    		}
    		exampleStaticSiteCustomDomain, err := appservice.NewStaticSiteCustomDomain(ctx, "example", &appservice.StaticSiteCustomDomainArgs{
    			StaticSiteId:   exampleStaticSite.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: exampleStaticSiteCustomDomain.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 exampleStaticSite = new Azure.AppService.StaticSite("example", new()
        {
            Name = "example",
            ResourceGroupName = example.Name,
            Location = example.Location,
        });
    
        var exampleStaticSiteCustomDomain = new Azure.AppService.StaticSiteCustomDomain("example", new()
        {
            StaticSiteId = exampleStaticSite.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 = exampleStaticSiteCustomDomain.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.StaticSite;
    import com.pulumi.azure.appservice.StaticSiteArgs;
    import com.pulumi.azure.appservice.StaticSiteCustomDomain;
    import com.pulumi.azure.appservice.StaticSiteCustomDomainArgs;
    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 exampleStaticSite = new StaticSite("exampleStaticSite", StaticSiteArgs.builder()        
                .name("example")
                .resourceGroupName(example.name())
                .location(example.location())
                .build());
    
            var exampleStaticSiteCustomDomain = new StaticSiteCustomDomain("exampleStaticSiteCustomDomain", StaticSiteCustomDomainArgs.builder()        
                .staticSiteId(exampleStaticSite.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(exampleStaticSiteCustomDomain.validationToken())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleStaticSite:
        type: azure:appservice:StaticSite
        name: example
        properties:
          name: example
          resourceGroupName: ${example.name}
          location: ${example.location}
      exampleStaticSiteCustomDomain:
        type: azure:appservice:StaticSiteCustomDomain
        name: example
        properties:
          staticSiteId: ${exampleStaticSite.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: ${exampleStaticSiteCustomDomain.validationToken}
    

    Create StaticSiteCustomDomain Resource

    new StaticSiteCustomDomain(name: string, args: StaticSiteCustomDomainArgs, opts?: CustomResourceOptions);
    @overload
    def StaticSiteCustomDomain(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               domain_name: Optional[str] = None,
                               static_site_id: Optional[str] = None,
                               validation_type: Optional[str] = None)
    @overload
    def StaticSiteCustomDomain(resource_name: str,
                               args: StaticSiteCustomDomainArgs,
                               opts: Optional[ResourceOptions] = None)
    func NewStaticSiteCustomDomain(ctx *Context, name string, args StaticSiteCustomDomainArgs, opts ...ResourceOption) (*StaticSiteCustomDomain, error)
    public StaticSiteCustomDomain(string name, StaticSiteCustomDomainArgs args, CustomResourceOptions? opts = null)
    public StaticSiteCustomDomain(String name, StaticSiteCustomDomainArgs args)
    public StaticSiteCustomDomain(String name, StaticSiteCustomDomainArgs args, CustomResourceOptions options)
    
    type: azure:appservice:StaticSiteCustomDomain
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args StaticSiteCustomDomainArgs
    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 StaticSiteCustomDomainArgs
    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 StaticSiteCustomDomainArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StaticSiteCustomDomainArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StaticSiteCustomDomainArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    StaticSiteCustomDomain 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 StaticSiteCustomDomain 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.
    StaticSiteId string
    The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
    ValidationType string
    One of cname-delegation or dns-txt-token. Changing this forces a new Static Site Custom Domain to be created.
    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.
    StaticSiteId string
    The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
    ValidationType string
    One of cname-delegation or dns-txt-token. Changing this forces a new Static Site Custom Domain to be created.
    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.
    staticSiteId String
    The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
    validationType String
    One of cname-delegation or dns-txt-token. Changing this forces a new Static Site Custom Domain to be created.
    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.
    staticSiteId string
    The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
    validationType string
    One of cname-delegation or dns-txt-token. Changing this forces a new Static Site Custom Domain to be created.
    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_site_id str
    The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
    validation_type str
    One of cname-delegation or dns-txt-token. Changing this forces a new Static Site Custom Domain to be created.
    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.
    staticSiteId String
    The ID of the Static Site. Changing this forces a new Static Site Custom Domain to be created.
    validationType String
    One of cname-delegation or dns-txt-token. Changing this forces a new Static Site Custom Domain to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the StaticSiteCustomDomain 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 StaticSiteCustomDomain Resource

    Get an existing StaticSiteCustomDomain 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?: StaticSiteCustomDomainState, opts?: CustomResourceOptions): StaticSiteCustomDomain
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            domain_name: Optional[str] = None,
            static_site_id: Optional[str] = None,
            validation_token: Optional[str] = None,
            validation_type: Optional[str] = None) -> StaticSiteCustomDomain
    func GetStaticSiteCustomDomain(ctx *Context, name string, id IDInput, state *StaticSiteCustomDomainState, opts ...ResourceOption) (*StaticSiteCustomDomain, error)
    public static StaticSiteCustomDomain Get(string name, Input<string> id, StaticSiteCustomDomainState? state, CustomResourceOptions? opts = null)
    public static StaticSiteCustomDomain get(String name, Output<String> id, StaticSiteCustomDomainState 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.
    StaticSiteId 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
    One of cname-delegation or dns-txt-token. Changing this forces a new Static Site Custom Domain to be created.
    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.
    StaticSiteId 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
    One of cname-delegation or dns-txt-token. Changing this forces a new Static Site Custom Domain to be created.
    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.
    staticSiteId 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
    One of cname-delegation or dns-txt-token. Changing this forces a new Static Site Custom Domain to be created.
    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.
    staticSiteId 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
    One of cname-delegation or dns-txt-token. Changing this forces a new Static Site Custom Domain to be created.
    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_site_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
    One of cname-delegation or dns-txt-token. Changing this forces a new Static Site Custom Domain to be created.
    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.
    staticSiteId 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
    One of cname-delegation or dns-txt-token. Changing this forces a new Static Site Custom Domain to be created.

    Import

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

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

    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 Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi