VirtualNetworkDnsServers

class VirtualNetworkDnsServers : KotlinCustomResource

Example Usage

resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleVirtualNetwork:
type: azure:network:VirtualNetwork
name: example
properties:
name: example-vnet
addressSpaces:
- 10.0.0.0/16
location: ${example.location}
resourceGroupName: ${example.name}
subnets:
- name: subnet1
addressPrefix: 10.0.1.0/24
exampleVirtualNetworkDnsServers:
type: azure:network:VirtualNetworkDnsServers
name: example
properties:
virtualNetworkId: ${exampleVirtualNetwork.id}
dnsServers:
- 10.7.7.2
- 10.7.7.7
- 10.7.7.1

Import

Virtual Network DNS Servers can be imported using the resource id, e.g.

$ pulumi import azure:network/virtualNetworkDnsServers:VirtualNetworkDnsServers exampleNetwork /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/virtualNetworks/myvnet1/dnsServers/default

Properties

Link copied to clipboard
val dnsServers: Output<List<String>>?

List of IP addresses of DNS servers

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

The ID of the Virtual Network that should be linked to the DNS Zone. Changing this forces a new resource to be created.