1. Packages
  2. Azure Native
  3. API Docs
  4. domainregistration
  5. Domain
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

azure-native.domainregistration.Domain

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

    Information about a domain. Azure REST API version: 2022-09-01. Prior API version in Azure Native 1.x: 2020-10-01.

    Other available API versions: 2020-10-01, 2023-01-01.

    Example Usage

    Create App Service Domain

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var domain = new AzureNative.DomainRegistration.Domain("domain", new()
        {
            AuthCode = "exampleAuthCode",
            AutoRenew = true,
            Consent = new AzureNative.DomainRegistration.Inputs.DomainPurchaseConsentArgs
            {
                AgreedAt = "2021-09-10T19:30:53Z",
                AgreedBy = "192.0.2.1",
                AgreementKeys = new[]
                {
                    "agreementKey1",
                },
            },
            ContactAdmin = new AzureNative.DomainRegistration.Inputs.ContactArgs
            {
                AddressMailing = new AzureNative.DomainRegistration.Inputs.AddressArgs
                {
                    Address1 = "3400 State St",
                    City = "Chicago",
                    Country = "United States",
                    PostalCode = "67098",
                    State = "IL",
                },
                Email = "admin@email.com",
                Fax = "1-245-534-2242",
                JobTitle = "Admin",
                NameFirst = "John",
                NameLast = "Doe",
                NameMiddle = "",
                Organization = "Microsoft Inc.",
                Phone = "1-245-534-2242",
            },
            ContactBilling = new AzureNative.DomainRegistration.Inputs.ContactArgs
            {
                AddressMailing = new AzureNative.DomainRegistration.Inputs.AddressArgs
                {
                    Address1 = "3400 State St",
                    City = "Chicago",
                    Country = "United States",
                    PostalCode = "67098",
                    State = "IL",
                },
                Email = "billing@email.com",
                Fax = "1-245-534-2242",
                JobTitle = "Billing",
                NameFirst = "John",
                NameLast = "Doe",
                NameMiddle = "",
                Organization = "Microsoft Inc.",
                Phone = "1-245-534-2242",
            },
            ContactRegistrant = new AzureNative.DomainRegistration.Inputs.ContactArgs
            {
                AddressMailing = new AzureNative.DomainRegistration.Inputs.AddressArgs
                {
                    Address1 = "3400 State St",
                    City = "Chicago",
                    Country = "United States",
                    PostalCode = "67098",
                    State = "IL",
                },
                Email = "registrant@email.com",
                Fax = "1-245-534-2242",
                JobTitle = "Registrant",
                NameFirst = "John",
                NameLast = "Doe",
                NameMiddle = "",
                Organization = "Microsoft Inc.",
                Phone = "1-245-534-2242",
            },
            ContactTech = new AzureNative.DomainRegistration.Inputs.ContactArgs
            {
                AddressMailing = new AzureNative.DomainRegistration.Inputs.AddressArgs
                {
                    Address1 = "3400 State St",
                    City = "Chicago",
                    Country = "United States",
                    PostalCode = "67098",
                    State = "IL",
                },
                Email = "tech@email.com",
                Fax = "1-245-534-2242",
                JobTitle = "Tech",
                NameFirst = "John",
                NameLast = "Doe",
                NameMiddle = "",
                Organization = "Microsoft Inc.",
                Phone = "1-245-534-2242",
            },
            DnsType = AzureNative.DomainRegistration.DnsType.DefaultDomainRegistrarDns,
            DomainName = "example.com",
            Location = "global",
            Privacy = false,
            ResourceGroupName = "testrg123",
            Tags = null,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/domainregistration/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := domainregistration.NewDomain(ctx, "domain", &domainregistration.DomainArgs{
    			AuthCode:  pulumi.String("exampleAuthCode"),
    			AutoRenew: pulumi.Bool(true),
    			Consent: &domainregistration.DomainPurchaseConsentArgs{
    				AgreedAt: pulumi.String("2021-09-10T19:30:53Z"),
    				AgreedBy: pulumi.String("192.0.2.1"),
    				AgreementKeys: pulumi.StringArray{
    					pulumi.String("agreementKey1"),
    				},
    			},
    			ContactAdmin: &domainregistration.ContactArgs{
    				AddressMailing: &domainregistration.AddressArgs{
    					Address1:   pulumi.String("3400 State St"),
    					City:       pulumi.String("Chicago"),
    					Country:    pulumi.String("United States"),
    					PostalCode: pulumi.String("67098"),
    					State:      pulumi.String("IL"),
    				},
    				Email:        pulumi.String("admin@email.com"),
    				Fax:          pulumi.String("1-245-534-2242"),
    				JobTitle:     pulumi.String("Admin"),
    				NameFirst:    pulumi.String("John"),
    				NameLast:     pulumi.String("Doe"),
    				NameMiddle:   pulumi.String(""),
    				Organization: pulumi.String("Microsoft Inc."),
    				Phone:        pulumi.String("1-245-534-2242"),
    			},
    			ContactBilling: &domainregistration.ContactArgs{
    				AddressMailing: &domainregistration.AddressArgs{
    					Address1:   pulumi.String("3400 State St"),
    					City:       pulumi.String("Chicago"),
    					Country:    pulumi.String("United States"),
    					PostalCode: pulumi.String("67098"),
    					State:      pulumi.String("IL"),
    				},
    				Email:        pulumi.String("billing@email.com"),
    				Fax:          pulumi.String("1-245-534-2242"),
    				JobTitle:     pulumi.String("Billing"),
    				NameFirst:    pulumi.String("John"),
    				NameLast:     pulumi.String("Doe"),
    				NameMiddle:   pulumi.String(""),
    				Organization: pulumi.String("Microsoft Inc."),
    				Phone:        pulumi.String("1-245-534-2242"),
    			},
    			ContactRegistrant: &domainregistration.ContactArgs{
    				AddressMailing: &domainregistration.AddressArgs{
    					Address1:   pulumi.String("3400 State St"),
    					City:       pulumi.String("Chicago"),
    					Country:    pulumi.String("United States"),
    					PostalCode: pulumi.String("67098"),
    					State:      pulumi.String("IL"),
    				},
    				Email:        pulumi.String("registrant@email.com"),
    				Fax:          pulumi.String("1-245-534-2242"),
    				JobTitle:     pulumi.String("Registrant"),
    				NameFirst:    pulumi.String("John"),
    				NameLast:     pulumi.String("Doe"),
    				NameMiddle:   pulumi.String(""),
    				Organization: pulumi.String("Microsoft Inc."),
    				Phone:        pulumi.String("1-245-534-2242"),
    			},
    			ContactTech: &domainregistration.ContactArgs{
    				AddressMailing: &domainregistration.AddressArgs{
    					Address1:   pulumi.String("3400 State St"),
    					City:       pulumi.String("Chicago"),
    					Country:    pulumi.String("United States"),
    					PostalCode: pulumi.String("67098"),
    					State:      pulumi.String("IL"),
    				},
    				Email:        pulumi.String("tech@email.com"),
    				Fax:          pulumi.String("1-245-534-2242"),
    				JobTitle:     pulumi.String("Tech"),
    				NameFirst:    pulumi.String("John"),
    				NameLast:     pulumi.String("Doe"),
    				NameMiddle:   pulumi.String(""),
    				Organization: pulumi.String("Microsoft Inc."),
    				Phone:        pulumi.String("1-245-534-2242"),
    			},
    			DnsType:           domainregistration.DnsTypeDefaultDomainRegistrarDns,
    			DomainName:        pulumi.String("example.com"),
    			Location:          pulumi.String("global"),
    			Privacy:           pulumi.Bool(false),
    			ResourceGroupName: pulumi.String("testrg123"),
    			Tags:              nil,
    		})
    		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.domainregistration.Domain;
    import com.pulumi.azurenative.domainregistration.DomainArgs;
    import com.pulumi.azurenative.domainregistration.inputs.DomainPurchaseConsentArgs;
    import com.pulumi.azurenative.domainregistration.inputs.ContactArgs;
    import com.pulumi.azurenative.domainregistration.inputs.AddressArgs;
    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 domain = new Domain("domain", DomainArgs.builder()        
                .authCode("exampleAuthCode")
                .autoRenew(true)
                .consent(DomainPurchaseConsentArgs.builder()
                    .agreedAt("2021-09-10T19:30:53Z")
                    .agreedBy("192.0.2.1")
                    .agreementKeys("agreementKey1")
                    .build())
                .contactAdmin(ContactArgs.builder()
                    .addressMailing(AddressArgs.builder()
                        .address1("3400 State St")
                        .city("Chicago")
                        .country("United States")
                        .postalCode("67098")
                        .state("IL")
                        .build())
                    .email("admin@email.com")
                    .fax("1-245-534-2242")
                    .jobTitle("Admin")
                    .nameFirst("John")
                    .nameLast("Doe")
                    .nameMiddle("")
                    .organization("Microsoft Inc.")
                    .phone("1-245-534-2242")
                    .build())
                .contactBilling(ContactArgs.builder()
                    .addressMailing(AddressArgs.builder()
                        .address1("3400 State St")
                        .city("Chicago")
                        .country("United States")
                        .postalCode("67098")
                        .state("IL")
                        .build())
                    .email("billing@email.com")
                    .fax("1-245-534-2242")
                    .jobTitle("Billing")
                    .nameFirst("John")
                    .nameLast("Doe")
                    .nameMiddle("")
                    .organization("Microsoft Inc.")
                    .phone("1-245-534-2242")
                    .build())
                .contactRegistrant(ContactArgs.builder()
                    .addressMailing(AddressArgs.builder()
                        .address1("3400 State St")
                        .city("Chicago")
                        .country("United States")
                        .postalCode("67098")
                        .state("IL")
                        .build())
                    .email("registrant@email.com")
                    .fax("1-245-534-2242")
                    .jobTitle("Registrant")
                    .nameFirst("John")
                    .nameLast("Doe")
                    .nameMiddle("")
                    .organization("Microsoft Inc.")
                    .phone("1-245-534-2242")
                    .build())
                .contactTech(ContactArgs.builder()
                    .addressMailing(AddressArgs.builder()
                        .address1("3400 State St")
                        .city("Chicago")
                        .country("United States")
                        .postalCode("67098")
                        .state("IL")
                        .build())
                    .email("tech@email.com")
                    .fax("1-245-534-2242")
                    .jobTitle("Tech")
                    .nameFirst("John")
                    .nameLast("Doe")
                    .nameMiddle("")
                    .organization("Microsoft Inc.")
                    .phone("1-245-534-2242")
                    .build())
                .dnsType("DefaultDomainRegistrarDns")
                .domainName("example.com")
                .location("global")
                .privacy(false)
                .resourceGroupName("testrg123")
                .tags()
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    domain = azure_native.domainregistration.Domain("domain",
        auth_code="exampleAuthCode",
        auto_renew=True,
        consent=azure_native.domainregistration.DomainPurchaseConsentArgs(
            agreed_at="2021-09-10T19:30:53Z",
            agreed_by="192.0.2.1",
            agreement_keys=["agreementKey1"],
        ),
        contact_admin=azure_native.domainregistration.ContactArgs(
            address_mailing=azure_native.domainregistration.AddressArgs(
                address1="3400 State St",
                city="Chicago",
                country="United States",
                postal_code="67098",
                state="IL",
            ),
            email="admin@email.com",
            fax="1-245-534-2242",
            job_title="Admin",
            name_first="John",
            name_last="Doe",
            name_middle="",
            organization="Microsoft Inc.",
            phone="1-245-534-2242",
        ),
        contact_billing=azure_native.domainregistration.ContactArgs(
            address_mailing=azure_native.domainregistration.AddressArgs(
                address1="3400 State St",
                city="Chicago",
                country="United States",
                postal_code="67098",
                state="IL",
            ),
            email="billing@email.com",
            fax="1-245-534-2242",
            job_title="Billing",
            name_first="John",
            name_last="Doe",
            name_middle="",
            organization="Microsoft Inc.",
            phone="1-245-534-2242",
        ),
        contact_registrant=azure_native.domainregistration.ContactArgs(
            address_mailing=azure_native.domainregistration.AddressArgs(
                address1="3400 State St",
                city="Chicago",
                country="United States",
                postal_code="67098",
                state="IL",
            ),
            email="registrant@email.com",
            fax="1-245-534-2242",
            job_title="Registrant",
            name_first="John",
            name_last="Doe",
            name_middle="",
            organization="Microsoft Inc.",
            phone="1-245-534-2242",
        ),
        contact_tech=azure_native.domainregistration.ContactArgs(
            address_mailing=azure_native.domainregistration.AddressArgs(
                address1="3400 State St",
                city="Chicago",
                country="United States",
                postal_code="67098",
                state="IL",
            ),
            email="tech@email.com",
            fax="1-245-534-2242",
            job_title="Tech",
            name_first="John",
            name_last="Doe",
            name_middle="",
            organization="Microsoft Inc.",
            phone="1-245-534-2242",
        ),
        dns_type=azure_native.domainregistration.DnsType.DEFAULT_DOMAIN_REGISTRAR_DNS,
        domain_name="example.com",
        location="global",
        privacy=False,
        resource_group_name="testrg123",
        tags={})
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const domain = new azure_native.domainregistration.Domain("domain", {
        authCode: "exampleAuthCode",
        autoRenew: true,
        consent: {
            agreedAt: "2021-09-10T19:30:53Z",
            agreedBy: "192.0.2.1",
            agreementKeys: ["agreementKey1"],
        },
        contactAdmin: {
            addressMailing: {
                address1: "3400 State St",
                city: "Chicago",
                country: "United States",
                postalCode: "67098",
                state: "IL",
            },
            email: "admin@email.com",
            fax: "1-245-534-2242",
            jobTitle: "Admin",
            nameFirst: "John",
            nameLast: "Doe",
            nameMiddle: "",
            organization: "Microsoft Inc.",
            phone: "1-245-534-2242",
        },
        contactBilling: {
            addressMailing: {
                address1: "3400 State St",
                city: "Chicago",
                country: "United States",
                postalCode: "67098",
                state: "IL",
            },
            email: "billing@email.com",
            fax: "1-245-534-2242",
            jobTitle: "Billing",
            nameFirst: "John",
            nameLast: "Doe",
            nameMiddle: "",
            organization: "Microsoft Inc.",
            phone: "1-245-534-2242",
        },
        contactRegistrant: {
            addressMailing: {
                address1: "3400 State St",
                city: "Chicago",
                country: "United States",
                postalCode: "67098",
                state: "IL",
            },
            email: "registrant@email.com",
            fax: "1-245-534-2242",
            jobTitle: "Registrant",
            nameFirst: "John",
            nameLast: "Doe",
            nameMiddle: "",
            organization: "Microsoft Inc.",
            phone: "1-245-534-2242",
        },
        contactTech: {
            addressMailing: {
                address1: "3400 State St",
                city: "Chicago",
                country: "United States",
                postalCode: "67098",
                state: "IL",
            },
            email: "tech@email.com",
            fax: "1-245-534-2242",
            jobTitle: "Tech",
            nameFirst: "John",
            nameLast: "Doe",
            nameMiddle: "",
            organization: "Microsoft Inc.",
            phone: "1-245-534-2242",
        },
        dnsType: azure_native.domainregistration.DnsType.DefaultDomainRegistrarDns,
        domainName: "example.com",
        location: "global",
        privacy: false,
        resourceGroupName: "testrg123",
        tags: {},
    });
    
    resources:
      domain:
        type: azure-native:domainregistration:Domain
        properties:
          authCode: exampleAuthCode
          autoRenew: true
          consent:
            agreedAt: 2021-09-10T19:30:53Z
            agreedBy: 192.0.2.1
            agreementKeys:
              - agreementKey1
          contactAdmin:
            addressMailing:
              address1: 3400 State St
              city: Chicago
              country: United States
              postalCode: '67098'
              state: IL
            email: admin@email.com
            fax: 1-245-534-2242
            jobTitle: Admin
            nameFirst: John
            nameLast: Doe
            nameMiddle:
            organization: Microsoft Inc.
            phone: 1-245-534-2242
          contactBilling:
            addressMailing:
              address1: 3400 State St
              city: Chicago
              country: United States
              postalCode: '67098'
              state: IL
            email: billing@email.com
            fax: 1-245-534-2242
            jobTitle: Billing
            nameFirst: John
            nameLast: Doe
            nameMiddle:
            organization: Microsoft Inc.
            phone: 1-245-534-2242
          contactRegistrant:
            addressMailing:
              address1: 3400 State St
              city: Chicago
              country: United States
              postalCode: '67098'
              state: IL
            email: registrant@email.com
            fax: 1-245-534-2242
            jobTitle: Registrant
            nameFirst: John
            nameLast: Doe
            nameMiddle:
            organization: Microsoft Inc.
            phone: 1-245-534-2242
          contactTech:
            addressMailing:
              address1: 3400 State St
              city: Chicago
              country: United States
              postalCode: '67098'
              state: IL
            email: tech@email.com
            fax: 1-245-534-2242
            jobTitle: Tech
            nameFirst: John
            nameLast: Doe
            nameMiddle:
            organization: Microsoft Inc.
            phone: 1-245-534-2242
          dnsType: DefaultDomainRegistrarDns
          domainName: example.com
          location: global
          privacy: false
          resourceGroupName: testrg123
          tags: {}
    

    Create Domain Resource

    new Domain(name: string, args: DomainArgs, opts?: CustomResourceOptions);
    @overload
    def Domain(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               auth_code: Optional[str] = None,
               auto_renew: Optional[bool] = None,
               consent: Optional[DomainPurchaseConsentArgs] = None,
               contact_admin: Optional[ContactArgs] = None,
               contact_billing: Optional[ContactArgs] = None,
               contact_registrant: Optional[ContactArgs] = None,
               contact_tech: Optional[ContactArgs] = None,
               dns_type: Optional[DnsType] = None,
               dns_zone_id: Optional[str] = None,
               domain_name: Optional[str] = None,
               kind: Optional[str] = None,
               location: Optional[str] = None,
               privacy: Optional[bool] = None,
               resource_group_name: Optional[str] = None,
               tags: Optional[Mapping[str, str]] = None,
               target_dns_type: Optional[DnsType] = None)
    @overload
    def Domain(resource_name: str,
               args: DomainArgs,
               opts: Optional[ResourceOptions] = None)
    func NewDomain(ctx *Context, name string, args DomainArgs, opts ...ResourceOption) (*Domain, error)
    public Domain(string name, DomainArgs args, CustomResourceOptions? opts = null)
    public Domain(String name, DomainArgs args)
    public Domain(String name, DomainArgs args, CustomResourceOptions options)
    
    type: azure-native:domainregistration:Domain
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args DomainArgs
    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 DomainArgs
    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 DomainArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DomainArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DomainArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Consent Pulumi.AzureNative.DomainRegistration.Inputs.DomainPurchaseConsent
    Legal agreement consent.
    ContactAdmin Pulumi.AzureNative.DomainRegistration.Inputs.Contact
    Administrative contact.
    ContactBilling Pulumi.AzureNative.DomainRegistration.Inputs.Contact
    Billing contact.
    ContactRegistrant Pulumi.AzureNative.DomainRegistration.Inputs.Contact
    Registrant contact.
    ContactTech Pulumi.AzureNative.DomainRegistration.Inputs.Contact
    Technical contact.
    ResourceGroupName string
    Name of the resource group to which the resource belongs.
    AuthCode string
    AutoRenew bool
    true if the domain should be automatically renewed; otherwise, false.
    DnsType Pulumi.AzureNative.DomainRegistration.DnsType
    Current DNS type
    DnsZoneId string
    Azure DNS Zone to use
    DomainName string
    Name of the domain.
    Kind string
    Kind of resource.
    Location string
    Resource Location.
    Privacy bool
    true if domain privacy is enabled for this domain; otherwise, false.
    Tags Dictionary<string, string>
    Resource tags.
    TargetDnsType Pulumi.AzureNative.DomainRegistration.DnsType
    Target DNS type (would be used for migration)
    Consent DomainPurchaseConsentArgs
    Legal agreement consent.
    ContactAdmin ContactArgs
    Administrative contact.
    ContactBilling ContactArgs
    Billing contact.
    ContactRegistrant ContactArgs
    Registrant contact.
    ContactTech ContactArgs
    Technical contact.
    ResourceGroupName string
    Name of the resource group to which the resource belongs.
    AuthCode string
    AutoRenew bool
    true if the domain should be automatically renewed; otherwise, false.
    DnsType DnsType
    Current DNS type
    DnsZoneId string
    Azure DNS Zone to use
    DomainName string
    Name of the domain.
    Kind string
    Kind of resource.
    Location string
    Resource Location.
    Privacy bool
    true if domain privacy is enabled for this domain; otherwise, false.
    Tags map[string]string
    Resource tags.
    TargetDnsType DnsType
    Target DNS type (would be used for migration)
    consent DomainPurchaseConsent
    Legal agreement consent.
    contactAdmin Contact
    Administrative contact.
    contactBilling Contact
    Billing contact.
    contactRegistrant Contact
    Registrant contact.
    contactTech Contact
    Technical contact.
    resourceGroupName String
    Name of the resource group to which the resource belongs.
    authCode String
    autoRenew Boolean
    true if the domain should be automatically renewed; otherwise, false.
    dnsType DnsType
    Current DNS type
    dnsZoneId String
    Azure DNS Zone to use
    domainName String
    Name of the domain.
    kind String
    Kind of resource.
    location String
    Resource Location.
    privacy Boolean
    true if domain privacy is enabled for this domain; otherwise, false.
    tags Map<String,String>
    Resource tags.
    targetDnsType DnsType
    Target DNS type (would be used for migration)
    consent DomainPurchaseConsent
    Legal agreement consent.
    contactAdmin Contact
    Administrative contact.
    contactBilling Contact
    Billing contact.
    contactRegistrant Contact
    Registrant contact.
    contactTech Contact
    Technical contact.
    resourceGroupName string
    Name of the resource group to which the resource belongs.
    authCode string
    autoRenew boolean
    true if the domain should be automatically renewed; otherwise, false.
    dnsType DnsType
    Current DNS type
    dnsZoneId string
    Azure DNS Zone to use
    domainName string
    Name of the domain.
    kind string
    Kind of resource.
    location string
    Resource Location.
    privacy boolean
    true if domain privacy is enabled for this domain; otherwise, false.
    tags {[key: string]: string}
    Resource tags.
    targetDnsType DnsType
    Target DNS type (would be used for migration)
    consent DomainPurchaseConsentArgs
    Legal agreement consent.
    contact_admin ContactArgs
    Administrative contact.
    contact_billing ContactArgs
    Billing contact.
    contact_registrant ContactArgs
    Registrant contact.
    contact_tech ContactArgs
    Technical contact.
    resource_group_name str
    Name of the resource group to which the resource belongs.
    auth_code str
    auto_renew bool
    true if the domain should be automatically renewed; otherwise, false.
    dns_type DnsType
    Current DNS type
    dns_zone_id str
    Azure DNS Zone to use
    domain_name str
    Name of the domain.
    kind str
    Kind of resource.
    location str
    Resource Location.
    privacy bool
    true if domain privacy is enabled for this domain; otherwise, false.
    tags Mapping[str, str]
    Resource tags.
    target_dns_type DnsType
    Target DNS type (would be used for migration)
    consent Property Map
    Legal agreement consent.
    contactAdmin Property Map
    Administrative contact.
    contactBilling Property Map
    Billing contact.
    contactRegistrant Property Map
    Registrant contact.
    contactTech Property Map
    Technical contact.
    resourceGroupName String
    Name of the resource group to which the resource belongs.
    authCode String
    autoRenew Boolean
    true if the domain should be automatically renewed; otherwise, false.
    dnsType "AzureDns" | "DefaultDomainRegistrarDns"
    Current DNS type
    dnsZoneId String
    Azure DNS Zone to use
    domainName String
    Name of the domain.
    kind String
    Kind of resource.
    location String
    Resource Location.
    privacy Boolean
    true if domain privacy is enabled for this domain; otherwise, false.
    tags Map<String>
    Resource tags.
    targetDnsType "AzureDns" | "DefaultDomainRegistrarDns"
    Target DNS type (would be used for migration)

    Outputs

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

    CreatedTime string
    Domain creation timestamp.
    DomainNotRenewableReasons List<string>
    Reasons why domain is not renewable.
    ExpirationTime string
    Domain expiration timestamp.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastRenewedTime string
    Timestamp when the domain was renewed last time.
    ManagedHostNames List<Pulumi.AzureNative.DomainRegistration.Outputs.HostNameResponse>
    All hostnames derived from the domain and assigned to Azure resources.
    Name string
    Resource Name.
    NameServers List<string>
    Name servers.
    ProvisioningState string
    Domain provisioning state.
    ReadyForDnsRecordManagement bool
    true if Azure can assign this domain to App Service apps; otherwise, false. This value will be true if domain registration status is active and it is hosted on name servers Azure has programmatic access to.
    RegistrationStatus string
    Domain registration status.
    Type string
    Resource type.
    CreatedTime string
    Domain creation timestamp.
    DomainNotRenewableReasons []string
    Reasons why domain is not renewable.
    ExpirationTime string
    Domain expiration timestamp.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastRenewedTime string
    Timestamp when the domain was renewed last time.
    ManagedHostNames []HostNameResponse
    All hostnames derived from the domain and assigned to Azure resources.
    Name string
    Resource Name.
    NameServers []string
    Name servers.
    ProvisioningState string
    Domain provisioning state.
    ReadyForDnsRecordManagement bool
    true if Azure can assign this domain to App Service apps; otherwise, false. This value will be true if domain registration status is active and it is hosted on name servers Azure has programmatic access to.
    RegistrationStatus string
    Domain registration status.
    Type string
    Resource type.
    createdTime String
    Domain creation timestamp.
    domainNotRenewableReasons List<String>
    Reasons why domain is not renewable.
    expirationTime String
    Domain expiration timestamp.
    id String
    The provider-assigned unique ID for this managed resource.
    lastRenewedTime String
    Timestamp when the domain was renewed last time.
    managedHostNames List<HostNameResponse>
    All hostnames derived from the domain and assigned to Azure resources.
    name String
    Resource Name.
    nameServers List<String>
    Name servers.
    provisioningState String
    Domain provisioning state.
    readyForDnsRecordManagement Boolean
    true if Azure can assign this domain to App Service apps; otherwise, false. This value will be true if domain registration status is active and it is hosted on name servers Azure has programmatic access to.
    registrationStatus String
    Domain registration status.
    type String
    Resource type.
    createdTime string
    Domain creation timestamp.
    domainNotRenewableReasons string[]
    Reasons why domain is not renewable.
    expirationTime string
    Domain expiration timestamp.
    id string
    The provider-assigned unique ID for this managed resource.
    lastRenewedTime string
    Timestamp when the domain was renewed last time.
    managedHostNames HostNameResponse[]
    All hostnames derived from the domain and assigned to Azure resources.
    name string
    Resource Name.
    nameServers string[]
    Name servers.
    provisioningState string
    Domain provisioning state.
    readyForDnsRecordManagement boolean
    true if Azure can assign this domain to App Service apps; otherwise, false. This value will be true if domain registration status is active and it is hosted on name servers Azure has programmatic access to.
    registrationStatus string
    Domain registration status.
    type string
    Resource type.
    created_time str
    Domain creation timestamp.
    domain_not_renewable_reasons Sequence[str]
    Reasons why domain is not renewable.
    expiration_time str
    Domain expiration timestamp.
    id str
    The provider-assigned unique ID for this managed resource.
    last_renewed_time str
    Timestamp when the domain was renewed last time.
    managed_host_names Sequence[HostNameResponse]
    All hostnames derived from the domain and assigned to Azure resources.
    name str
    Resource Name.
    name_servers Sequence[str]
    Name servers.
    provisioning_state str
    Domain provisioning state.
    ready_for_dns_record_management bool
    true if Azure can assign this domain to App Service apps; otherwise, false. This value will be true if domain registration status is active and it is hosted on name servers Azure has programmatic access to.
    registration_status str
    Domain registration status.
    type str
    Resource type.
    createdTime String
    Domain creation timestamp.
    domainNotRenewableReasons List<String>
    Reasons why domain is not renewable.
    expirationTime String
    Domain expiration timestamp.
    id String
    The provider-assigned unique ID for this managed resource.
    lastRenewedTime String
    Timestamp when the domain was renewed last time.
    managedHostNames List<Property Map>
    All hostnames derived from the domain and assigned to Azure resources.
    name String
    Resource Name.
    nameServers List<String>
    Name servers.
    provisioningState String
    Domain provisioning state.
    readyForDnsRecordManagement Boolean
    true if Azure can assign this domain to App Service apps; otherwise, false. This value will be true if domain registration status is active and it is hosted on name servers Azure has programmatic access to.
    registrationStatus String
    Domain registration status.
    type String
    Resource type.

    Supporting Types

    Address, AddressArgs

    Address1 string
    First line of an Address.
    City string
    The city for the address.
    Country string
    The country for the address.
    PostalCode string
    The postal code for the address.
    State string
    The state or province for the address.
    Address2 string
    The second line of the Address. Optional.
    Address1 string
    First line of an Address.
    City string
    The city for the address.
    Country string
    The country for the address.
    PostalCode string
    The postal code for the address.
    State string
    The state or province for the address.
    Address2 string
    The second line of the Address. Optional.
    address1 String
    First line of an Address.
    city String
    The city for the address.
    country String
    The country for the address.
    postalCode String
    The postal code for the address.
    state String
    The state or province for the address.
    address2 String
    The second line of the Address. Optional.
    address1 string
    First line of an Address.
    city string
    The city for the address.
    country string
    The country for the address.
    postalCode string
    The postal code for the address.
    state string
    The state or province for the address.
    address2 string
    The second line of the Address. Optional.
    address1 str
    First line of an Address.
    city str
    The city for the address.
    country str
    The country for the address.
    postal_code str
    The postal code for the address.
    state str
    The state or province for the address.
    address2 str
    The second line of the Address. Optional.
    address1 String
    First line of an Address.
    city String
    The city for the address.
    country String
    The country for the address.
    postalCode String
    The postal code for the address.
    state String
    The state or province for the address.
    address2 String
    The second line of the Address. Optional.

    Contact, ContactArgs

    Email string
    Email address.
    NameFirst string
    First name.
    NameLast string
    Last name.
    Phone string
    Phone number.
    AddressMailing Pulumi.AzureNative.DomainRegistration.Inputs.Address
    Mailing address.
    Fax string
    Fax number.
    JobTitle string
    Job title.
    NameMiddle string
    Middle name.
    Organization string
    Organization contact belongs to.
    Email string
    Email address.
    NameFirst string
    First name.
    NameLast string
    Last name.
    Phone string
    Phone number.
    AddressMailing Address
    Mailing address.
    Fax string
    Fax number.
    JobTitle string
    Job title.
    NameMiddle string
    Middle name.
    Organization string
    Organization contact belongs to.
    email String
    Email address.
    nameFirst String
    First name.
    nameLast String
    Last name.
    phone String
    Phone number.
    addressMailing Address
    Mailing address.
    fax String
    Fax number.
    jobTitle String
    Job title.
    nameMiddle String
    Middle name.
    organization String
    Organization contact belongs to.
    email string
    Email address.
    nameFirst string
    First name.
    nameLast string
    Last name.
    phone string
    Phone number.
    addressMailing Address
    Mailing address.
    fax string
    Fax number.
    jobTitle string
    Job title.
    nameMiddle string
    Middle name.
    organization string
    Organization contact belongs to.
    email str
    Email address.
    name_first str
    First name.
    name_last str
    Last name.
    phone str
    Phone number.
    address_mailing Address
    Mailing address.
    fax str
    Fax number.
    job_title str
    Job title.
    name_middle str
    Middle name.
    organization str
    Organization contact belongs to.
    email String
    Email address.
    nameFirst String
    First name.
    nameLast String
    Last name.
    phone String
    Phone number.
    addressMailing Property Map
    Mailing address.
    fax String
    Fax number.
    jobTitle String
    Job title.
    nameMiddle String
    Middle name.
    organization String
    Organization contact belongs to.

    DnsType, DnsTypeArgs

    AzureDns
    AzureDns
    DefaultDomainRegistrarDns
    DefaultDomainRegistrarDns
    DnsTypeAzureDns
    AzureDns
    DnsTypeDefaultDomainRegistrarDns
    DefaultDomainRegistrarDns
    AzureDns
    AzureDns
    DefaultDomainRegistrarDns
    DefaultDomainRegistrarDns
    AzureDns
    AzureDns
    DefaultDomainRegistrarDns
    DefaultDomainRegistrarDns
    AZURE_DNS
    AzureDns
    DEFAULT_DOMAIN_REGISTRAR_DNS
    DefaultDomainRegistrarDns
    "AzureDns"
    AzureDns
    "DefaultDomainRegistrarDns"
    DefaultDomainRegistrarDns

    DomainPurchaseConsent, DomainPurchaseConsentArgs

    AgreedAt string
    Timestamp when the agreements were accepted.
    AgreedBy string
    Client IP address.
    AgreementKeys List<string>
    List of applicable legal agreement keys. This list can be retrieved using ListLegalAgreements API under TopLevelDomain resource.
    AgreedAt string
    Timestamp when the agreements were accepted.
    AgreedBy string
    Client IP address.
    AgreementKeys []string
    List of applicable legal agreement keys. This list can be retrieved using ListLegalAgreements API under TopLevelDomain resource.
    agreedAt String
    Timestamp when the agreements were accepted.
    agreedBy String
    Client IP address.
    agreementKeys List<String>
    List of applicable legal agreement keys. This list can be retrieved using ListLegalAgreements API under TopLevelDomain resource.
    agreedAt string
    Timestamp when the agreements were accepted.
    agreedBy string
    Client IP address.
    agreementKeys string[]
    List of applicable legal agreement keys. This list can be retrieved using ListLegalAgreements API under TopLevelDomain resource.
    agreed_at str
    Timestamp when the agreements were accepted.
    agreed_by str
    Client IP address.
    agreement_keys Sequence[str]
    List of applicable legal agreement keys. This list can be retrieved using ListLegalAgreements API under TopLevelDomain resource.
    agreedAt String
    Timestamp when the agreements were accepted.
    agreedBy String
    Client IP address.
    agreementKeys List<String>
    List of applicable legal agreement keys. This list can be retrieved using ListLegalAgreements API under TopLevelDomain resource.

    HostNameResponse, HostNameResponseArgs

    AzureResourceName string
    Name of the Azure resource the hostname is assigned to. If it is assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the app name.
    AzureResourceType string
    Type of the Azure resource the hostname is assigned to.
    CustomHostNameDnsRecordType string
    Type of the DNS record.
    HostNameType string
    Type of the hostname.
    Name string
    Name of the hostname.
    SiteNames List<string>
    List of apps the hostname is assigned to. This list will have more than one app only if the hostname is pointing to a Traffic Manager.
    AzureResourceName string
    Name of the Azure resource the hostname is assigned to. If it is assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the app name.
    AzureResourceType string
    Type of the Azure resource the hostname is assigned to.
    CustomHostNameDnsRecordType string
    Type of the DNS record.
    HostNameType string
    Type of the hostname.
    Name string
    Name of the hostname.
    SiteNames []string
    List of apps the hostname is assigned to. This list will have more than one app only if the hostname is pointing to a Traffic Manager.
    azureResourceName String
    Name of the Azure resource the hostname is assigned to. If it is assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the app name.
    azureResourceType String
    Type of the Azure resource the hostname is assigned to.
    customHostNameDnsRecordType String
    Type of the DNS record.
    hostNameType String
    Type of the hostname.
    name String
    Name of the hostname.
    siteNames List<String>
    List of apps the hostname is assigned to. This list will have more than one app only if the hostname is pointing to a Traffic Manager.
    azureResourceName string
    Name of the Azure resource the hostname is assigned to. If it is assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the app name.
    azureResourceType string
    Type of the Azure resource the hostname is assigned to.
    customHostNameDnsRecordType string
    Type of the DNS record.
    hostNameType string
    Type of the hostname.
    name string
    Name of the hostname.
    siteNames string[]
    List of apps the hostname is assigned to. This list will have more than one app only if the hostname is pointing to a Traffic Manager.
    azure_resource_name str
    Name of the Azure resource the hostname is assigned to. If it is assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the app name.
    azure_resource_type str
    Type of the Azure resource the hostname is assigned to.
    custom_host_name_dns_record_type str
    Type of the DNS record.
    host_name_type str
    Type of the hostname.
    name str
    Name of the hostname.
    site_names Sequence[str]
    List of apps the hostname is assigned to. This list will have more than one app only if the hostname is pointing to a Traffic Manager.
    azureResourceName String
    Name of the Azure resource the hostname is assigned to. If it is assigned to a Traffic Manager then it will be the Traffic Manager name otherwise it will be the app name.
    azureResourceType String
    Type of the Azure resource the hostname is assigned to.
    customHostNameDnsRecordType String
    Type of the DNS record.
    hostNameType String
    Type of the hostname.
    name String
    Name of the hostname.
    siteNames List<String>
    List of apps the hostname is assigned to. This list will have more than one app only if the hostname is pointing to a Traffic Manager.

    Import

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

    $ pulumi import azure-native:domainregistration:Domain example.com /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName} 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi