Share via


SiteConfig Constructors

Definition

Overloads

SiteConfig()

Initializes a new instance of the SiteConfig class.

SiteConfig(Nullable<Int32>, IList<String>, String, String, String, String, String, String, String, Nullable<Boolean>, Nullable<DateTime>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Int32>, Nullable<Boolean>, String, IList<NameValuePair>, IList<ConnStringInfo>, SiteMachineKey, IList<HandlerMapping>, String, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, String, String, String, String, Nullable<ManagedPipelineMode>, IList<VirtualApplication>, Nullable<SiteLoadBalancing>, Experiments, SiteLimits, Nullable<Boolean>, AutoHealRules, String, String, Nullable<Boolean>, Nullable<Int32>, CorsSettings, PushSettings, ApiDefinitionInfo, ApiManagementConfig, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, String, IList<IpSecurityRestriction>, IList<IpSecurityRestriction>, Nullable<Boolean>, Nullable<Boolean>, String, String, String, Nullable<Int32>, Nullable<Int32>, String, Nullable<Boolean>, String, Nullable<Int32>, IDictionary<String, AzureStorageInfoValue>, String)

Initializes a new instance of the SiteConfig class.

SiteConfig()

Initializes a new instance of the SiteConfig class.

public SiteConfig ();
Public Sub New ()

Applies to

SiteConfig(Nullable<Int32>, IList<String>, String, String, String, String, String, String, String, Nullable<Boolean>, Nullable<DateTime>, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<Int32>, Nullable<Boolean>, String, IList<NameValuePair>, IList<ConnStringInfo>, SiteMachineKey, IList<HandlerMapping>, String, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, String, String, String, String, Nullable<ManagedPipelineMode>, IList<VirtualApplication>, Nullable<SiteLoadBalancing>, Experiments, SiteLimits, Nullable<Boolean>, AutoHealRules, String, String, Nullable<Boolean>, Nullable<Int32>, CorsSettings, PushSettings, ApiDefinitionInfo, ApiManagementConfig, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, String, IList<IpSecurityRestriction>, IList<IpSecurityRestriction>, Nullable<Boolean>, Nullable<Boolean>, String, String, String, Nullable<Int32>, Nullable<Int32>, String, Nullable<Boolean>, String, Nullable<Int32>, IDictionary<String, AzureStorageInfoValue>, String)

Initializes a new instance of the SiteConfig class.

