Virtual Network Dns Servers
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
Content copied to clipboard
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
Content copied to clipboard