Aracılığıyla paylaş


ArmAppServiceModelFactory.SiteDnsConfig Method

Definition

Initializes a new instance of SiteDnsConfig.

public static Azure.ResourceManager.AppService.Models.SiteDnsConfig SiteDnsConfig (System.Collections.Generic.IEnumerable<string> dnsServers = default, string dnsAltServer = default, int? dnsRetryAttemptTimeout = default, int? dnsRetryAttemptCount = default, int? dnsMaxCacheTimeout = default, bool? dnsLegacySortOrder = default);
static member SiteDnsConfig : seq<string> * string * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<bool> -> Azure.ResourceManager.AppService.Models.SiteDnsConfig
Public Shared Function SiteDnsConfig (Optional dnsServers As IEnumerable(Of String) = Nothing, Optional dnsAltServer As String = Nothing, Optional dnsRetryAttemptTimeout As Nullable(Of Integer) = Nothing, Optional dnsRetryAttemptCount As Nullable(Of Integer) = Nothing, Optional dnsMaxCacheTimeout As Nullable(Of Integer) = Nothing, Optional dnsLegacySortOrder As Nullable(Of Boolean) = Nothing) As SiteDnsConfig

Parameters

dnsServers
IEnumerable<String>

List of custom DNS servers to be used by an app for lookups. Maximum 5 dns servers can be set.

dnsAltServer
String

Alternate DNS server to be used by apps. This property replicates the WEBSITE_DNS_ALT_SERVER app setting.

dnsRetryAttemptTimeout
Nullable<Int32>

Timeout for a single dns lookup in seconds. Allowed range: 1-30. Default is 3.

dnsRetryAttemptCount
Nullable<Int32>

Total number of retries for dns lookup. Allowed range: 1-5. Default is 3.

dnsMaxCacheTimeout
Nullable<Int32>

Custom time for DNS to be cached in seconds. Allowed range: 0-60. Default is 30 seconds. 0 means caching disabled.

dnsLegacySortOrder
Nullable<Boolean>

Indicates that sites using Virtual network custom DNS servers are still sorting the list of DNS servers. Read-Only.

Returns

A new SiteDnsConfig instance for mocking.

Applies to