ArmNetworkModelFactory.NetworkInterfaceDnsSettings Method

Definition

Initializes a new instance of NetworkInterfaceDnsSettings.

public static Azure.ResourceManager.Network.Models.NetworkInterfaceDnsSettings NetworkInterfaceDnsSettings (System.Collections.Generic.IEnumerable<string> dnsServers = default, System.Collections.Generic.IEnumerable<string> appliedDnsServers = default, string internalDnsNameLabel = default, string internalFqdn = default, string internalDomainNameSuffix = default);
static member NetworkInterfaceDnsSettings : seq<string> * seq<string> * string * string * string -> Azure.ResourceManager.Network.Models.NetworkInterfaceDnsSettings
Public Shared Function NetworkInterfaceDnsSettings (Optional dnsServers As IEnumerable(Of String) = Nothing, Optional appliedDnsServers As IEnumerable(Of String) = Nothing, Optional internalDnsNameLabel As String = Nothing, Optional internalFqdn As String = Nothing, Optional internalDomainNameSuffix As String = Nothing) As NetworkInterfaceDnsSettings

Parameters

dnsServers
IEnumerable<String>

List of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the only value in dnsServers collection.

appliedDnsServers
IEnumerable<String>

If the VM that uses this NIC is part of an Availability Set, then this list will have the union of all DNS servers from all NICs that are part of the Availability Set. This property is what is configured on each of those VMs.

internalDnsNameLabel
String

Relative DNS name for this NIC used for internal communications between VMs in the same virtual network.

internalFqdn
String

Fully qualified DNS name supporting internal communications between VMs in the same virtual network.

internalDomainNameSuffix
String

Even if internalDnsNameLabel is not specified, a DNS entry is created for the primary NIC of the VM. This DNS name can be constructed by concatenating the VM name with the value of internalDomainNameSuffix.

Returns

A new NetworkInterfaceDnsSettings instance for mocking.

Applies to