你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ArmAppServiceModelFactory.SiteConfigProperties 方法

定义

初始化 SiteConfigProperties 的新实例。

public static Azure.ResourceManager.AppService.Models.SiteConfigProperties SiteConfigProperties (int? numberOfWorkers = default, System.Collections.Generic.IEnumerable<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? isRequestTracingEnabled = default, DateTimeOffset? requestTracingExpirationOn = default, bool? isRemoteDebuggingEnabled = default, string remoteDebuggingVersion = default, bool? isHttpLoggingEnabled = default, bool? useManagedIdentityCreds = default, string acrUserManagedIdentityId = default, int? logsDirectorySizeLimit = default, bool? isDetailedErrorLoggingEnabled = default, string publishingUsername = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppService.Models.AppServiceNameValuePair> appSettings = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppService.Models.ConnStringInfo> connectionStrings = default, Azure.ResourceManager.AppService.Models.SiteMachineKey machineKey = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppService.Models.HttpRequestHandlerMapping> handlerMappings = default, string documentRoot = default, Azure.ResourceManager.AppService.Models.ScmType? scmType = default, bool? use32BitWorkerProcess = default, bool? isWebSocketsEnabled = default, bool? isAlwaysOn = default, string javaVersion = default, string javaContainer = default, string javaContainerVersion = default, string appCommandLine = default, Azure.ResourceManager.AppService.Models.ManagedPipelineMode? managedPipelineMode = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppService.Models.VirtualApplication> virtualApplications = default, Azure.ResourceManager.AppService.Models.SiteLoadBalancing? loadBalancing = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppService.Models.RampUpRule> experimentsRampUpRules = default, Azure.ResourceManager.AppService.Models.SiteLimits limits = default, bool? isAutoHealEnabled = default, Azure.ResourceManager.AppService.Models.AutoHealRules autoHealRules = default, string tracingOptions = default, string vnetName = default, bool? isVnetRouteAllEnabled = default, int? vnetPrivatePortsCount = default, Azure.ResourceManager.AppService.Models.AppServiceCorsSettings cors = default, Azure.ResourceManager.AppService.Models.WebAppPushSettings push = default, Uri apiDefinitionUri = default, string apiManagementConfigId = default, string autoSwapSlotName = default, bool? isLocalMySqlEnabled = default, int? managedServiceIdentityId = default, int? xManagedServiceIdentityId = default, string keyVaultReferenceIdentity = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppService.Models.AppServiceIPSecurityRestriction> ipSecurityRestrictions = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppService.Models.AppServiceIPSecurityRestriction> scmIPSecurityRestrictions = default, bool? allowIPSecurityRestrictionsForScmToUseMain = default, bool? isHttp20Enabled = default, Azure.ResourceManager.AppService.Models.AppServiceSupportedTlsVersion? minTlsVersion = default, Azure.ResourceManager.AppService.Models.AppServiceSupportedTlsVersion? scmMinTlsVersion = default, Azure.ResourceManager.AppService.Models.AppServiceFtpsState? ftpsState = default, int? preWarmedInstanceCount = default, int? functionAppScaleLimit = default, string healthCheckPath = default, bool? isFunctionsRuntimeScaleMonitoringEnabled = default, string websiteTimeZone = default, int? minimumElasticInstanceCount = default, System.Collections.Generic.IDictionary<string,Azure.ResourceManager.AppService.Models.AppServiceStorageAccessInfo> azureStorageAccounts = default, string publicNetworkAccess = default);
static member SiteConfigProperties : Nullable<int> * seq<string> * string * string * string * string * string * string * string * Nullable<bool> * Nullable<DateTimeOffset> * Nullable<bool> * string * Nullable<bool> * Nullable<bool> * string * Nullable<int> * Nullable<bool> * string * seq<Azure.ResourceManager.AppService.Models.AppServiceNameValuePair> * seq<Azure.ResourceManager.AppService.Models.ConnStringInfo> * Azure.ResourceManager.AppService.Models.SiteMachineKey * seq<Azure.ResourceManager.AppService.Models.HttpRequestHandlerMapping> * string * Nullable<Azure.ResourceManager.AppService.Models.ScmType> * Nullable<bool> * Nullable<bool> * Nullable<bool> * string * string * string * string * Nullable<Azure.ResourceManager.AppService.Models.ManagedPipelineMode> * seq<Azure.ResourceManager.AppService.Models.VirtualApplication> * Nullable<Azure.ResourceManager.AppService.Models.SiteLoadBalancing> * seq<Azure.ResourceManager.AppService.Models.RampUpRule> * Azure.ResourceManager.AppService.Models.SiteLimits * Nullable<bool> * Azure.ResourceManager.AppService.Models.AutoHealRules * string * string * Nullable<bool> * Nullable<int> * Azure.ResourceManager.AppService.Models.AppServiceCorsSettings * Azure.ResourceManager.AppService.Models.WebAppPushSettings * Uri * string * string * Nullable<bool> * Nullable<int> * Nullable<int> * string * seq<Azure.ResourceManager.AppService.Models.AppServiceIPSecurityRestriction> * seq<Azure.ResourceManager.AppService.Models.AppServiceIPSecurityRestriction> * Nullable<bool> * Nullable<bool> * Nullable<Azure.ResourceManager.AppService.Models.AppServiceSupportedTlsVersion> * Nullable<Azure.ResourceManager.AppService.Models.AppServiceSupportedTlsVersion> * Nullable<Azure.ResourceManager.AppService.Models.AppServiceFtpsState> * Nullable<int> * Nullable<int> * string * Nullable<bool> * string * Nullable<int> * System.Collections.Generic.IDictionary<string, Azure.ResourceManager.AppService.Models.AppServiceStorageAccessInfo> * string -> Azure.ResourceManager.AppService.Models.SiteConfigProperties
Public Shared Function SiteConfigProperties (Optional numberOfWorkers As Nullable(Of Integer) = Nothing, Optional defaultDocuments As IEnumerable(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 isRequestTracingEnabled As Nullable(Of Boolean) = Nothing, Optional requestTracingExpirationOn As Nullable(Of DateTimeOffset) = Nothing, Optional isRemoteDebuggingEnabled As Nullable(Of Boolean) = Nothing, Optional remoteDebuggingVersion As String = Nothing, Optional isHttpLoggingEnabled As Nullable(Of Boolean) = Nothing, Optional useManagedIdentityCreds As Nullable(Of Boolean) = Nothing, Optional acrUserManagedIdentityId As String = Nothing, Optional logsDirectorySizeLimit As Nullable(Of Integer) = Nothing, Optional isDetailedErrorLoggingEnabled As Nullable(Of Boolean) = Nothing, Optional publishingUsername As String = Nothing, Optional appSettings As IEnumerable(Of AppServiceNameValuePair) = Nothing, Optional connectionStrings As IEnumerable(Of ConnStringInfo) = Nothing, Optional machineKey As SiteMachineKey = Nothing, Optional handlerMappings As IEnumerable(Of HttpRequestHandlerMapping) = Nothing, Optional documentRoot As String = Nothing, Optional scmType As Nullable(Of ScmType) = Nothing, Optional use32BitWorkerProcess As Nullable(Of Boolean) = Nothing, Optional isWebSocketsEnabled As Nullable(Of Boolean) = Nothing, Optional isAlwaysOn 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 IEnumerable(Of VirtualApplication) = Nothing, Optional loadBalancing As Nullable(Of SiteLoadBalancing) = Nothing, Optional experimentsRampUpRules As IEnumerable(Of RampUpRule) = Nothing, Optional limits As SiteLimits = Nothing, Optional isAutoHealEnabled As Nullable(Of Boolean) = Nothing, Optional autoHealRules As AutoHealRules = Nothing, Optional tracingOptions As String = Nothing, Optional vnetName As String = Nothing, Optional isVnetRouteAllEnabled As Nullable(Of Boolean) = Nothing, Optional vnetPrivatePortsCount As Nullable(Of Integer) = Nothing, Optional cors As AppServiceCorsSettings = Nothing, Optional push As WebAppPushSettings = Nothing, Optional apiDefinitionUri As Uri = Nothing, Optional apiManagementConfigId As String = Nothing, Optional autoSwapSlotName As String = Nothing, Optional isLocalMySqlEnabled 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 IEnumerable(Of AppServiceIPSecurityRestriction) = Nothing, Optional scmIPSecurityRestrictions As IEnumerable(Of AppServiceIPSecurityRestriction) = Nothing, Optional allowIPSecurityRestrictionsForScmToUseMain As Nullable(Of Boolean) = Nothing, Optional isHttp20Enabled As Nullable(Of Boolean) = Nothing, Optional minTlsVersion As Nullable(Of AppServiceSupportedTlsVersion) = Nothing, Optional scmMinTlsVersion As Nullable(Of AppServiceSupportedTlsVersion) = Nothing, Optional ftpsState As Nullable(Of AppServiceFtpsState) = Nothing, Optional preWarmedInstanceCount As Nullable(Of Integer) = Nothing, Optional functionAppScaleLimit As Nullable(Of Integer) = Nothing, Optional healthCheckPath As String = Nothing, Optional isFunctionsRuntimeScaleMonitoringEnabled As Nullable(Of Boolean) = Nothing, Optional websiteTimeZone As String = Nothing, Optional minimumElasticInstanceCount As Nullable(Of Integer) = Nothing, Optional azureStorageAccounts As IDictionary(Of String, AppServiceStorageAccessInfo) = Nothing, Optional publicNetworkAccess As String = Nothing) As SiteConfigProperties

参数

numberOfWorkers
Nullable<Int32>

工作线程数。

defaultDocuments
IEnumerable<String>

默认文档。

netFrameworkVersion
String

.NET Framework版本。

phpVersion
String

PHP 的版本。

pythonVersion
String

Python 的版本。

nodeVersion
String

Node.js 的版本。

powerShellVersion
String

PowerShell 的版本。

linuxFxVersion
String

Linux 应用框架和版本。

windowsFxVersion
String

Xenon App Framework 和版本。

isRequestTracingEnabled
Nullable<Boolean>

<如果启用了请求跟踪,则为代码>true/code>;否则为 <false></code><。

requestTracingExpirationOn
Nullable<DateTimeOffset>

请求跟踪过期时间。

isRemoteDebuggingEnabled
Nullable<Boolean>

<如果启用了远程调试,则为 code true/code>;否则为<代码>false</code>。<>

remoteDebuggingVersion
String

远程调试版本。

isHttpLoggingEnabled
Nullable<Boolean>

<如果启用了 HTTP 日志记录,则为代码 true/code>;否则为<代码>false</code>。<>

useManagedIdentityCreds
Nullable<Boolean>

将托管标识 Creds 用于 ACR 拉取的标志。

acrUserManagedIdentityId
String

如果使用用户托管标识,则为用户托管标识 ClientId。

logsDirectorySizeLimit
Nullable<Int32>

HTTP 日志目录大小限制。

isDetailedErrorLoggingEnabled
Nullable<Boolean>

<如果启用了详细错误日志记录,则为代码>true/code>;否则,<代码>为 false</code><。

publishingUsername
String

发布用户名。

appSettings
IEnumerable<AppServiceNameValuePair>

应用程序设置。

connectionStrings
IEnumerable<ConnStringInfo>

连接字符串。

machineKey
SiteMachineKey

Site MachineKey。

handlerMappings
IEnumerable<HttpRequestHandlerMapping>

处理程序映射。

documentRoot
String

文档根目录。

scmType
Nullable<ScmType>

SCM 类型。

use32BitWorkerProcess
Nullable<Boolean>

<code>true</code> 以使用 32 位工作进程;否则为 <false></code>。

isWebSocketsEnabled
Nullable<Boolean>

<如果启用了 WebSocket,则为代码>true/code>;否则为 <false></code><。

isAlwaysOn
Nullable<Boolean>

<如果启用Always On,则为代码 true/code>;否则为 <false<>/code>。<>

javaVersion
String

Java 版本。

javaContainer
String

Java 容器。

javaContainerVersion
String

Java 容器版本。

appCommandLine
String

要启动的应用命令行。

managedPipelineMode
Nullable<ManagedPipelineMode>

托管管道模式。

virtualApplications
IEnumerable<VirtualApplication>

虚拟应用程序。

loadBalancing
Nullable<SiteLoadBalancing>

站点负载均衡。

experimentsRampUpRules
IEnumerable<RampUpRule>

这是针对多态类型的解决方法。

limits
SiteLimits

网站限制。

isAutoHealEnabled
Nullable<Boolean>

<如果启用了自动愈合,则为代码 true/code>;否则为 <false<>/code>。<>

autoHealRules
AutoHealRules

自动愈合规则。

tracingOptions
String

跟踪选项。

vnetName
String

虚拟网络名称。

isVnetRouteAllEnabled
Nullable<Boolean>

虚拟网络启用“全部路由”。 这会导致所有出站流量都应用了虚拟网络安全组和用户定义的路由。

vnetPrivatePortsCount
Nullable<Int32>

分配给此应用的专用端口数。 这些将在运行时动态分配。

cors
AppServiceCorsSettings

跨源资源共享 (CORS) 设置。

push
WebAppPushSettings

推送终结点设置。

apiDefinitionUri
Uri

有关应用的正式 API 定义的信息。

apiManagementConfigId
String

链接到应用的 Azure API 管理设置。

autoSwapSlotName
String

自动交换槽名称。

isLocalMySqlEnabled
Nullable<Boolean>

<code>true</code> 用于启用本地 MySQL;否则为 <代码>false</code>。

managedServiceIdentityId
Nullable<Int32>

托管服务标识 ID。

xManagedServiceIdentityId
Nullable<Int32>

显式托管服务标识 ID。

keyVaultReferenceIdentity
String

用于密钥保管库参考身份验证的标识。

ipSecurityRestrictions
IEnumerable<AppServiceIPSecurityRestriction>

main的 IP 安全限制。

scmIPSecurityRestrictions
IEnumerable<AppServiceIPSecurityRestriction>

scm 的 IP 安全限制。

allowIPSecurityRestrictionsForScmToUseMain
Nullable<Boolean>

scm 使用main的 IP 安全限制。

isHttp20Enabled
Nullable<Boolean>

Http20Enabled:将网站配置为允许客户端通过 http2.0 进行连接。

minTlsVersion
Nullable<AppServiceSupportedTlsVersion>

MinTlsVersion:配置 SSL 请求所需的最低 TLS 版本。

scmMinTlsVersion
Nullable<AppServiceSupportedTlsVersion>

ScmMinTlsVersion:配置 SCM 站点的 SSL 请求所需的 TLS 最低版本。

ftpsState
Nullable<AppServiceFtpsState>

FTP/FTPS 服务的状态。

preWarmedInstanceCount
Nullable<Int32>

预热实例数。 此设置仅适用于消耗和弹性计划

functionAppScaleLimit
Nullable<Int32>

网站可以横向扩展到的最大辅助角色数。 此设置仅适用于消耗和弹性高级计划

healthCheckPath
String

运行状况检查路径。

isFunctionsRuntimeScaleMonitoringEnabled
Nullable<Boolean>

获取或设置一个值,该值指示是否启用函数运行时规模监视。 启用后,ScaleController 不会直接监视事件源,而是会调用运行时来获取缩放状态。

websiteTimeZone
String

设置站点用于生成时间戳的时区。 与 Linux 和 Windows App 服务兼容。 设置WEBSITE_TIME_ZONE应用设置优先于此配置。对于 Linux,需要 tz 数据库值 https://www.iana.org/time-zones (快速参考,请参阅 https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) 。 对于 Windows,需要HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones下列出的时区之一。

minimumElasticInstanceCount
Nullable<Int32>

站点的最小实例计数此设置仅适用于弹性计划

azureStorageAccounts
IDictionary<String,AppServiceStorageAccessInfo>

Azure 存储帐户列表。

publicNetworkAccess
String

允许或阻止所有公共流量的属性。

返回

用于模拟的新 SiteConfigProperties 实例。

适用于