1. Packages
  2. Azure Native
  3. API Docs
  4. avs
  5. WorkloadNetworkDnsZone
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.avs.WorkloadNetworkDnsZone

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

    NSX DNS Zone Azure REST API version: 2022-05-01. Prior API version in Azure Native 1.x: 2020-07-17-preview.

    Other available API versions: 2023-03-01, 2023-09-01.

    Example Usage

    WorkloadNetworks_CreateDnsZone

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var workloadNetworkDnsZone = new AzureNative.AVS.WorkloadNetworkDnsZone("workloadNetworkDnsZone", new()
        {
            DisplayName = "dnsZone1",
            DnsServerIps = new[]
            {
                "1.1.1.1",
            },
            DnsZoneId = "dnsZone1",
            Domain = new[] {},
            PrivateCloudName = "cloud1",
            ResourceGroupName = "group1",
            Revision = 1,
            SourceIp = "8.8.8.8",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/avs/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := avs.NewWorkloadNetworkDnsZone(ctx, "workloadNetworkDnsZone", &avs.WorkloadNetworkDnsZoneArgs{
    			DisplayName: pulumi.String("dnsZone1"),
    			DnsServerIps: pulumi.StringArray{
    				pulumi.String("1.1.1.1"),
    			},
    			DnsZoneId:         pulumi.String("dnsZone1"),
    			Domain:            pulumi.StringArray{},
    			PrivateCloudName:  pulumi.String("cloud1"),
    			ResourceGroupName: pulumi.String("group1"),
    			Revision:          pulumi.Float64(1),
    			SourceIp:          pulumi.String("8.8.8.8"),
    		})
    		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.avs.WorkloadNetworkDnsZone;
    import com.pulumi.azurenative.avs.WorkloadNetworkDnsZoneArgs;
    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 workloadNetworkDnsZone = new WorkloadNetworkDnsZone("workloadNetworkDnsZone", WorkloadNetworkDnsZoneArgs.builder()        
                .displayName("dnsZone1")
                .dnsServerIps("1.1.1.1")
                .dnsZoneId("dnsZone1")
                .domain()
                .privateCloudName("cloud1")
                .resourceGroupName("group1")
                .revision(1)
                .sourceIp("8.8.8.8")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    workload_network_dns_zone = azure_native.avs.WorkloadNetworkDnsZone("workloadNetworkDnsZone",
        display_name="dnsZone1",
        dns_server_ips=["1.1.1.1"],
        dns_zone_id="dnsZone1",
        domain=[],
        private_cloud_name="cloud1",
        resource_group_name="group1",
        revision=1,
        source_ip="8.8.8.8")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const workloadNetworkDnsZone = new azure_native.avs.WorkloadNetworkDnsZone("workloadNetworkDnsZone", {
        displayName: "dnsZone1",
        dnsServerIps: ["1.1.1.1"],
        dnsZoneId: "dnsZone1",
        domain: [],
        privateCloudName: "cloud1",
        resourceGroupName: "group1",
        revision: 1,
        sourceIp: "8.8.8.8",
    });
    
    resources:
      workloadNetworkDnsZone:
        type: azure-native:avs:WorkloadNetworkDnsZone
        properties:
          displayName: dnsZone1
          dnsServerIps:
            - 1.1.1.1
          dnsZoneId: dnsZone1
          domain: []
          privateCloudName: cloud1
          resourceGroupName: group1
          revision: 1
          sourceIp: 8.8.8.8
    

    Create WorkloadNetworkDnsZone Resource

    new WorkloadNetworkDnsZone(name: string, args: WorkloadNetworkDnsZoneArgs, opts?: CustomResourceOptions);
    @overload
    def WorkloadNetworkDnsZone(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               display_name: Optional[str] = None,
                               dns_server_ips: Optional[Sequence[str]] = None,
                               dns_services: Optional[float] = None,
                               dns_zone_id: Optional[str] = None,
                               domain: Optional[Sequence[str]] = None,
                               private_cloud_name: Optional[str] = None,
                               resource_group_name: Optional[str] = None,
                               revision: Optional[float] = None,
                               source_ip: Optional[str] = None)
    @overload
    def WorkloadNetworkDnsZone(resource_name: str,
                               args: WorkloadNetworkDnsZoneArgs,
                               opts: Optional[ResourceOptions] = None)
    func NewWorkloadNetworkDnsZone(ctx *Context, name string, args WorkloadNetworkDnsZoneArgs, opts ...ResourceOption) (*WorkloadNetworkDnsZone, error)
    public WorkloadNetworkDnsZone(string name, WorkloadNetworkDnsZoneArgs args, CustomResourceOptions? opts = null)
    public WorkloadNetworkDnsZone(String name, WorkloadNetworkDnsZoneArgs args)
    public WorkloadNetworkDnsZone(String name, WorkloadNetworkDnsZoneArgs args, CustomResourceOptions options)
    
    type: azure-native:avs:WorkloadNetworkDnsZone
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args WorkloadNetworkDnsZoneArgs
    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 WorkloadNetworkDnsZoneArgs
    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 WorkloadNetworkDnsZoneArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WorkloadNetworkDnsZoneArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WorkloadNetworkDnsZoneArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    PrivateCloudName string
    Name of the private cloud
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    DisplayName string
    Display name of the DNS Zone.
    DnsServerIps List<string>
    DNS Server IP array of the DNS Zone.
    DnsServices double
    Number of DNS Services using the DNS zone.
    DnsZoneId string
    NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
    Domain List<string>
    Domain names of the DNS Zone.
    Revision double
    NSX revision number.
    SourceIp string
    Source IP of the DNS Zone.
    PrivateCloudName string
    Name of the private cloud
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    DisplayName string
    Display name of the DNS Zone.
    DnsServerIps []string
    DNS Server IP array of the DNS Zone.
    DnsServices float64
    Number of DNS Services using the DNS zone.
    DnsZoneId string
    NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
    Domain []string
    Domain names of the DNS Zone.
    Revision float64
    NSX revision number.
    SourceIp string
    Source IP of the DNS Zone.
    privateCloudName String
    Name of the private cloud
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    displayName String
    Display name of the DNS Zone.
    dnsServerIps List<String>
    DNS Server IP array of the DNS Zone.
    dnsServices Double
    Number of DNS Services using the DNS zone.
    dnsZoneId String
    NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
    domain List<String>
    Domain names of the DNS Zone.
    revision Double
    NSX revision number.
    sourceIp String
    Source IP of the DNS Zone.
    privateCloudName string
    Name of the private cloud
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    displayName string
    Display name of the DNS Zone.
    dnsServerIps string[]
    DNS Server IP array of the DNS Zone.
    dnsServices number
    Number of DNS Services using the DNS zone.
    dnsZoneId string
    NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
    domain string[]
    Domain names of the DNS Zone.
    revision number
    NSX revision number.
    sourceIp string
    Source IP of the DNS Zone.
    private_cloud_name str
    Name of the private cloud
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    display_name str
    Display name of the DNS Zone.
    dns_server_ips Sequence[str]
    DNS Server IP array of the DNS Zone.
    dns_services float
    Number of DNS Services using the DNS zone.
    dns_zone_id str
    NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
    domain Sequence[str]
    Domain names of the DNS Zone.
    revision float
    NSX revision number.
    source_ip str
    Source IP of the DNS Zone.
    privateCloudName String
    Name of the private cloud
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    displayName String
    Display name of the DNS Zone.
    dnsServerIps List<String>
    DNS Server IP array of the DNS Zone.
    dnsServices Number
    Number of DNS Services using the DNS zone.
    dnsZoneId String
    NSX DNS Zone identifier. Generally the same as the DNS Zone's display name
    domain List<String>
    Domain names of the DNS Zone.
    revision Number
    NSX revision number.
    sourceIp String
    Source IP of the DNS Zone.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    ProvisioningState string
    The provisioning state
    Type string
    Resource type.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    ProvisioningState string
    The provisioning state
    Type string
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    provisioningState String
    The provisioning state
    type String
    Resource type.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name.
    provisioningState string
    The provisioning state
    type string
    Resource type.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource name.
    provisioning_state str
    The provisioning state
    type str
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    provisioningState String
    The provisioning state
    type String
    Resource type.

    Import

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

    $ pulumi import azure-native:avs:WorkloadNetworkDnsZone dnsZone1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/dnsZones/{dnsZoneId} 
    

    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