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

SiteConfigResource 类

定义

Web 应用配置 ARM 资源。

[Microsoft.Rest.Serialization.JsonTransformation]
public class SiteConfigResource : Microsoft.Azure.Management.WebSites.Models.ProxyOnlyResource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type SiteConfigResource = class
    inherit ProxyOnlyResource
Public Class SiteConfigResource
Inherits ProxyOnlyResource
继承
SiteConfigResource
属性

构造函数

SiteConfigResource()

初始化 SiteConfigResource 类的新实例。

SiteConfigResource(String, String, String, String, 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)

初始化 SiteConfigResource 类的新实例。

属性

AcrUseManagedIdentityCreds

获取或设置将托管标识 Creds 用于 ACR 拉取的标志

AcrUserManagedIdentityID

获取或设置是否使用用户托管标识、用户托管标识 ClientId

AlwaysOn

如果启用了Always On,则获取或设置 &lt;code&gt;true&lt;/code&gt;否则为 &lt;code&gt;false&lt;/code&gt;。

ApiDefinition

获取或设置有关应用的正式 API 定义的信息。

ApiManagementConfig

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

AppCommandLine

获取或设置要启动的应用命令行。

AppSettings

获取或设置应用程序设置。

AutoHealEnabled

如果启用了自动愈合,则获取或设置 &lt;code&gt;true&lt;/code&gt;否则为 &lt;code&gt;false&lt;/code&gt;。

AutoHealRules

获取或设置自动愈合规则。

AutoSwapSlotName

获取或设置自动交换槽名称。

AzureStorageAccounts

获取或设置 Azure 存储帐户的列表。

ConnectionStrings

获取或设置连接字符串。

Cors

获取或设置跨域资源共享 (CORS) 设置。

DefaultDocuments

获取或设置默认文档。

DetailedErrorLoggingEnabled

如果启用了详细错误日志记录,则获取或设置 &lt;code&gt;true&lt;/code&gt;否则为 &lt;code&gt;false&lt;/code&gt;。

DocumentRoot

获取或设置文档根。

Experiments

获取或设置多态类型的解决方法。

FtpsState

获取或设置 FTP/FTPS 服务的状态。 可能的值包括:“AllAllowed”、“FtpsOnly”、“Disabled”

FunctionAppScaleLimit

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

FunctionsRuntimeScaleMonitoringEnabled

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

HandlerMappings

获取或设置处理程序映射。

HealthCheckPath

获取或设置运行状况检查路径

Http20Enabled

获取或设置 http20Enabled:配置网站以允许客户端通过 http2.0 进行连接

HttpLoggingEnabled

如果启用了 HTTP 日志记录,则获取或设置 &lt;code&gt;true&lt;/code&gt;否则为 &lt;code&gt;false&lt;/code&gt;。

Id

获取资源 ID。

(继承自 ProxyOnlyResource)
IpSecurityRestrictions

获取或设置main的 IP 安全限制。

JavaContainer

获取或设置 java 容器。

JavaContainerVersion

获取或设置 java 容器版本。

JavaVersion

获取或设置 java 版本。

KeyVaultReferenceIdentity

获取或设置用于密钥保管库引用身份验证的标识。

Kind

获取或设置资源的种类。

(继承自 ProxyOnlyResource)
Limits

获取或设置网站限制。

LinuxFxVersion

获取或设置 linux 应用框架和版本

LoadBalancing

获取或设置站点负载均衡。 可能的值包括:“WeightedRoundRobin”、“LeastRequests”、“LeastResponseTime”、“WeightedTotalTraffic”、“RequestHash”、“PerSiteRoundRobin”

LocalMySqlEnabled

获取或设置 &lt;code&gt;true&lt;/code&gt; 以启用本地 MySQL;否则为 &lt;code&gt;false&lt;/code&gt;。

LogsDirectorySizeLimit

获取或设置 HTTP 日志目录大小限制。

MachineKey

获取 site MachineKey。

ManagedPipelineMode

获取或设置托管管道模式。 可能的值包括:“Integrated”、“Classic”

ManagedServiceIdentityId

获取或设置托管服务标识 ID

MinimumElasticInstanceCount

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

MinTlsVersion

获取或设置 minTlsVersion:配置 SSL 请求所需的最低 TLS 版本。 可能的值包括:“1.0”、“1.1”、“1.2”

Name

获取资源名称。

(继承自 ProxyOnlyResource)
NetFrameworkVersion

获取或设置.NET Framework版本。

NodeVersion

获取或设置Node.js的版本。

NumberOfWorkers

获取或设置辅助角色的数目。

PhpVersion

获取或设置 PHP 的版本。

PowerShellVersion

获取或设置 PowerShell 的版本。

PreWarmedInstanceCount

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

PublicNetworkAccess

获取或设置允许或阻止所有公共流量的属性。

PublishingUsername

获取或设置发布用户名。

Push

获取或设置推送终结点设置。

PythonVersion

获取或设置 Python 的版本。

RemoteDebuggingEnabled

如果启用了远程调试,则获取或设置 &lt;code&gt;true&lt;/code&gt;否则为 &lt;code&gt;false&lt;/code&gt;。

RemoteDebuggingVersion

获取或设置远程调试版本。

RequestTracingEnabled

如果启用了请求跟踪,则获取或设置 &lt;code&gt;true&lt;/code&gt;否则为 &lt;code&gt;false&lt;/code&gt;。

RequestTracingExpirationTime

获取或设置请求跟踪过期时间。

ScmIpSecurityRestrictions

获取或设置 scm 的 IP 安全限制。

ScmIpSecurityRestrictionsUseMain

获取或设置 scm 使用main的 IP 安全限制。

ScmMinTlsVersion

获取或设置 scmMinTlsVersion:配置 SCM 站点的 SSL 请求所需的最低 TLS 版本。 可能的值包括:“1.0”、“1.1”、“1.2”

ScmType

获取或设置 SCM 类型。 可能的值包括:“None”、“Dropbox”、“Tfs”、“LocalGit”、“GitHub”、“CodePlexGit”、“CodePlexHg”、“BitbucketGit”、“BitbucketHg”、“ExternalGit”、“ExternalGit”、“ExternalHg”、“OneDrive”、“VSO”、“VSTSRM”

TracingOptions

获取或设置跟踪选项。

Type

获取资源类型。

(继承自 ProxyOnlyResource)
Use32BitWorkerProcess

获取或设置 &lt;code&gt;true&lt;/code&gt; 以使用 32 位工作进程;否则为 &lt;code&gt;false&lt;/code&gt;。

VirtualApplications

获取或设置虚拟应用程序。

VnetName

获取或设置虚拟网络名称。

VnetPrivatePortsCount

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

VnetRouteAllEnabled

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

WebsiteTimeZone

获取或设置站点用于生成时间戳的时区。 与 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下列出的时区之一

WebSocketsEnabled

如果启用了 WebSocket,则获取或设置 &lt;code&gt;true&lt;/code&gt;;否则为 &lt;code&gt;false&lt;/code&gt;。

WindowsFxVersion

获取或设置 xenon 应用框架和版本

XManagedServiceIdentityId

获取或设置显式托管服务标识 ID

方法

Validate()

验证 对象。

适用于