public SiteConfig (int? numberOfWorkers = default, System.Collections.Generic.IList<string> defaultDocuments = default, string netFrameworkVersion = default, string phpVersion = default, string pythonVersion = default, string nodeVersion = default, string powerShellVersion = default, string linuxFxVersion = default, string windowsFxVersion = default, bool? requestTracingEnabled = default, DateTime? requestTracingExpirationTime = default, bool? remoteDebuggingEnabled = default, string remoteDebuggingVersion = default, bool? httpLoggingEnabled = default, bool? acrUseManagedIdentityCreds = default, string acrUserManagedIdentityID = default, int? logsDirectorySizeLimit = default, bool? detailedErrorLoggingEnabled = default, string publishingUsername = default, System.Collections.Generic.IList<Microsoft.Azure.Management.WebSites.Models.NameValuePair> appSettings = default, System.Collections.Generic.IList<Microsoft.Azure.Management.WebSites.Models.ConnStringInfo> connectionStrings = default, Microsoft.Azure.Management.WebSites.Models.SiteMachineKey machineKey = default, System.Collections.Generic.IList<Microsoft.Azure.Management.WebSites.Models.HandlerMapping> handlerMappings = default, string documentRoot = default, string scmType = default, bool? use32BitWorkerProcess = default, bool? webSocketsEnabled = default, bool? alwaysOn = default, string javaVersion = default, string javaContainer = default, string javaContainerVersion = default, string appCommandLine = default, Microsoft.Azure.Management.WebSites.Models.ManagedPipelineMode? managedPipelineMode = default, System.Collections.Generic.IList<Microsoft.Azure.Management.WebSites.Models.VirtualApplication> virtualApplications = default, Microsoft.Azure.Management.WebSites.Models.SiteLoadBalancing? loadBalancing = default, Microsoft.Azure.Management.WebSites.Models.Experiments experiments = default, Microsoft.Azure.Management.WebSites.Models.SiteLimits limits = default, bool? autoHealEnabled = default, Microsoft.Azure.Management.WebSites.Models.AutoHealRules autoHealRules = default, string tracingOptions = default, string vnetName = default, bool? vnetRouteAllEnabled = default, int? vnetPrivatePortsCount = default, Microsoft.Azure.Management.WebSites.Models.CorsSettings cors = default, Microsoft.Azure.Management.WebSites.Models.PushSettings push = default, Microsoft.Azure.Management.WebSites.Models.ApiDefinitionInfo apiDefinition = default, Microsoft.Azure.Management.WebSites.Models.ApiManagementConfig apiManagementConfig = default, string autoSwapSlotName = default, bool? localMySqlEnabled = default, int? managedServiceIdentityId = default, int? xManagedServiceIdentityId = default, string keyVaultReferenceIdentity = default, System.Collections.Generic.IList<Microsoft.Azure.Management.WebSites.Models.IpSecurityRestriction> ipSecurityRestrictions = default, System.Collections.Generic.IList<Microsoft.Azure.Management.WebSites.Models.IpSecurityRestriction> scmIpSecurityRestrictions = default, bool? scmIpSecurityRestrictionsUseMain = default, bool? http20Enabled = default, string minTlsVersion = default, string scmMinTlsVersion = default, string ftpsState = default, int? preWarmedInstanceCount = default, int? functionAppScaleLimit = default, string healthCheckPath = default, bool? functionsRuntimeScaleMonitoringEnabled = default, string websiteTimeZone = default, int? minimumElasticInstanceCount = default, System.Collections.Generic.IDictionary<string,Microsoft.Azure.Management.WebSites.Models.AzureStorageInfoValue> azureStorageAccounts = default, string publicNetworkAccess = default);
new Microsoft.Azure.Management.WebSites.Models.SiteConfig : Nullable<int> * System.Collections.Generic.IList<string> * string * string * string * string * string * string * string * Nullable<bool> * Nullable<DateTime> * Nullable<bool> * string * Nullable<bool> * Nullable<bool> * string * Nullable<int> * Nullable<bool> * string * System.Collections.Generic.IList<Microsoft.Azure.Management.WebSites.Models.NameValuePair> * System.Collections.Generic.IList<Microsoft.Azure.Management.WebSites.Models.ConnStringInfo> * Microsoft.Azure.Management.WebSites.Models.SiteMachineKey * System.Collections.Generic.IList<Microsoft.Azure.Management.WebSites.Models.HandlerMapping> * string * string * Nullable<bool> * Nullable<bool> * Nullable<bool> * string * string * string * string * Nullable<Microsoft.Azure.Management.WebSites.Models.ManagedPipelineMode> * System.Collections.Generic.IList<Microsoft.Azure.Management.WebSites.Models.VirtualApplication> * Nullable<Microsoft.Azure.Management.WebSites.Models.SiteLoadBalancing> * Microsoft.Azure.Management.WebSites.Models.Experiments * Microsoft.Azure.Management.WebSites.Models.SiteLimits * Nullable<bool> * Microsoft.Azure.Management.WebSites.Models.AutoHealRules * string * string * Nullable<bool> * Nullable<int> * Microsoft.Azure.Management.WebSites.Models.CorsSettings * Microsoft.Azure.Management.WebSites.Models.PushSettings * Microsoft.Azure.Management.WebSites.Models.ApiDefinitionInfo * Microsoft.Azure.Management.WebSites.Models.ApiManagementConfig * string * Nullable<bool> * Nullable<int> * Nullable<int> * string * System.Collections.Generic.IList<Microsoft.Azure.Management.WebSites.Models.IpSecurityRestriction> * System.Collections.Generic.IList<Microsoft.Azure.Management.WebSites.Models.IpSecurityRestriction> * Nullable<bool> * Nullable<bool> * string * string * string * Nullable<int> * Nullable<int> * string * Nullable<bool> * string * Nullable<int> * System.Collections.Generic.IDictionary<string, Microsoft.Azure.Management.WebSites.Models.AzureStorageInfoValue> * string -> Microsoft.Azure.Management.WebSites.Models.SiteConfig
Public Sub New (Optional numberOfWorkers As Nullable(Of Integer) = Nothing, Optional defaultDocuments As IList(Of String) = Nothing, Optional netFrameworkVersion As String = Nothing, Optional phpVersion As String = Nothing, Optional pythonVersion As String = Nothing, Optional nodeVersion As String = Nothing, Optional powerShellVersion As String = Nothing, Optional linuxFxVersion As String = Nothing, Optional windowsFxVersion As String = Nothing, Optional requestTracingEnabled As Nullable(Of Boolean) = Nothing, Optional requestTracingExpirationTime As Nullable(Of DateTime) = Nothing, Optional remoteDebuggingEnabled As Nullable(Of Boolean) = Nothing, Optional remoteDebuggingVersion As String = Nothing, Optional httpLoggingEnabled As Nullable(Of Boolean) = Nothing, Optional acrUseManagedIdentityCreds As Nullable(Of Boolean) = Nothing, Optional acrUserManagedIdentityID As String = Nothing, Optional logsDirectorySizeLimit As Nullable(Of Integer) = Nothing, Optional detailedErrorLoggingEnabled As Nullable(Of Boolean) = Nothing, Optional publishingUsername As String = Nothing, Optional appSettings As IList(Of NameValuePair) = Nothing, Optional connectionStrings As IList(Of ConnStringInfo) = Nothing, Optional machineKey As SiteMachineKey = Nothing, Optional handlerMappings As IList(Of HandlerMapping) = Nothing, Optional documentRoot As String = Nothing, Optional scmType As String = Nothing, Optional use32BitWorkerProcess As Nullable(Of Boolean) = Nothing, Optional webSocketsEnabled As Nullable(Of Boolean) = Nothing, Optional alwaysOn As Nullable(Of Boolean) = Nothing, Optional javaVersion As String = Nothing, Optional javaContainer As String = Nothing, Optional javaContainerVersion As String = Nothing, Optional appCommandLine As String = Nothing, Optional managedPipelineMode As Nullable(Of ManagedPipelineMode) = Nothing, Optional virtualApplications As IList(Of VirtualApplication) = Nothing, Optional loadBalancing As Nullable(Of SiteLoadBalancing) = Nothing, Optional experiments As Experiments = Nothing, Optional limits As SiteLimits = Nothing, Optional autoHealEnabled As Nullable(Of Boolean) = Nothing, Optional autoHealRules As AutoHealRules = Nothing, Optional tracingOptions As String = Nothing, Optional vnetName As String = Nothing, Optional vnetRouteAllEnabled As Nullable(Of Boolean) = Nothing, Optional vnetPrivatePortsCount As Nullable(Of Integer) = Nothing, Optional cors As CorsSettings = Nothing, Optional push As PushSettings = Nothing, Optional apiDefinition As ApiDefinitionInfo = Nothing, Optional apiManagementConfig As ApiManagementConfig = Nothing, Optional autoSwapSlotName As String = Nothing, Optional localMySqlEnabled As Nullable(Of Boolean) = Nothing, Optional managedServiceIdentityId As Nullable(Of Integer) = Nothing, Optional xManagedServiceIdentityId As Nullable(Of Integer) = Nothing, Optional keyVaultReferenceIdentity As String = Nothing, Optional ipSecurityRestrictions As IList(Of IpSecurityRestriction) = Nothing, Optional scmIpSecurityRestrictions As IList(Of IpSecurityRestriction) = Nothing, Optional scmIpSecurityRestrictionsUseMain As Nullable(Of Boolean) = Nothing, Optional http20Enabled As Nullable(Of Boolean) = Nothing, Optional minTlsVersion As String = Nothing, Optional scmMinTlsVersion As String = Nothing, Optional ftpsState As String = Nothing, Optional preWarmedInstanceCount As Nullable(Of Integer) = Nothing, Optional functionAppScaleLimit As Nullable(Of Integer) = Nothing, Optional healthCheckPath As String = Nothing, Optional functionsRuntimeScaleMonitoringEnabled As Nullable(Of Boolean) = Nothing, Optional websiteTimeZone As String = Nothing, Optional minimumElasticInstanceCount As Nullable(Of Integer) = Nothing, Optional azureStorageAccounts As IDictionary(Of String, AzureStorageInfoValue) = Nothing, Optional publicNetworkAccess As String = Nothing)

