1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. RecordSet
Azure Native v1.103.0 published on Friday, Jun 2, 2023 by Pulumi

azure-native.network.RecordSet

Explore with Pulumi AI

azure-native logo
Azure Native v1.103.0 published on Friday, Jun 2, 2023 by Pulumi

    Describes a DNS record set (a collection of DNS records with the same name and type). API Version: 2018-05-01.

    Example Usage

    Create A recordset

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
        {
            ARecords = new[]
            {
                new AzureNative.Network.Inputs.ARecordArgs
                {
                    Ipv4Address = "127.0.0.1",
                },
            },
            Metadata = 
            {
                { "key1", "value1" },
            },
            RecordType = "A",
            RelativeRecordSetName = "record1",
            ResourceGroupName = "rg1",
            Ttl = 3600,
            ZoneName = "zone1",
        });
    
    });
    
    package main
    
    import (
    	network "github.com/pulumi/pulumi-azure-native-sdk/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
    			ARecords: []network.ARecordArgs{
    				{
    					Ipv4Address: pulumi.String("127.0.0.1"),
    				},
    			},
    			Metadata: pulumi.StringMap{
    				"key1": pulumi.String("value1"),
    			},
    			RecordType:            pulumi.String("A"),
    			RelativeRecordSetName: pulumi.String("record1"),
    			ResourceGroupName:     pulumi.String("rg1"),
    			Ttl:                   pulumi.Float64(3600),
    			ZoneName:              pulumi.String("zone1"),
    		})
    		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.network.RecordSet;
    import com.pulumi.azurenative.network.RecordSetArgs;
    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 recordSet = new RecordSet("recordSet", RecordSetArgs.builder()        
                .aRecords(Map.of("ipv4Address", "127.0.0.1"))
                .metadata(Map.of("key1", "value1"))
                .recordType("A")
                .relativeRecordSetName("record1")
                .resourceGroupName("rg1")
                .ttl(3600)
                .zoneName("zone1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    record_set = azure_native.network.RecordSet("recordSet",
        a_records=[azure_native.network.ARecordArgs(
            ipv4_address="127.0.0.1",
        )],
        metadata={
            "key1": "value1",
        },
        record_type="A",
        relative_record_set_name="record1",
        resource_group_name="rg1",
        ttl=3600,
        zone_name="zone1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const recordSet = new azure_native.network.RecordSet("recordSet", {
        aRecords: [{
            ipv4Address: "127.0.0.1",
        }],
        metadata: {
            key1: "value1",
        },
        recordType: "A",
        relativeRecordSetName: "record1",
        resourceGroupName: "rg1",
        ttl: 3600,
        zoneName: "zone1",
    });
    
    resources:
      recordSet:
        type: azure-native:network:RecordSet
        properties:
          aRecords:
            - ipv4Address: 127.0.0.1
          metadata:
            key1: value1
          recordType: A
          relativeRecordSetName: record1
          resourceGroupName: rg1
          ttl: 3600
          zoneName: zone1
    

    Create A recordset with alias target resource

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
        {
            Metadata = 
            {
                { "key1", "value1" },
            },
            RecordType = "A",
            RelativeRecordSetName = "record1",
            ResourceGroupName = "rg1",
            TargetResource = new AzureNative.Network.Inputs.SubResourceArgs
            {
                Id = "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2",
            },
            Ttl = 3600,
            ZoneName = "zone1",
        });
    
    });
    
    package main
    
    import (
    	network "github.com/pulumi/pulumi-azure-native-sdk/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
    			Metadata: pulumi.StringMap{
    				"key1": pulumi.String("value1"),
    			},
    			RecordType:            pulumi.String("A"),
    			RelativeRecordSetName: pulumi.String("record1"),
    			ResourceGroupName:     pulumi.String("rg1"),
    			TargetResource: &network.SubResourceArgs{
    				Id: pulumi.String("/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2"),
    			},
    			Ttl:      pulumi.Float64(3600),
    			ZoneName: pulumi.String("zone1"),
    		})
    		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.network.RecordSet;
    import com.pulumi.azurenative.network.RecordSetArgs;
    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 recordSet = new RecordSet("recordSet", RecordSetArgs.builder()        
                .metadata(Map.of("key1", "value1"))
                .recordType("A")
                .relativeRecordSetName("record1")
                .resourceGroupName("rg1")
                .targetResource(Map.of("id", "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2"))
                .ttl(3600)
                .zoneName("zone1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    record_set = azure_native.network.RecordSet("recordSet",
        metadata={
            "key1": "value1",
        },
        record_type="A",
        relative_record_set_name="record1",
        resource_group_name="rg1",
        target_resource=azure_native.network.SubResourceArgs(
            id="/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2",
        ),
        ttl=3600,
        zone_name="zone1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const recordSet = new azure_native.network.RecordSet("recordSet", {
        metadata: {
            key1: "value1",
        },
        recordType: "A",
        relativeRecordSetName: "record1",
        resourceGroupName: "rg1",
        targetResource: {
            id: "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2",
        },
        ttl: 3600,
        zoneName: "zone1",
    });
    
    resources:
      recordSet:
        type: azure-native:network:RecordSet
        properties:
          metadata:
            key1: value1
          recordType: A
          relativeRecordSetName: record1
          resourceGroupName: rg1
          targetResource:
            id: /subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2
          ttl: 3600
          zoneName: zone1
    

    Create AAAA recordset

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
        {
            AaaaRecords = new[]
            {
                new AzureNative.Network.Inputs.AaaaRecordArgs
                {
                    Ipv6Address = "::1",
                },
            },
            Metadata = 
            {
                { "key1", "value1" },
            },
            RecordType = "AAAA",
            RelativeRecordSetName = "record1",
            ResourceGroupName = "rg1",
            Ttl = 3600,
            ZoneName = "zone1",
        });
    
    });
    
    package main
    
    import (
    	network "github.com/pulumi/pulumi-azure-native-sdk/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
    			AaaaRecords: []network.AaaaRecordArgs{
    				{
    					Ipv6Address: pulumi.String("::1"),
    				},
    			},
    			Metadata: pulumi.StringMap{
    				"key1": pulumi.String("value1"),
    			},
    			RecordType:            pulumi.String("AAAA"),
    			RelativeRecordSetName: pulumi.String("record1"),
    			ResourceGroupName:     pulumi.String("rg1"),
    			Ttl:                   pulumi.Float64(3600),
    			ZoneName:              pulumi.String("zone1"),
    		})
    		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.network.RecordSet;
    import com.pulumi.azurenative.network.RecordSetArgs;
    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 recordSet = new RecordSet("recordSet", RecordSetArgs.builder()        
                .aaaaRecords(Map.of("ipv6Address", "::1"))
                .metadata(Map.of("key1", "value1"))
                .recordType("AAAA")
                .relativeRecordSetName("record1")
                .resourceGroupName("rg1")
                .ttl(3600)
                .zoneName("zone1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    record_set = azure_native.network.RecordSet("recordSet",
        aaaa_records=[azure_native.network.AaaaRecordArgs(
            ipv6_address="::1",
        )],
        metadata={
            "key1": "value1",
        },
        record_type="AAAA",
        relative_record_set_name="record1",
        resource_group_name="rg1",
        ttl=3600,
        zone_name="zone1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const recordSet = new azure_native.network.RecordSet("recordSet", {
        aaaaRecords: [{
            ipv6Address: "::1",
        }],
        metadata: {
            key1: "value1",
        },
        recordType: "AAAA",
        relativeRecordSetName: "record1",
        resourceGroupName: "rg1",
        ttl: 3600,
        zoneName: "zone1",
    });
    
    resources:
      recordSet:
        type: azure-native:network:RecordSet
        properties:
          aaaaRecords:
            - ipv6Address: ::1
          metadata:
            key1: value1
          recordType: AAAA
          relativeRecordSetName: record1
          resourceGroupName: rg1
          ttl: 3600
          zoneName: zone1
    

    Create CAA recordset

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
        {
            CaaRecords = new[]
            {
                new AzureNative.Network.Inputs.CaaRecordArgs
                {
                    Flags = 0,
                    Tag = "issue",
                    Value = "ca.contoso.com",
                },
            },
            Metadata = 
            {
                { "key1", "value1" },
            },
            RecordType = "CAA",
            RelativeRecordSetName = "record1",
            ResourceGroupName = "rg1",
            Ttl = 3600,
            ZoneName = "zone1",
        });
    
    });
    
    package main
    
    import (
    	network "github.com/pulumi/pulumi-azure-native-sdk/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
    			CaaRecords: []network.CaaRecordArgs{
    				{
    					Flags: pulumi.Int(0),
    					Tag:   pulumi.String("issue"),
    					Value: pulumi.String("ca.contoso.com"),
    				},
    			},
    			Metadata: pulumi.StringMap{
    				"key1": pulumi.String("value1"),
    			},
    			RecordType:            pulumi.String("CAA"),
    			RelativeRecordSetName: pulumi.String("record1"),
    			ResourceGroupName:     pulumi.String("rg1"),
    			Ttl:                   pulumi.Float64(3600),
    			ZoneName:              pulumi.String("zone1"),
    		})
    		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.network.RecordSet;
    import com.pulumi.azurenative.network.RecordSetArgs;
    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 recordSet = new RecordSet("recordSet", RecordSetArgs.builder()        
                .caaRecords(Map.ofEntries(
                    Map.entry("flags", 0),
                    Map.entry("tag", "issue"),
                    Map.entry("value", "ca.contoso.com")
                ))
                .metadata(Map.of("key1", "value1"))
                .recordType("CAA")
                .relativeRecordSetName("record1")
                .resourceGroupName("rg1")
                .ttl(3600)
                .zoneName("zone1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    record_set = azure_native.network.RecordSet("recordSet",
        caa_records=[azure_native.network.CaaRecordArgs(
            flags=0,
            tag="issue",
            value="ca.contoso.com",
        )],
        metadata={
            "key1": "value1",
        },
        record_type="CAA",
        relative_record_set_name="record1",
        resource_group_name="rg1",
        ttl=3600,
        zone_name="zone1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const recordSet = new azure_native.network.RecordSet("recordSet", {
        caaRecords: [{
            flags: 0,
            tag: "issue",
            value: "ca.contoso.com",
        }],
        metadata: {
            key1: "value1",
        },
        recordType: "CAA",
        relativeRecordSetName: "record1",
        resourceGroupName: "rg1",
        ttl: 3600,
        zoneName: "zone1",
    });
    
    resources:
      recordSet:
        type: azure-native:network:RecordSet
        properties:
          caaRecords:
            - flags: 0
              tag: issue
              value: ca.contoso.com
          metadata:
            key1: value1
          recordType: CAA
          relativeRecordSetName: record1
          resourceGroupName: rg1
          ttl: 3600
          zoneName: zone1
    

    Create CNAME recordset

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
        {
            CnameRecord = new AzureNative.Network.Inputs.CnameRecordArgs
            {
                Cname = "contoso.com",
            },
            Metadata = 
            {
                { "key1", "value1" },
            },
            RecordType = "CNAME",
            RelativeRecordSetName = "record1",
            ResourceGroupName = "rg1",
            Ttl = 3600,
            ZoneName = "zone1",
        });
    
    });
    
    package main
    
    import (
    	network "github.com/pulumi/pulumi-azure-native-sdk/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
    			CnameRecord: &network.CnameRecordArgs{
    				Cname: pulumi.String("contoso.com"),
    			},
    			Metadata: pulumi.StringMap{
    				"key1": pulumi.String("value1"),
    			},
    			RecordType:            pulumi.String("CNAME"),
    			RelativeRecordSetName: pulumi.String("record1"),
    			ResourceGroupName:     pulumi.String("rg1"),
    			Ttl:                   pulumi.Float64(3600),
    			ZoneName:              pulumi.String("zone1"),
    		})
    		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.network.RecordSet;
    import com.pulumi.azurenative.network.RecordSetArgs;
    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 recordSet = new RecordSet("recordSet", RecordSetArgs.builder()        
                .cnameRecord(Map.of("cname", "contoso.com"))
                .metadata(Map.of("key1", "value1"))
                .recordType("CNAME")
                .relativeRecordSetName("record1")
                .resourceGroupName("rg1")
                .ttl(3600)
                .zoneName("zone1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    record_set = azure_native.network.RecordSet("recordSet",
        cname_record=azure_native.network.CnameRecordArgs(
            cname="contoso.com",
        ),
        metadata={
            "key1": "value1",
        },
        record_type="CNAME",
        relative_record_set_name="record1",
        resource_group_name="rg1",
        ttl=3600,
        zone_name="zone1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const recordSet = new azure_native.network.RecordSet("recordSet", {
        cnameRecord: {
            cname: "contoso.com",
        },
        metadata: {
            key1: "value1",
        },
        recordType: "CNAME",
        relativeRecordSetName: "record1",
        resourceGroupName: "rg1",
        ttl: 3600,
        zoneName: "zone1",
    });
    
    resources:
      recordSet:
        type: azure-native:network:RecordSet
        properties:
          cnameRecord:
            cname: contoso.com
          metadata:
            key1: value1
          recordType: CNAME
          relativeRecordSetName: record1
          resourceGroupName: rg1
          ttl: 3600
          zoneName: zone1
    

    Create MX recordset

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
        {
            Metadata = 
            {
                { "key1", "value1" },
            },
            MxRecords = new[]
            {
                new AzureNative.Network.Inputs.MxRecordArgs
                {
                    Exchange = "mail.contoso.com",
                    Preference = 0,
                },
            },
            RecordType = "MX",
            RelativeRecordSetName = "record1",
            ResourceGroupName = "rg1",
            Ttl = 3600,
            ZoneName = "zone1",
        });
    
    });
    
    package main
    
    import (
    	network "github.com/pulumi/pulumi-azure-native-sdk/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
    			Metadata: pulumi.StringMap{
    				"key1": pulumi.String("value1"),
    			},
    			MxRecords: []network.MxRecordArgs{
    				{
    					Exchange:   pulumi.String("mail.contoso.com"),
    					Preference: pulumi.Int(0),
    				},
    			},
    			RecordType:            pulumi.String("MX"),
    			RelativeRecordSetName: pulumi.String("record1"),
    			ResourceGroupName:     pulumi.String("rg1"),
    			Ttl:                   pulumi.Float64(3600),
    			ZoneName:              pulumi.String("zone1"),
    		})
    		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.network.RecordSet;
    import com.pulumi.azurenative.network.RecordSetArgs;
    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 recordSet = new RecordSet("recordSet", RecordSetArgs.builder()        
                .metadata(Map.of("key1", "value1"))
                .mxRecords(Map.ofEntries(
                    Map.entry("exchange", "mail.contoso.com"),
                    Map.entry("preference", 0)
                ))
                .recordType("MX")
                .relativeRecordSetName("record1")
                .resourceGroupName("rg1")
                .ttl(3600)
                .zoneName("zone1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    record_set = azure_native.network.RecordSet("recordSet",
        metadata={
            "key1": "value1",
        },
        mx_records=[azure_native.network.MxRecordArgs(
            exchange="mail.contoso.com",
            preference=0,
        )],
        record_type="MX",
        relative_record_set_name="record1",
        resource_group_name="rg1",
        ttl=3600,
        zone_name="zone1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const recordSet = new azure_native.network.RecordSet("recordSet", {
        metadata: {
            key1: "value1",
        },
        mxRecords: [{
            exchange: "mail.contoso.com",
            preference: 0,
        }],
        recordType: "MX",
        relativeRecordSetName: "record1",
        resourceGroupName: "rg1",
        ttl: 3600,
        zoneName: "zone1",
    });
    
    resources:
      recordSet:
        type: azure-native:network:RecordSet
        properties:
          metadata:
            key1: value1
          mxRecords:
            - exchange: mail.contoso.com
              preference: 0
          recordType: MX
          relativeRecordSetName: record1
          resourceGroupName: rg1
          ttl: 3600
          zoneName: zone1
    

    Create NS recordset

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
        {
            Metadata = 
            {
                { "key1", "value1" },
            },
            NsRecords = new[]
            {
                new AzureNative.Network.Inputs.NsRecordArgs
                {
                    Nsdname = "ns1.contoso.com",
                },
            },
            RecordType = "NS",
            RelativeRecordSetName = "record1",
            ResourceGroupName = "rg1",
            Ttl = 3600,
            ZoneName = "zone1",
        });
    
    });
    
    package main
    
    import (
    	network "github.com/pulumi/pulumi-azure-native-sdk/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
    			Metadata: pulumi.StringMap{
    				"key1": pulumi.String("value1"),
    			},
    			NsRecords: []network.NsRecordArgs{
    				{
    					Nsdname: pulumi.String("ns1.contoso.com"),
    				},
    			},
    			RecordType:            pulumi.String("NS"),
    			RelativeRecordSetName: pulumi.String("record1"),
    			ResourceGroupName:     pulumi.String("rg1"),
    			Ttl:                   pulumi.Float64(3600),
    			ZoneName:              pulumi.String("zone1"),
    		})
    		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.network.RecordSet;
    import com.pulumi.azurenative.network.RecordSetArgs;
    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 recordSet = new RecordSet("recordSet", RecordSetArgs.builder()        
                .metadata(Map.of("key1", "value1"))
                .nsRecords(Map.of("nsdname", "ns1.contoso.com"))
                .recordType("NS")
                .relativeRecordSetName("record1")
                .resourceGroupName("rg1")
                .ttl(3600)
                .zoneName("zone1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    record_set = azure_native.network.RecordSet("recordSet",
        metadata={
            "key1": "value1",
        },
        ns_records=[azure_native.network.NsRecordArgs(
            nsdname="ns1.contoso.com",
        )],
        record_type="NS",
        relative_record_set_name="record1",
        resource_group_name="rg1",
        ttl=3600,
        zone_name="zone1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const recordSet = new azure_native.network.RecordSet("recordSet", {
        metadata: {
            key1: "value1",
        },
        nsRecords: [{
            nsdname: "ns1.contoso.com",
        }],
        recordType: "NS",
        relativeRecordSetName: "record1",
        resourceGroupName: "rg1",
        ttl: 3600,
        zoneName: "zone1",
    });
    
    resources:
      recordSet:
        type: azure-native:network:RecordSet
        properties:
          metadata:
            key1: value1
          nsRecords:
            - nsdname: ns1.contoso.com
          recordType: NS
          relativeRecordSetName: record1
          resourceGroupName: rg1
          ttl: 3600
          zoneName: zone1
    

    Create PTR recordset

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
        {
            Metadata = 
            {
                { "key1", "value1" },
            },
            PtrRecords = new[]
            {
                new AzureNative.Network.Inputs.PtrRecordArgs
                {
                    Ptrdname = "localhost",
                },
            },
            RecordType = "PTR",
            RelativeRecordSetName = "1",
            ResourceGroupName = "rg1",
            Ttl = 3600,
            ZoneName = "0.0.127.in-addr.arpa",
        });
    
    });
    
    package main
    
    import (
    	network "github.com/pulumi/pulumi-azure-native-sdk/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
    			Metadata: pulumi.StringMap{
    				"key1": pulumi.String("value1"),
    			},
    			PtrRecords: []network.PtrRecordArgs{
    				{
    					Ptrdname: pulumi.String("localhost"),
    				},
    			},
    			RecordType:            pulumi.String("PTR"),
    			RelativeRecordSetName: pulumi.String("1"),
    			ResourceGroupName:     pulumi.String("rg1"),
    			Ttl:                   pulumi.Float64(3600),
    			ZoneName:              pulumi.String("0.0.127.in-addr.arpa"),
    		})
    		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.network.RecordSet;
    import com.pulumi.azurenative.network.RecordSetArgs;
    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 recordSet = new RecordSet("recordSet", RecordSetArgs.builder()        
                .metadata(Map.of("key1", "value1"))
                .ptrRecords(Map.of("ptrdname", "localhost"))
                .recordType("PTR")
                .relativeRecordSetName("1")
                .resourceGroupName("rg1")
                .ttl(3600)
                .zoneName("0.0.127.in-addr.arpa")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    record_set = azure_native.network.RecordSet("recordSet",
        metadata={
            "key1": "value1",
        },
        ptr_records=[azure_native.network.PtrRecordArgs(
            ptrdname="localhost",
        )],
        record_type="PTR",
        relative_record_set_name="1",
        resource_group_name="rg1",
        ttl=3600,
        zone_name="0.0.127.in-addr.arpa")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const recordSet = new azure_native.network.RecordSet("recordSet", {
        metadata: {
            key1: "value1",
        },
        ptrRecords: [{
            ptrdname: "localhost",
        }],
        recordType: "PTR",
        relativeRecordSetName: "1",
        resourceGroupName: "rg1",
        ttl: 3600,
        zoneName: "0.0.127.in-addr.arpa",
    });
    
    resources:
      recordSet:
        type: azure-native:network:RecordSet
        properties:
          metadata:
            key1: value1
          ptrRecords:
            - ptrdname: localhost
          recordType: PTR
          relativeRecordSetName: '1'
          resourceGroupName: rg1
          ttl: 3600
          zoneName: 0.0.127.in-addr.arpa
    

    Create SOA recordset

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
        {
            Metadata = 
            {
                { "key1", "value1" },
            },
            RecordType = "SOA",
            RelativeRecordSetName = "@",
            ResourceGroupName = "rg1",
            SoaRecord = new AzureNative.Network.Inputs.SoaRecordArgs
            {
                Email = "hostmaster.contoso.com",
                ExpireTime = 2419200,
                Host = "ns1.contoso.com",
                MinimumTtl = 300,
                RefreshTime = 3600,
                RetryTime = 300,
                SerialNumber = 1,
            },
            Ttl = 3600,
            ZoneName = "zone1",
        });
    
    });
    
    package main
    
    import (
    	network "github.com/pulumi/pulumi-azure-native-sdk/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
    			Metadata: pulumi.StringMap{
    				"key1": pulumi.String("value1"),
    			},
    			RecordType:            pulumi.String("SOA"),
    			RelativeRecordSetName: pulumi.String("@"),
    			ResourceGroupName:     pulumi.String("rg1"),
    			SoaRecord: &network.SoaRecordArgs{
    				Email:        pulumi.String("hostmaster.contoso.com"),
    				ExpireTime:   pulumi.Float64(2419200),
    				Host:         pulumi.String("ns1.contoso.com"),
    				MinimumTtl:   pulumi.Float64(300),
    				RefreshTime:  pulumi.Float64(3600),
    				RetryTime:    pulumi.Float64(300),
    				SerialNumber: pulumi.Float64(1),
    			},
    			Ttl:      pulumi.Float64(3600),
    			ZoneName: pulumi.String("zone1"),
    		})
    		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.network.RecordSet;
    import com.pulumi.azurenative.network.RecordSetArgs;
    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 recordSet = new RecordSet("recordSet", RecordSetArgs.builder()        
                .metadata(Map.of("key1", "value1"))
                .recordType("SOA")
                .relativeRecordSetName("@")
                .resourceGroupName("rg1")
                .soaRecord(Map.ofEntries(
                    Map.entry("email", "hostmaster.contoso.com"),
                    Map.entry("expireTime", 2419200),
                    Map.entry("host", "ns1.contoso.com"),
                    Map.entry("minimumTtl", 300),
                    Map.entry("refreshTime", 3600),
                    Map.entry("retryTime", 300),
                    Map.entry("serialNumber", 1)
                ))
                .ttl(3600)
                .zoneName("zone1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    record_set = azure_native.network.RecordSet("recordSet",
        metadata={
            "key1": "value1",
        },
        record_type="SOA",
        relative_record_set_name="@",
        resource_group_name="rg1",
        soa_record=azure_native.network.SoaRecordArgs(
            email="hostmaster.contoso.com",
            expire_time=2419200,
            host="ns1.contoso.com",
            minimum_ttl=300,
            refresh_time=3600,
            retry_time=300,
            serial_number=1,
        ),
        ttl=3600,
        zone_name="zone1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const recordSet = new azure_native.network.RecordSet("recordSet", {
        metadata: {
            key1: "value1",
        },
        recordType: "SOA",
        relativeRecordSetName: "@",
        resourceGroupName: "rg1",
        soaRecord: {
            email: "hostmaster.contoso.com",
            expireTime: 2419200,
            host: "ns1.contoso.com",
            minimumTtl: 300,
            refreshTime: 3600,
            retryTime: 300,
            serialNumber: 1,
        },
        ttl: 3600,
        zoneName: "zone1",
    });
    
    resources:
      recordSet:
        type: azure-native:network:RecordSet
        properties:
          metadata:
            key1: value1
          recordType: SOA
          relativeRecordSetName: '@'
          resourceGroupName: rg1
          soaRecord:
            email: hostmaster.contoso.com
            expireTime: 2.4192e+06
            host: ns1.contoso.com
            minimumTtl: 300
            refreshTime: 3600
            retryTime: 300
            serialNumber: 1
          ttl: 3600
          zoneName: zone1
    

    Create SRV recordset

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
        {
            Metadata = 
            {
                { "key1", "value1" },
            },
            RecordType = "SRV",
            RelativeRecordSetName = "record1",
            ResourceGroupName = "rg1",
            SrvRecords = new[]
            {
                new AzureNative.Network.Inputs.SrvRecordArgs
                {
                    Port = 80,
                    Priority = 0,
                    Target = "contoso.com",
                    Weight = 10,
                },
            },
            Ttl = 3600,
            ZoneName = "zone1",
        });
    
    });
    
    package main
    
    import (
    	network "github.com/pulumi/pulumi-azure-native-sdk/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
    			Metadata: pulumi.StringMap{
    				"key1": pulumi.String("value1"),
    			},
    			RecordType:            pulumi.String("SRV"),
    			RelativeRecordSetName: pulumi.String("record1"),
    			ResourceGroupName:     pulumi.String("rg1"),
    			SrvRecords: []network.SrvRecordArgs{
    				{
    					Port:     pulumi.Int(80),
    					Priority: pulumi.Int(0),
    					Target:   pulumi.String("contoso.com"),
    					Weight:   pulumi.Int(10),
    				},
    			},
    			Ttl:      pulumi.Float64(3600),
    			ZoneName: pulumi.String("zone1"),
    		})
    		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.network.RecordSet;
    import com.pulumi.azurenative.network.RecordSetArgs;
    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 recordSet = new RecordSet("recordSet", RecordSetArgs.builder()        
                .metadata(Map.of("key1", "value1"))
                .recordType("SRV")
                .relativeRecordSetName("record1")
                .resourceGroupName("rg1")
                .srvRecords(Map.ofEntries(
                    Map.entry("port", 80),
                    Map.entry("priority", 0),
                    Map.entry("target", "contoso.com"),
                    Map.entry("weight", 10)
                ))
                .ttl(3600)
                .zoneName("zone1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    record_set = azure_native.network.RecordSet("recordSet",
        metadata={
            "key1": "value1",
        },
        record_type="SRV",
        relative_record_set_name="record1",
        resource_group_name="rg1",
        srv_records=[azure_native.network.SrvRecordArgs(
            port=80,
            priority=0,
            target="contoso.com",
            weight=10,
        )],
        ttl=3600,
        zone_name="zone1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const recordSet = new azure_native.network.RecordSet("recordSet", {
        metadata: {
            key1: "value1",
        },
        recordType: "SRV",
        relativeRecordSetName: "record1",
        resourceGroupName: "rg1",
        srvRecords: [{
            port: 80,
            priority: 0,
            target: "contoso.com",
            weight: 10,
        }],
        ttl: 3600,
        zoneName: "zone1",
    });
    
    resources:
      recordSet:
        type: azure-native:network:RecordSet
        properties:
          metadata:
            key1: value1
          recordType: SRV
          relativeRecordSetName: record1
          resourceGroupName: rg1
          srvRecords:
            - port: 80
              priority: 0
              target: contoso.com
              weight: 10
          ttl: 3600
          zoneName: zone1
    

    Create TXT recordset

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
        {
            Metadata = 
            {
                { "key1", "value1" },
            },
            RecordType = "TXT",
            RelativeRecordSetName = "record1",
            ResourceGroupName = "rg1",
            Ttl = 3600,
            TxtRecords = new[]
            {
                new AzureNative.Network.Inputs.TxtRecordArgs
                {
                    Value = new[]
                    {
                        "string1",
                        "string2",
                    },
                },
            },
            ZoneName = "zone1",
        });
    
    });
    
    package main
    
    import (
    	network "github.com/pulumi/pulumi-azure-native-sdk/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
    			Metadata: pulumi.StringMap{
    				"key1": pulumi.String("value1"),
    			},
    			RecordType:            pulumi.String("TXT"),
    			RelativeRecordSetName: pulumi.String("record1"),
    			ResourceGroupName:     pulumi.String("rg1"),
    			Ttl:                   pulumi.Float64(3600),
    			TxtRecords: []network.TxtRecordArgs{
    				{
    					Value: pulumi.StringArray{
    						pulumi.String("string1"),
    						pulumi.String("string2"),
    					},
    				},
    			},
    			ZoneName: pulumi.String("zone1"),
    		})
    		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.network.RecordSet;
    import com.pulumi.azurenative.network.RecordSetArgs;
    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 recordSet = new RecordSet("recordSet", RecordSetArgs.builder()        
                .metadata(Map.of("key1", "value1"))
                .recordType("TXT")
                .relativeRecordSetName("record1")
                .resourceGroupName("rg1")
                .ttl(3600)
                .txtRecords(Map.of("value",             
                    "string1",
                    "string2"))
                .zoneName("zone1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    record_set = azure_native.network.RecordSet("recordSet",
        metadata={
            "key1": "value1",
        },
        record_type="TXT",
        relative_record_set_name="record1",
        resource_group_name="rg1",
        ttl=3600,
        txt_records=[azure_native.network.TxtRecordArgs(
            value=[
                "string1",
                "string2",
            ],
        )],
        zone_name="zone1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const recordSet = new azure_native.network.RecordSet("recordSet", {
        metadata: {
            key1: "value1",
        },
        recordType: "TXT",
        relativeRecordSetName: "record1",
        resourceGroupName: "rg1",
        ttl: 3600,
        txtRecords: [{
            value: [
                "string1",
                "string2",
            ],
        }],
        zoneName: "zone1",
    });
    
    resources:
      recordSet:
        type: azure-native:network:RecordSet
        properties:
          metadata:
            key1: value1
          recordType: TXT
          relativeRecordSetName: record1
          resourceGroupName: rg1
          ttl: 3600
          txtRecords:
            - value:
                - string1
                - string2
          zoneName: zone1
    

    Create RecordSet Resource

    new RecordSet(name: string, args: RecordSetArgs, opts?: CustomResourceOptions);
    @overload
    def RecordSet(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  a_records: Optional[Sequence[ARecordArgs]] = None,
                  aaaa_records: Optional[Sequence[AaaaRecordArgs]] = None,
                  caa_records: Optional[Sequence[CaaRecordArgs]] = None,
                  cname_record: Optional[CnameRecordArgs] = None,
                  metadata: Optional[Mapping[str, str]] = None,
                  mx_records: Optional[Sequence[MxRecordArgs]] = None,
                  ns_records: Optional[Sequence[NsRecordArgs]] = None,
                  ptr_records: Optional[Sequence[PtrRecordArgs]] = None,
                  record_type: Optional[str] = None,
                  relative_record_set_name: Optional[str] = None,
                  resource_group_name: Optional[str] = None,
                  soa_record: Optional[SoaRecordArgs] = None,
                  srv_records: Optional[Sequence[SrvRecordArgs]] = None,
                  target_resource: Optional[SubResourceArgs] = None,
                  ttl: Optional[float] = None,
                  txt_records: Optional[Sequence[TxtRecordArgs]] = None,
                  zone_name: Optional[str] = None)
    @overload
    def RecordSet(resource_name: str,
                  args: RecordSetArgs,
                  opts: Optional[ResourceOptions] = None)
    func NewRecordSet(ctx *Context, name string, args RecordSetArgs, opts ...ResourceOption) (*RecordSet, error)
    public RecordSet(string name, RecordSetArgs args, CustomResourceOptions? opts = null)
    public RecordSet(String name, RecordSetArgs args)
    public RecordSet(String name, RecordSetArgs args, CustomResourceOptions options)
    
    type: azure-native:network:RecordSet
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args RecordSetArgs
    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 RecordSetArgs
    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 RecordSetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RecordSetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RecordSetArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    RecordType string

    The type of DNS record in this record set. Record sets of type SOA can be updated but not created (they are created when the DNS zone is created).

    ResourceGroupName string

    The name of the resource group.

    ZoneName string

    The name of the DNS zone (without a terminating dot).

    ARecords List<Pulumi.AzureNative.Network.Inputs.ARecordArgs>

    The list of A records in the record set.

    AaaaRecords List<Pulumi.AzureNative.Network.Inputs.AaaaRecordArgs>

    The list of AAAA records in the record set.

    CaaRecords List<Pulumi.AzureNative.Network.Inputs.CaaRecordArgs>

    The list of CAA records in the record set.

    CnameRecord Pulumi.AzureNative.Network.Inputs.CnameRecordArgs

    The CNAME record in the record set.

    Metadata Dictionary<string, string>

    The metadata attached to the record set.

    MxRecords List<Pulumi.AzureNative.Network.Inputs.MxRecordArgs>

    The list of MX records in the record set.

    NsRecords List<Pulumi.AzureNative.Network.Inputs.NsRecordArgs>

    The list of NS records in the record set.

    PtrRecords List<Pulumi.AzureNative.Network.Inputs.PtrRecordArgs>

    The list of PTR records in the record set.

    RelativeRecordSetName string

    The name of the record set, relative to the name of the zone.

    SoaRecord Pulumi.AzureNative.Network.Inputs.SoaRecordArgs

    The SOA record in the record set.

    SrvRecords List<Pulumi.AzureNative.Network.Inputs.SrvRecordArgs>

    The list of SRV records in the record set.

    TargetResource Pulumi.AzureNative.Network.Inputs.SubResourceArgs

    A reference to an azure resource from where the dns resource value is taken.

    Ttl double

    The TTL (time-to-live) of the records in the record set.

    TxtRecords List<Pulumi.AzureNative.Network.Inputs.TxtRecordArgs>

    The list of TXT records in the record set.

    RecordType string

    The type of DNS record in this record set. Record sets of type SOA can be updated but not created (they are created when the DNS zone is created).

    ResourceGroupName string

    The name of the resource group.

    ZoneName string

    The name of the DNS zone (without a terminating dot).

    ARecords []ARecordArgs

    The list of A records in the record set.

    AaaaRecords []AaaaRecordArgs

    The list of AAAA records in the record set.

    CaaRecords []CaaRecordArgs

    The list of CAA records in the record set.

    CnameRecord CnameRecordArgs

    The CNAME record in the record set.

    Metadata map[string]string

    The metadata attached to the record set.

    MxRecords []MxRecordArgs

    The list of MX records in the record set.

    NsRecords []NsRecordArgs

    The list of NS records in the record set.

    PtrRecords []PtrRecordArgs

    The list of PTR records in the record set.

    RelativeRecordSetName string

    The name of the record set, relative to the name of the zone.

    SoaRecord SoaRecordArgs

    The SOA record in the record set.

    SrvRecords []SrvRecordArgs

    The list of SRV records in the record set.

    TargetResource SubResourceArgs

    A reference to an azure resource from where the dns resource value is taken.

    Ttl float64

    The TTL (time-to-live) of the records in the record set.

    TxtRecords []TxtRecordArgs

    The list of TXT records in the record set.

    recordType String

    The type of DNS record in this record set. Record sets of type SOA can be updated but not created (they are created when the DNS zone is created).

    resourceGroupName String

    The name of the resource group.

    zoneName String

    The name of the DNS zone (without a terminating dot).

    aRecords List<ARecordArgs>

    The list of A records in the record set.

    aaaaRecords List<AaaaRecordArgs>

    The list of AAAA records in the record set.

    caaRecords List<CaaRecordArgs>

    The list of CAA records in the record set.

    cnameRecord CnameRecordArgs

    The CNAME record in the record set.

    metadata Map<String,String>

    The metadata attached to the record set.

    mxRecords List<MxRecordArgs>

    The list of MX records in the record set.

    nsRecords List<NsRecordArgs>

    The list of NS records in the record set.

    ptrRecords List<PtrRecordArgs>

    The list of PTR records in the record set.

    relativeRecordSetName String

    The name of the record set, relative to the name of the zone.

    soaRecord SoaRecordArgs

    The SOA record in the record set.

    srvRecords List<SrvRecordArgs>

    The list of SRV records in the record set.

    targetResource SubResourceArgs

    A reference to an azure resource from where the dns resource value is taken.

    ttl Double

    The TTL (time-to-live) of the records in the record set.

    txtRecords List<TxtRecordArgs>

    The list of TXT records in the record set.

    recordType string

    The type of DNS record in this record set. Record sets of type SOA can be updated but not created (they are created when the DNS zone is created).

    resourceGroupName string

    The name of the resource group.

    zoneName string

    The name of the DNS zone (without a terminating dot).

    aRecords ARecordArgs[]

    The list of A records in the record set.

    aaaaRecords AaaaRecordArgs[]

    The list of AAAA records in the record set.

    caaRecords CaaRecordArgs[]

    The list of CAA records in the record set.

    cnameRecord CnameRecordArgs

    The CNAME record in the record set.

    metadata {[key: string]: string}

    The metadata attached to the record set.

    mxRecords MxRecordArgs[]

    The list of MX records in the record set.

    nsRecords NsRecordArgs[]

    The list of NS records in the record set.

    ptrRecords PtrRecordArgs[]

    The list of PTR records in the record set.

    relativeRecordSetName string

    The name of the record set, relative to the name of the zone.

    soaRecord SoaRecordArgs

    The SOA record in the record set.

    srvRecords SrvRecordArgs[]

    The list of SRV records in the record set.

    targetResource SubResourceArgs

    A reference to an azure resource from where the dns resource value is taken.

    ttl number

    The TTL (time-to-live) of the records in the record set.

    txtRecords TxtRecordArgs[]

    The list of TXT records in the record set.

    record_type str

    The type of DNS record in this record set. Record sets of type SOA can be updated but not created (they are created when the DNS zone is created).

    resource_group_name str

    The name of the resource group.

    zone_name str

    The name of the DNS zone (without a terminating dot).

    a_records Sequence[ARecordArgs]

    The list of A records in the record set.

    aaaa_records Sequence[AaaaRecordArgs]

    The list of AAAA records in the record set.

    caa_records Sequence[CaaRecordArgs]

    The list of CAA records in the record set.

    cname_record CnameRecordArgs

    The CNAME record in the record set.

    metadata Mapping[str, str]

    The metadata attached to the record set.

    mx_records Sequence[MxRecordArgs]

    The list of MX records in the record set.

    ns_records Sequence[NsRecordArgs]

    The list of NS records in the record set.

    ptr_records Sequence[PtrRecordArgs]

    The list of PTR records in the record set.

    relative_record_set_name str

    The name of the record set, relative to the name of the zone.

    soa_record SoaRecordArgs

    The SOA record in the record set.

    srv_records Sequence[SrvRecordArgs]

    The list of SRV records in the record set.

    target_resource SubResourceArgs

    A reference to an azure resource from where the dns resource value is taken.

    ttl float

    The TTL (time-to-live) of the records in the record set.

    txt_records Sequence[TxtRecordArgs]

    The list of TXT records in the record set.

    recordType String

    The type of DNS record in this record set. Record sets of type SOA can be updated but not created (they are created when the DNS zone is created).

    resourceGroupName String

    The name of the resource group.

    zoneName String

    The name of the DNS zone (without a terminating dot).

    aRecords List<Property Map>

    The list of A records in the record set.

    aaaaRecords List<Property Map>

    The list of AAAA records in the record set.

    caaRecords List<Property Map>

    The list of CAA records in the record set.

    cnameRecord Property Map

    The CNAME record in the record set.

    metadata Map<String>

    The metadata attached to the record set.

    mxRecords List<Property Map>

    The list of MX records in the record set.

    nsRecords List<Property Map>

    The list of NS records in the record set.

    ptrRecords List<Property Map>

    The list of PTR records in the record set.

    relativeRecordSetName String

    The name of the record set, relative to the name of the zone.

    soaRecord Property Map

    The SOA record in the record set.

    srvRecords List<Property Map>

    The list of SRV records in the record set.

    targetResource Property Map

    A reference to an azure resource from where the dns resource value is taken.

    ttl Number

    The TTL (time-to-live) of the records in the record set.

    txtRecords List<Property Map>

    The list of TXT records in the record set.

    Outputs

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

    Fqdn string

    Fully qualified domain name of the record set.

    Id string

    The provider-assigned unique ID for this managed resource.

    Name string

    The name of the record set.

    ProvisioningState string

    provisioning State of the record set.

    Type string

    The type of the record set.

    Etag string

    The etag of the record set.

    Fqdn string

    Fully qualified domain name of the record set.

    Id string

    The provider-assigned unique ID for this managed resource.

    Name string

    The name of the record set.

    ProvisioningState string

    provisioning State of the record set.

    Type string

    The type of the record set.

    Etag string

    The etag of the record set.

    fqdn String

    Fully qualified domain name of the record set.

    id String

    The provider-assigned unique ID for this managed resource.

    name String

    The name of the record set.

    provisioningState String

    provisioning State of the record set.

    type String

    The type of the record set.

    etag String

    The etag of the record set.

    fqdn string

    Fully qualified domain name of the record set.

    id string

    The provider-assigned unique ID for this managed resource.

    name string

    The name of the record set.

    provisioningState string

    provisioning State of the record set.

    type string

    The type of the record set.

    etag string

    The etag of the record set.

    fqdn str

    Fully qualified domain name of the record set.

    id str

    The provider-assigned unique ID for this managed resource.

    name str

    The name of the record set.

    provisioning_state str

    provisioning State of the record set.

    type str

    The type of the record set.

    etag str

    The etag of the record set.

    fqdn String

    Fully qualified domain name of the record set.

    id String

    The provider-assigned unique ID for this managed resource.

    name String

    The name of the record set.

    provisioningState String

    provisioning State of the record set.

    type String

    The type of the record set.

    etag String

    The etag of the record set.

    Supporting Types

    ARecord

    Ipv4Address string

    The IPv4 address of this A record.

    Ipv4Address string

    The IPv4 address of this A record.

    ipv4Address String

    The IPv4 address of this A record.

    ipv4Address string

    The IPv4 address of this A record.

    ipv4_address str

    The IPv4 address of this A record.

    ipv4Address String

    The IPv4 address of this A record.

    ARecordResponse

    Ipv4Address string

    The IPv4 address of this A record.

    Ipv4Address string

    The IPv4 address of this A record.

    ipv4Address String

    The IPv4 address of this A record.

    ipv4Address string

    The IPv4 address of this A record.

    ipv4_address str

    The IPv4 address of this A record.

    ipv4Address String

    The IPv4 address of this A record.

    AaaaRecord

    Ipv6Address string

    The IPv6 address of this AAAA record.

    Ipv6Address string

    The IPv6 address of this AAAA record.

    ipv6Address String

    The IPv6 address of this AAAA record.

    ipv6Address string

    The IPv6 address of this AAAA record.

    ipv6_address str

    The IPv6 address of this AAAA record.

    ipv6Address String

    The IPv6 address of this AAAA record.

    AaaaRecordResponse

    Ipv6Address string

    The IPv6 address of this AAAA record.

    Ipv6Address string

    The IPv6 address of this AAAA record.

    ipv6Address String

    The IPv6 address of this AAAA record.

    ipv6Address string

    The IPv6 address of this AAAA record.

    ipv6_address str

    The IPv6 address of this AAAA record.

    ipv6Address String

    The IPv6 address of this AAAA record.

    CaaRecord

    Flags int

    The flags for this CAA record as an integer between 0 and 255.

    Tag string

    The tag for this CAA record.

    Value string

    The value for this CAA record.

    Flags int

    The flags for this CAA record as an integer between 0 and 255.

    Tag string

    The tag for this CAA record.

    Value string

    The value for this CAA record.

    flags Integer

    The flags for this CAA record as an integer between 0 and 255.

    tag String

    The tag for this CAA record.

    value String

    The value for this CAA record.

    flags number

    The flags for this CAA record as an integer between 0 and 255.

    tag string

    The tag for this CAA record.

    value string

    The value for this CAA record.

    flags int

    The flags for this CAA record as an integer between 0 and 255.

    tag str

    The tag for this CAA record.

    value str

    The value for this CAA record.

    flags Number

    The flags for this CAA record as an integer between 0 and 255.

    tag String

    The tag for this CAA record.

    value String

    The value for this CAA record.

    CaaRecordResponse

    Flags int

    The flags for this CAA record as an integer between 0 and 255.

    Tag string

    The tag for this CAA record.

    Value string

    The value for this CAA record.

    Flags int

    The flags for this CAA record as an integer between 0 and 255.

    Tag string

    The tag for this CAA record.

    Value string

    The value for this CAA record.

    flags Integer

    The flags for this CAA record as an integer between 0 and 255.

    tag String

    The tag for this CAA record.

    value String

    The value for this CAA record.

    flags number

    The flags for this CAA record as an integer between 0 and 255.

    tag string

    The tag for this CAA record.

    value string

    The value for this CAA record.

    flags int

    The flags for this CAA record as an integer between 0 and 255.

    tag str

    The tag for this CAA record.

    value str

    The value for this CAA record.

    flags Number

    The flags for this CAA record as an integer between 0 and 255.

    tag String

    The tag for this CAA record.

    value String

    The value for this CAA record.

    CnameRecord

    Cname string

    The canonical name for this CNAME record.

    Cname string

    The canonical name for this CNAME record.

    cname String

    The canonical name for this CNAME record.

    cname string

    The canonical name for this CNAME record.

    cname str

    The canonical name for this CNAME record.

    cname String

    The canonical name for this CNAME record.

    CnameRecordResponse

    Cname string

    The canonical name for this CNAME record.

    Cname string

    The canonical name for this CNAME record.

    cname String

    The canonical name for this CNAME record.

    cname string

    The canonical name for this CNAME record.

    cname str

    The canonical name for this CNAME record.

    cname String

    The canonical name for this CNAME record.

    MxRecord

    Exchange string

    The domain name of the mail host for this MX record.

    Preference int

    The preference value for this MX record.

    Exchange string

    The domain name of the mail host for this MX record.

    Preference int

    The preference value for this MX record.

    exchange String

    The domain name of the mail host for this MX record.

    preference Integer

    The preference value for this MX record.

    exchange string

    The domain name of the mail host for this MX record.

    preference number

    The preference value for this MX record.

    exchange str

    The domain name of the mail host for this MX record.

    preference int

    The preference value for this MX record.

    exchange String

    The domain name of the mail host for this MX record.

    preference Number

    The preference value for this MX record.

    MxRecordResponse

    Exchange string

    The domain name of the mail host for this MX record.

    Preference int

    The preference value for this MX record.

    Exchange string

    The domain name of the mail host for this MX record.

    Preference int

    The preference value for this MX record.

    exchange String

    The domain name of the mail host for this MX record.

    preference Integer

    The preference value for this MX record.

    exchange string

    The domain name of the mail host for this MX record.

    preference number

    The preference value for this MX record.

    exchange str

    The domain name of the mail host for this MX record.

    preference int

    The preference value for this MX record.

    exchange String

    The domain name of the mail host for this MX record.

    preference Number

    The preference value for this MX record.

    NsRecord

    Nsdname string

    The name server name for this NS record.

    Nsdname string

    The name server name for this NS record.

    nsdname String

    The name server name for this NS record.

    nsdname string

    The name server name for this NS record.

    nsdname str

    The name server name for this NS record.

    nsdname String

    The name server name for this NS record.

    NsRecordResponse

    Nsdname string

    The name server name for this NS record.

    Nsdname string

    The name server name for this NS record.

    nsdname String

    The name server name for this NS record.

    nsdname string

    The name server name for this NS record.

    nsdname str

    The name server name for this NS record.

    nsdname String

    The name server name for this NS record.

    PtrRecord

    Ptrdname string

    The PTR target domain name for this PTR record.

    Ptrdname string

    The PTR target domain name for this PTR record.

    ptrdname String

    The PTR target domain name for this PTR record.

    ptrdname string

    The PTR target domain name for this PTR record.

    ptrdname str

    The PTR target domain name for this PTR record.

    ptrdname String

    The PTR target domain name for this PTR record.

    PtrRecordResponse

    Ptrdname string

    The PTR target domain name for this PTR record.

    Ptrdname string

    The PTR target domain name for this PTR record.

    ptrdname String

    The PTR target domain name for this PTR record.

    ptrdname string

    The PTR target domain name for this PTR record.

    ptrdname str

    The PTR target domain name for this PTR record.

    ptrdname String

    The PTR target domain name for this PTR record.

    SoaRecord

    Email string

    The email contact for this SOA record.

    ExpireTime double

    The expire time for this SOA record.

    Host string

    The domain name of the authoritative name server for this SOA record.

    MinimumTtl double

    The minimum value for this SOA record. By convention this is used to determine the negative caching duration.

    RefreshTime double

    The refresh value for this SOA record.

    RetryTime double

    The retry time for this SOA record.

    SerialNumber double

    The serial number for this SOA record.

    Email string

    The email contact for this SOA record.

    ExpireTime float64

    The expire time for this SOA record.

    Host string

    The domain name of the authoritative name server for this SOA record.

    MinimumTtl float64

    The minimum value for this SOA record. By convention this is used to determine the negative caching duration.

    RefreshTime float64

    The refresh value for this SOA record.

    RetryTime float64

    The retry time for this SOA record.

    SerialNumber float64

    The serial number for this SOA record.

    email String

    The email contact for this SOA record.

    expireTime Double

    The expire time for this SOA record.

    host String

    The domain name of the authoritative name server for this SOA record.

    minimumTtl Double

    The minimum value for this SOA record. By convention this is used to determine the negative caching duration.

    refreshTime Double

    The refresh value for this SOA record.

    retryTime Double

    The retry time for this SOA record.

    serialNumber Double

    The serial number for this SOA record.

    email string

    The email contact for this SOA record.

    expireTime number

    The expire time for this SOA record.

    host string

    The domain name of the authoritative name server for this SOA record.

    minimumTtl number

    The minimum value for this SOA record. By convention this is used to determine the negative caching duration.

    refreshTime number

    The refresh value for this SOA record.

    retryTime number

    The retry time for this SOA record.

    serialNumber number

    The serial number for this SOA record.

    email str

    The email contact for this SOA record.

    expire_time float

    The expire time for this SOA record.

    host str

    The domain name of the authoritative name server for this SOA record.

    minimum_ttl float

    The minimum value for this SOA record. By convention this is used to determine the negative caching duration.

    refresh_time float

    The refresh value for this SOA record.

    retry_time float

    The retry time for this SOA record.

    serial_number float

    The serial number for this SOA record.

    email String

    The email contact for this SOA record.

    expireTime Number

    The expire time for this SOA record.

    host String

    The domain name of the authoritative name server for this SOA record.

    minimumTtl Number

    The minimum value for this SOA record. By convention this is used to determine the negative caching duration.

    refreshTime Number

    The refresh value for this SOA record.

    retryTime Number

    The retry time for this SOA record.

    serialNumber Number

    The serial number for this SOA record.

    SoaRecordResponse

    Email string

    The email contact for this SOA record.

    ExpireTime double

    The expire time for this SOA record.

    Host string

    The domain name of the authoritative name server for this SOA record.

    MinimumTtl double

    The minimum value for this SOA record. By convention this is used to determine the negative caching duration.

    RefreshTime double

    The refresh value for this SOA record.

    RetryTime double

    The retry time for this SOA record.

    SerialNumber double

    The serial number for this SOA record.

    Email string

    The email contact for this SOA record.

    ExpireTime float64

    The expire time for this SOA record.

    Host string

    The domain name of the authoritative name server for this SOA record.

    MinimumTtl float64

    The minimum value for this SOA record. By convention this is used to determine the negative caching duration.

    RefreshTime float64

    The refresh value for this SOA record.

    RetryTime float64

    The retry time for this SOA record.

    SerialNumber float64

    The serial number for this SOA record.

    email String

    The email contact for this SOA record.

    expireTime Double

    The expire time for this SOA record.

    host String

    The domain name of the authoritative name server for this SOA record.

    minimumTtl Double

    The minimum value for this SOA record. By convention this is used to determine the negative caching duration.

    refreshTime Double

    The refresh value for this SOA record.

    retryTime Double

    The retry time for this SOA record.

    serialNumber Double

    The serial number for this SOA record.

    email string

    The email contact for this SOA record.

    expireTime number

    The expire time for this SOA record.

    host string

    The domain name of the authoritative name server for this SOA record.

    minimumTtl number

    The minimum value for this SOA record. By convention this is used to determine the negative caching duration.

    refreshTime number

    The refresh value for this SOA record.

    retryTime number

    The retry time for this SOA record.

    serialNumber number

    The serial number for this SOA record.

    email str

    The email contact for this SOA record.

    expire_time float

    The expire time for this SOA record.

    host str

    The domain name of the authoritative name server for this SOA record.

    minimum_ttl float

    The minimum value for this SOA record. By convention this is used to determine the negative caching duration.

    refresh_time float

    The refresh value for this SOA record.

    retry_time float

    The retry time for this SOA record.

    serial_number float

    The serial number for this SOA record.

    email String

    The email contact for this SOA record.

    expireTime Number

    The expire time for this SOA record.

    host String

    The domain name of the authoritative name server for this SOA record.

    minimumTtl Number

    The minimum value for this SOA record. By convention this is used to determine the negative caching duration.

    refreshTime Number

    The refresh value for this SOA record.

    retryTime Number

    The retry time for this SOA record.

    serialNumber Number

    The serial number for this SOA record.

    SrvRecord

    Port int

    The port value for this SRV record.

    Priority int

    The priority value for this SRV record.

    Target string

    The target domain name for this SRV record.

    Weight int

    The weight value for this SRV record.

    Port int

    The port value for this SRV record.

    Priority int

    The priority value for this SRV record.

    Target string

    The target domain name for this SRV record.

    Weight int

    The weight value for this SRV record.

    port Integer

    The port value for this SRV record.

    priority Integer

    The priority value for this SRV record.

    target String

    The target domain name for this SRV record.

    weight Integer

    The weight value for this SRV record.

    port number

    The port value for this SRV record.

    priority number

    The priority value for this SRV record.

    target string

    The target domain name for this SRV record.

    weight number

    The weight value for this SRV record.

    port int

    The port value for this SRV record.

    priority int

    The priority value for this SRV record.

    target str

    The target domain name for this SRV record.

    weight int

    The weight value for this SRV record.

    port Number

    The port value for this SRV record.

    priority Number

    The priority value for this SRV record.

    target String

    The target domain name for this SRV record.

    weight Number

    The weight value for this SRV record.

    SrvRecordResponse

    Port int

    The port value for this SRV record.

    Priority int

    The priority value for this SRV record.

    Target string

    The target domain name for this SRV record.

    Weight int

    The weight value for this SRV record.

    Port int

    The port value for this SRV record.

    Priority int

    The priority value for this SRV record.

    Target string

    The target domain name for this SRV record.

    Weight int

    The weight value for this SRV record.

    port Integer

    The port value for this SRV record.

    priority Integer

    The priority value for this SRV record.

    target String

    The target domain name for this SRV record.

    weight Integer

    The weight value for this SRV record.

    port number

    The port value for this SRV record.

    priority number

    The priority value for this SRV record.

    target string

    The target domain name for this SRV record.

    weight number

    The weight value for this SRV record.

    port int

    The port value for this SRV record.

    priority int

    The priority value for this SRV record.

    target str

    The target domain name for this SRV record.

    weight int

    The weight value for this SRV record.

    port Number

    The port value for this SRV record.

    priority Number

    The priority value for this SRV record.

    target String

    The target domain name for this SRV record.

    weight Number

    The weight value for this SRV record.

    SubResource

    Id string

    Resource Id.

    Id string

    Resource Id.

    id String

    Resource Id.

    id string

    Resource Id.

    id str

    Resource Id.

    id String

    Resource Id.

    SubResourceResponse

    Id string

    Resource ID.

    Id string

    Resource ID.

    id String

    Resource ID.

    id string

    Resource ID.

    id str

    Resource ID.

    id String

    Resource ID.

    TxtRecord

    Value List<string>

    The text value of this TXT record.

    Value []string

    The text value of this TXT record.

    value List<String>

    The text value of this TXT record.

    value string[]

    The text value of this TXT record.

    value Sequence[str]

    The text value of this TXT record.

    value List<String>

    The text value of this TXT record.

    TxtRecordResponse

    Value List<string>

    The text value of this TXT record.

    Value []string

    The text value of this TXT record.

    value List<String>

    The text value of this TXT record.

    value string[]

    The text value of this TXT record.

    value Sequence[str]

    The text value of this TXT record.

    value List<String>

    The text value of this TXT record.

    Import

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

    $ pulumi import azure-native:network:RecordSet record1 /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT/record1 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    Azure Native v1.103.0 published on Friday, Jun 2, 2023 by Pulumi