ArmAppServiceModelFactory.SiteDnsConfig Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. Serialized Name: SiteDnsConfig.dnsServers
- dnsAltServer
- String
Alternate DNS server to be used by apps. This property replicates the WEBSITE_DNS_ALT_SERVER app setting. Serialized Name: SiteDnsConfig.dnsAltServer
Timeout for a single dns lookup in seconds. Allowed range: 1-30. Default is 3. Serialized Name: SiteDnsConfig.dnsRetryAttemptTimeout
Total number of retries for dns lookup. Allowed range: 1-5. Default is 3. Serialized Name: SiteDnsConfig.dnsRetryAttemptCount
Custom time for DNS to be cached in seconds. Allowed range: 0-60. Default is 30 seconds. 0 means caching disabled. Serialized Name: SiteDnsConfig.dnsMaxCacheTimeout
Indicates that sites using Virtual network custom DNS servers are still sorting the list of DNS servers. Read-Only. Serialized Name: SiteDnsConfig.dnsLegacySortOrder
Returns
A new SiteDnsConfig instance for mocking.