Parameters

numberOfWorkers
Nullable<Int32>

Number of workers.

defaultDocuments
IList<String>

Default documents.

netFrameworkVersion
String

.NET Framework version.

phpVersion
String

Version of PHP.

pythonVersion
String

Version of Python.

nodeVersion
String

Version of Node.js.

powerShellVersion
String

Version of PowerShell.

linuxFxVersion
String

Linux App Framework and version

windowsFxVersion
String

Xenon App Framework and version

requestTracingEnabled
Nullable<Boolean>

<code>true</code> if request tracing is enabled; otherwise, <code>false</code>.

requestTracingExpirationTime
Nullable<DateTime>

Request tracing expiration time.

remoteDebuggingEnabled
Nullable<Boolean>

<code>true</code> if remote debugging is enabled; otherwise, <code>false</code>.

remoteDebuggingVersion
String

Remote debugging version.

httpLoggingEnabled
Nullable<Boolean>

<code>true</code> if HTTP logging is enabled; otherwise, <code>false</code>.

acrUseManagedIdentityCreds
Nullable<Boolean>

Flag to use Managed Identity Creds for ACR pull

acrUserManagedIdentityID
String

If using user managed identity, the user managed identity ClientId

logsDirectorySizeLimit
Nullable<Int32>

HTTP logs directory size limit.

detailedErrorLoggingEnabled
Nullable<Boolean>

<code>true</code> if detailed error logging is enabled; otherwise, <code>false</code>.

publishingUsername
String

Publishing user name.

appSettings
IList<NameValuePair>

Application settings.

connectionStrings
IList<ConnStringInfo>

Connection strings.

machineKey
SiteMachineKey

Site MachineKey.

handlerMappings
IList<HandlerMapping>

Handler mappings.

documentRoot
String

Document root.

scmType
String

SCM type. Possible values include: 'None', 'Dropbox', 'Tfs', 'LocalGit', 'GitHub', 'CodePlexGit', 'CodePlexHg', 'BitbucketGit', 'BitbucketHg', 'ExternalGit', 'ExternalHg', 'OneDrive', 'VSO', 'VSTSRM'

use32BitWorkerProcess
Nullable<Boolean>

<code>true</code> to use 32-bit worker process; otherwise, <code>false</code>.

webSocketsEnabled
Nullable<Boolean>

<code>true</code> if WebSocket is enabled; otherwise, <code>false</code>.

alwaysOn
Nullable<Boolean>

<code>true</code> if Always On is enabled; otherwise, <code>false</code>.

javaVersion
String

Java version.

javaContainer
String

Java container.

javaContainerVersion
String

Java container version.

appCommandLine
String

App command line to launch.

managedPipelineMode
Nullable<ManagedPipelineMode>

Managed pipeline mode. Possible values include: 'Integrated', 'Classic'

virtualApplications
IList<VirtualApplication>

Virtual applications.

loadBalancing
Nullable<SiteLoadBalancing>

Site load balancing. Possible values include: 'WeightedRoundRobin', 'LeastRequests', 'LeastResponseTime', 'WeightedTotalTraffic', 'RequestHash', 'PerSiteRoundRobin'

experiments
Experiments

This is work around for polymorphic types.

limits
SiteLimits

Site limits.

autoHealEnabled
Nullable<Boolean>

<code>true</code> if Auto Heal is enabled; otherwise, <code>false</code>.

autoHealRules
AutoHealRules

Auto Heal rules.

tracingOptions
String

Tracing options.

vnetName
String

Virtual Network name.

vnetRouteAllEnabled
Nullable<Boolean>

Virtual Network Route All enabled. This causes all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied.

vnetPrivatePortsCount
Nullable<Int32>

The number of private ports assigned to this app. These will be assigned dynamically on runtime.

cors
CorsSettings

Cross-Origin Resource Sharing (CORS) settings.

push
PushSettings

Push endpoint settings.

apiDefinition
ApiDefinitionInfo

Information about the formal API definition for the app.

apiManagementConfig
ApiManagementConfig

Azure API management settings linked to the app.

autoSwapSlotName
String

Auto-swap slot name.

localMySqlEnabled
Nullable<Boolean>

<code>true</code> to enable local MySQL; otherwise, <code>false</code>.

managedServiceIdentityId
Nullable<Int32>

Managed Service Identity Id

xManagedServiceIdentityId
Nullable<Int32>

Explicit Managed Service Identity Id

keyVaultReferenceIdentity
String

Identity to use for Key Vault Reference authentication.

ipSecurityRestrictions
IList<IpSecurityRestriction>

IP security restrictions for main.

scmIpSecurityRestrictions
IList<IpSecurityRestriction>

IP security restrictions for scm.

scmIpSecurityRestrictionsUseMain
Nullable<Boolean>

IP security restrictions for scm to use main.

http20Enabled
Nullable<Boolean>

Http20Enabled: configures a web site to allow clients to connect over http2.0

minTlsVersion
String

MinTlsVersion: configures the minimum version of TLS required for SSL requests. Possible values include: '1.0', '1.1', '1.2'

scmMinTlsVersion
String

ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site. Possible values include: '1.0', '1.1', '1.2'

ftpsState
String

State of FTP / FTPS service. Possible values include: 'AllAllowed', 'FtpsOnly', 'Disabled'

preWarmedInstanceCount
Nullable<Int32>

Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans

functionAppScaleLimit
Nullable<Int32>

Maximum number of workers that a site can scale out to. This setting only applies to the Consumption and Elastic Premium Plans

healthCheckPath
String

Health check path

functionsRuntimeScaleMonitoringEnabled
Nullable<Boolean>

Gets or sets a value indicating whether functions runtime scale monitoring is enabled. When enabled, the ScaleController will not monitor event sources directly, but will instead call to the runtime to get scale status.

websiteTimeZone
String

Sets the time zone a site uses for generating timestamps. Compatible with Linux and Windows App Service. Setting the WEBSITE_TIME_ZONE app setting takes precedence over this config. For Linux, expects tz database values https://www.iana.org/time-zones (for a quick reference see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For Windows, expects one of the time zones listed under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones

minimumElasticInstanceCount
Nullable<Int32>

Number of minimum instance count for a site This setting only applies to the Elastic Plans

azureStorageAccounts
IDictionary<String,AzureStorageInfoValue>

List of Azure Storage Accounts.

publicNetworkAccess
String

Property to allow or block all public traffic.

Applies to