Web Apps - Create Or Update Configuration

更新應用程式設定的描述。

HTTP
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web?api-version=2024-04-01

URI 參數

名稱 位於 必要 類型 Description
name
path True

string

應用程式的名稱。

resourceGroupName
path True

string

資源所屬的資源群組名稱。

Regex 模式: ^[-\w\._\(\)]+[^\.]$

subscriptionId
path True

string

您的 Azure 訂用帳戶標識碼。 這是 GUID 格式的字串(例如 0000000000-0000-0000-0000-0000000000000000)。

api-version
query True

string

API 版本

要求本文

名稱 類型 Description
kind

string

資源種類。

properties.acrUseManagedIdentityCreds

boolean

使用受控識別 Creds 進行 ACR 提取的旗標

properties.acrUserManagedIdentityID

string

如果使用使用者受控識別,則使用者受控識別 ClientId

properties.alwaysOn

boolean

如果已啟用 Always On,true;否則,false

properties.apiDefinition

ApiDefinitionInfo

應用程式正式 API 定義的相關信息。

properties.apiManagementConfig

ApiManagementConfig

連結至應用程式的 Azure API 管理設定。

properties.appCommandLine

string

要啟動的應用程式命令行。

properties.appSettings

NameValuePair[]

應用程式設定。

properties.autoHealEnabled

boolean

如果已啟用自動癒合,true;否則,false

properties.autoHealRules

AutoHealRules

自動治癒規則。

properties.autoSwapSlotName

string

自動交換位置名稱。

properties.azureStorageAccounts

<string,  AzureStorageInfoValue>

Azure 記憶體帳戶的清單。

properties.connectionStrings

ConnStringInfo[]

連接字串。

properties.cors

CorsSettings

跨原始來源資源分享 (CORS) 設定。

properties.defaultDocuments

string[]

默認檔。

properties.detailedErrorLoggingEnabled

boolean

如果已啟用詳細的錯誤記錄,true;否則,false

properties.documentRoot

string

檔根目錄。

properties.elasticWebAppScaleLimit

integer

網站可相應放大至的工作者數目上限。 此設定僅適用於 ElasticScaleEnabled true 方案中的應用程式

properties.experiments

Experiments

這適用於多型類型。

properties.ftpsState

FtpsState

FTP / FTPS 服務的狀態

properties.functionAppScaleLimit

integer

網站可相應放大至的工作者數目上限。 此設定僅適用於取用和彈性進階方案

properties.functionsRuntimeScaleMonitoringEnabled

boolean

取得或設定值,指出是否啟用函式運行時間調整監視。 啟用時,ScaleController 不會直接監視事件來源,而是會呼叫運行時間以取得縮放狀態。

properties.handlerMappings

HandlerMapping[]

處理程序對應。

properties.healthCheckPath

string

健康情況檢查路徑

properties.http20Enabled

boolean

Http20Enabled:設定網站以允許用戶端透過 HTTP2.0 連線

properties.httpLoggingEnabled

boolean

如果已啟用 HTTP 記錄,true;否則,false

properties.ipSecurityRestrictions

IpSecurityRestriction[]

main 的IP安全性限制。

properties.ipSecurityRestrictionsDefaultAction

DefaultAction

如果沒有符合任何規則,則主要存取限制的默認動作。

properties.javaContainer

string

Java 容器。

properties.javaContainerVersion

string

Java 容器版本。

properties.javaVersion

string

Java 版本。

properties.keyVaultReferenceIdentity

string

要用於 Key Vault 參考驗證的身分識別。

properties.limits

SiteLimits

網站限制。

properties.linuxFxVersion

string

Linux 應用程式架構和版本

properties.loadBalancing

SiteLoadBalancing

網站負載平衡。

properties.localMySqlEnabled

boolean

true 啟用本機 MySQL;否則,false

properties.logsDirectorySizeLimit

integer

HTTP 記錄目錄大小限制。

properties.managedPipelineMode

ManagedPipelineMode

受控管線模式。

properties.managedServiceIdentityId

integer

受控服務識別標識碼

properties.metadata

NameValuePair[]

應用程式元數據。 無法擷取這個屬性,因為它可能包含秘密。

properties.minTlsCipherSuite

TlsCipherSuites

應用程式允許的最小強度 TLS 加密套件

properties.minTlsVersion

SupportedTlsVersions

MinTlsVersion:設定 SSL 要求所需的最低 TLS 版本

properties.minimumElasticInstanceCount

integer

月臺的最低實例計數數目 此設定僅適用於彈性方案

properties.netFrameworkVersion

string

.NET Framework 版本。

properties.nodeVersion

string

Node.js的版本。

properties.numberOfWorkers

integer

背景工作角色數目。

properties.phpVersion

string

PHP 版本。

properties.powerShellVersion

string

PowerShell 版本。

properties.preWarmedInstanceCount

integer

預先Warmed 實例的數目。 此設定僅適用於取用和彈性方案

properties.publicNetworkAccess

string

允許或封鎖所有公用流量的屬性。

properties.publishingUsername

string

發佈用戶名稱。

properties.push

PushSettings

推送端點設定。

properties.pythonVersion

string

Python 版本。

properties.remoteDebuggingEnabled

boolean

如果已啟用遠程偵錯,true;否則,false

properties.remoteDebuggingVersion

string

遠端偵錯版本。

properties.requestTracingEnabled

boolean

如果已啟用要求追蹤,true;否則,false

properties.requestTracingExpirationTime

string

要求追蹤到期時間。

properties.scmIpSecurityRestrictions

IpSecurityRestriction[]

scm 的IP安全性限制。

properties.scmIpSecurityRestrictionsDefaultAction

DefaultAction

如果未比對任何規則,則為 scm 存取限制的預設動作。

properties.scmIpSecurityRestrictionsUseMain

boolean

scm 使用 main 的 IP 安全性限制。

properties.scmMinTlsVersion

SupportedTlsVersions

ScmMinTlsVersion:設定 SCM 網站 SSL 要求所需的最低 TLS 版本

properties.scmType

ScmType

SCM 類型。

properties.tracingOptions

string

追蹤選項。

properties.use32BitWorkerProcess

boolean

true 使用32位背景工作進程;否則,false

properties.virtualApplications

VirtualApplication[]

虛擬應用程式。

properties.vnetName

string

虛擬網路名稱。

properties.vnetPrivatePortsCount

integer

指派給此應用程式的私人埠數目。 這些會在運行時間動態指派。

properties.vnetRouteAllEnabled

boolean

虛擬網路路由全部啟用。 這會導致所有輸出流量套用虛擬網路安全組和用戶定義的路由。

properties.webSocketsEnabled

boolean

如果已啟用 WebSocket,true;否則,false

properties.websiteTimeZone

string

設定網站用來產生時間戳的時區。 與 Linux 和 Windows App Service 相容。 設定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

properties.windowsFxVersion

string

Xenon App Framework 和版本

properties.xManagedServiceIdentityId

integer

明確受控服務識別標識碼

回應

名稱 類型 Description
200 OK

SiteConfigResource

還行

Other Status Codes

DefaultErrorResponse

App Service 錯誤回應。

安全性

azure_auth

Azure Active Directory OAuth2 Flow

類型: oauth2
Flow: implicit
授權 URL: https://login.microsoftonline.com/common/oauth2/authorize

範圍

名稱 Description
user_impersonation 模擬您的用戶帳戶

範例

Update Site Config

範例要求

HTTP
PUT https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/web?api-version=2024-04-01

{
  "properties": {
    "numberOfWorkers": 1,
    "defaultDocuments": [
      "Default.htm",
      "Default.html",
      "Default.asp",
      "index.htm",
      "index.html",
      "iisstart.htm",
      "default.aspx",
      "index.php",
      "hostingstart.html"
    ],
    "netFrameworkVersion": "v4.0",
    "phpVersion": "5.6",
    "pythonVersion": "",
    "nodeVersion": "",
    "powerShellVersion": "",
    "linuxFxVersion": "",
    "requestTracingEnabled": false,
    "remoteDebuggingEnabled": false,
    "httpLoggingEnabled": false,
    "acrUseManagedIdentityCreds": false,
    "logsDirectorySizeLimit": 35,
    "detailedErrorLoggingEnabled": false,
    "use32BitWorkerProcess": true,
    "webSocketsEnabled": false,
    "alwaysOn": false,
    "appCommandLine": "",
    "managedPipelineMode": "Integrated",
    "virtualApplications": [
      {
        "virtualPath": "/",
        "physicalPath": "site\\wwwroot",
        "preloadEnabled": false
      }
    ],
    "loadBalancing": "LeastRequests",
    "autoHealEnabled": false,
    "vnetName": "",
    "vnetRouteAllEnabled": false,
    "vnetPrivatePortsCount": 0,
    "http20Enabled": false,
    "minTlsVersion": "1.2",
    "scmMinTlsVersion": "1.2",
    "ftpsState": "AllAllowed",
    "functionAppScaleLimit": 0,
    "functionsRuntimeScaleMonitoringEnabled": false,
    "minimumElasticInstanceCount": 0,
    "azureStorageAccounts": {}
  }
}

範例回覆

JSON
{
  "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/config/web",
  "name": "web",
  "type": "Microsoft.Web/sites/config",
  "kind": "app",
  "properties": {
    "numberOfWorkers": 1,
    "defaultDocuments": [
      "Default.htm",
      "Default.html",
      "Default.asp",
      "index.htm",
      "index.html",
      "iisstart.htm",
      "default.aspx",
      "index.php",
      "hostingstart.html"
    ],
    "netFrameworkVersion": "v4.0",
    "phpVersion": "5.6",
    "pythonVersion": "",
    "nodeVersion": "",
    "powerShellVersion": "",
    "linuxFxVersion": "",
    "requestTracingEnabled": false,
    "remoteDebuggingEnabled": false,
    "httpLoggingEnabled": false,
    "acrUseManagedIdentityCreds": false,
    "logsDirectorySizeLimit": 35,
    "detailedErrorLoggingEnabled": false,
    "use32BitWorkerProcess": true,
    "webSocketsEnabled": false,
    "alwaysOn": false,
    "appCommandLine": "",
    "managedPipelineMode": "Integrated",
    "virtualApplications": [
      {
        "virtualPath": "/",
        "physicalPath": "site\\wwwroot",
        "preloadEnabled": false
      }
    ],
    "loadBalancing": "LeastRequests",
    "autoHealEnabled": false,
    "vnetName": "",
    "vnetRouteAllEnabled": false,
    "vnetPrivatePortsCount": 0,
    "http20Enabled": false,
    "minTlsVersion": "1.2",
    "scmMinTlsVersion": "1.2",
    "ftpsState": "AllAllowed",
    "functionAppScaleLimit": 0,
    "functionsRuntimeScaleMonitoringEnabled": false,
    "minimumElasticInstanceCount": 0,
    "azureStorageAccounts": {}
  }
}

定義

名稱 Description
ApiDefinitionInfo

應用程式正式 API 定義的相關信息。

ApiManagementConfig

連結至應用程式的 Azure API 管理 (APIM) 組態。

AutoHealActions

觸發規則時,自動癒合模組要採取的動作。

AutoHealActionType

要採取的預先定義動作。

AutoHealCustomAction

觸發自動癒合規則時要執行的自定義動作。

AutoHealRules

可以定義用於自動癒合的規則。

AutoHealTriggers

自動癒合的觸發程式。

AzureStorageInfoValue

字典記憶體的 Azure 檔案記憶體或 Blob 記憶體存取資訊值。

AzureStorageProtocol

掛接要用於記憶體帳戶的通訊協定。

AzureStorageState

記憶體帳戶的狀態。

AzureStorageType

記憶體的類型。

ConnectionStringType

資料庫的類型。

ConnStringInfo

資料庫連接字串資訊。

CorsSettings

應用程式的跨原始來源資源分享 (CORS) 設定。

DefaultAction

如果沒有符合任何規則,則主要存取限制的默認動作。

DefaultErrorResponse

App Service 錯誤回應。

Details
Error

錯誤模型。

Experiments

生產實驗中的路由規則。

FtpsState

FTP / FTPS 服務的狀態

HandlerMapping

IIS 處理程式對應,用來定義哪些處理程式會處理具有特定擴充功能的 HTTP 要求。 例如,它用來設定 php-cgi.exe 進程,以使用 *.php 擴充功能處理所有 HTTP 要求。

IpFilterTag

定義此IP篩選器將用於哪些專案。 這是為了支援 Proxy 的IP篩選。

IpSecurityRestriction

應用程式上的IP安全性限制。

ManagedPipelineMode

受控管線模式。

NameValuePair

名稱值組。

PushSettings

應用程式的推送設定。

RampUpRule

用於加速測試的路由規則。 此規則允許將靜態流量 % 重新導向至位置,或根據效能逐漸變更路由 %。

RequestsBasedTrigger

根據要求總數觸發。

ScmType

SCM 類型。

SiteConfigResource

Web 應用程式設定 ARM 資源。

SiteLimits

在應用程式上設定的計量限制。

SiteLoadBalancing

網站負載平衡。

SiteMachineKey

應用程式的 MachineKey。

SlowRequestsBasedTrigger

根據要求運行時間觸發。

StatusCodesBasedTrigger

根據狀態代碼觸發。

StatusCodesRangeBasedTrigger

根據狀態代碼的範圍觸發。

SupportedTlsVersions

MinTlsVersion:設定 SSL 要求所需的最低 TLS 版本

TlsCipherSuites

應用程式允許的最小強度 TLS 加密套件

VirtualApplication

應用程式中的虛擬應用程式。

VirtualDirectory

虛擬應用程式的目錄。

ApiDefinitionInfo

應用程式正式 API 定義的相關信息。

名稱 類型 Description
url

string

API 定義的 URL。

ApiManagementConfig

連結至應用程式的 Azure API 管理 (APIM) 組態。

名稱 類型 Description
id

string

APIM-Api 標識碼。

AutoHealActions

觸發規則時,自動癒合模組要採取的動作。

名稱 類型 Description
actionType

AutoHealActionType

要採取的預先定義動作。

customAction

AutoHealCustomAction

要採取的自定義動作。

minProcessExecutionTime

string

執行動作之前,進程必須執行的時間下限

AutoHealActionType

要採取的預先定義動作。

Description
CustomAction
LogEvent
Recycle

AutoHealCustomAction

觸發自動癒合規則時要執行的自定義動作。

名稱 類型 Description
exe

string

要執行的可執行檔。

parameters

string

可執行文件的參數。

AutoHealRules

可以定義用於自動癒合的規則。

名稱 類型 Description
actions

AutoHealActions

觸發規則時要執行的動作。

triggers

AutoHealTriggers

描述何時執行自動癒合動作的條件。

AutoHealTriggers

自動癒合的觸發程式。

名稱 類型 Description
privateBytesInKB

integer

以私用位元組為基礎的規則。

requests

RequestsBasedTrigger

以要求總數為基礎的規則。

slowRequests

SlowRequestsBasedTrigger

根據要求運行時間的規則。

slowRequestsWithPath

SlowRequestsBasedTrigger[]

根據具有路徑的多個慢速要求規則的規則

statusCodes

StatusCodesBasedTrigger[]

以狀態代碼為基礎的規則。

statusCodesRange

StatusCodesRangeBasedTrigger[]

根據狀態代碼範圍的規則。

AzureStorageInfoValue

字典記憶體的 Azure 檔案記憶體或 Blob 記憶體存取資訊值。

名稱 類型 Description
accessKey

string

儲存體帳戶的存取金鑰。

accountName

string

記憶體帳戶的名稱。

mountPath

string

在站臺運行時間環境中掛接記憶體的路徑。

protocol

AzureStorageProtocol

掛接要用於記憶體帳戶的通訊協定。

shareName

string

檔案共享的名稱(容器名稱,用於 Blob 記憶體)。

state

AzureStorageState

記憶體帳戶的狀態。

type

AzureStorageType

記憶體的類型。

AzureStorageProtocol

掛接要用於記憶體帳戶的通訊協定。

Description
Http
Nfs
Smb

AzureStorageState

記憶體帳戶的狀態。

Description
InvalidCredentials
InvalidShare
NotValidated
Ok

AzureStorageType

記憶體的類型。

Description
AzureBlob
AzureFiles

ConnectionStringType

資料庫的類型。

Description
ApiHub
Custom
DocDb
EventHub
MySql
NotificationHub
PostgreSQL
RedisCache
SQLAzure
SQLServer
ServiceBus

ConnStringInfo

資料庫連接字串資訊。

名稱 類型 Description
connectionString

string

連接字串值。

name

string

連接字串的名稱。

type

ConnectionStringType

資料庫的類型。

CorsSettings

應用程式的跨原始來源資源分享 (CORS) 設定。

名稱 類型 Description
allowedOrigins

string[]

取得或設定應該允許進行跨原始來源呼叫的來源清單(例如:http://example.com:12345)。 使用 「*」 來允許所有專案。

supportCredentials

boolean

取得或設定是否允許具有認證的CORS要求。 如需詳細資訊,請參閱 https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials

DefaultAction

如果沒有符合任何規則,則主要存取限制的默認動作。

Description
Allow
Deny

DefaultErrorResponse

App Service 錯誤回應。

名稱 類型 Description
error

Error

錯誤模型。

Details

名稱 類型 Description
code

string

以程式設計方式識別錯誤的標準化字串。

message

string

詳細的錯誤描述和偵錯資訊。

target

string

詳細的錯誤描述和偵錯資訊。

Error

錯誤模型。

名稱 類型 Description
code

string

以程式設計方式識別錯誤的標準化字串。

details

Details[]

詳細的錯誤。

innererror

string

偵錯錯誤的詳細資訊。

message

string

詳細的錯誤描述和偵錯資訊。

target

string

詳細的錯誤描述和偵錯資訊。

Experiments

生產實驗中的路由規則。

名稱 類型 Description
rampUpRules

RampUpRule[]

遞增規則的清單。

FtpsState

FTP / FTPS 服務的狀態

Description
AllAllowed
Disabled
FtpsOnly

HandlerMapping

IIS 處理程式對應,用來定義哪些處理程式會處理具有特定擴充功能的 HTTP 要求。 例如,它用來設定 php-cgi.exe 進程,以使用 *.php 擴充功能處理所有 HTTP 要求。

名稱 類型 Description
arguments

string

要傳遞至腳本處理器的命令行自變數。

extension

string

使用此擴充功能的要求將會使用指定的 FastCGI 應用程式來處理。

scriptProcessor

string

FastCGI 應用程式的絕對路徑。

IpFilterTag

定義此IP篩選器將用於哪些專案。 這是為了支援 Proxy 的IP篩選。

Description
Default
ServiceTag
XffProxy

IpSecurityRestriction

應用程式上的IP安全性限制。

名稱 類型 Description
action

string

允許或拒絕此IP範圍的存取。

description

string

IP 限制規則描述。

headers

object

IP 限制規則標頭。 X-Forwarded-Host (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples)。 比對邏輯為 。。

  • 如果屬性為 Null 或空白(預設值),則允許所有主機(或缺少)。
  • 使用序數-ignore-case 來比較值(不包括埠號碼)。
  • 允許子域通配符,但不符合根域。 例如,*.contoso.com 符合子域 foo.contoso.com,但不符合根域 contoso.com 或多層級 foo.bar.contoso.com
  • 允許 Unicode 主機名,但會轉換成 Punycode 進行比對。

X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples)。 比對邏輯為 。。

  • 如果屬性為 Null 或空白(預設值),則允許任何轉送的鏈結(或缺少)。
  • 如果鏈結中有任何位址(不包括埠號碼)符合 屬性所定義的 CIDR。

X-Azure-FDID 和 X-FD-HealthProbe。 比對邏輯完全相符。

ipAddress

string

安全性限制的有效IP位址。 其格式可以是純 ipv4 位址(必要的 SubnetMask 屬性)或 CIDR 表示法,例如 ipv4/mask(前置位比對)。 針對 CIDR,不得指定 SubnetMask 屬性。

name

string

IP 限制規則名稱。

priority

integer

IP 限制規則的優先順序。

subnetMask

string

限制的有效IP位址範圍的子網掩碼。

subnetTrafficTag

integer

(內部)子網流量標記

tag

IpFilterTag

定義此IP篩選器將用於哪些專案。 這是為了支援 Proxy 的IP篩選。

vnetSubnetResourceId

string

虛擬網路資源標識碼

vnetTrafficTag

integer

(內部)Vnet 流量標籤

ManagedPipelineMode

受控管線模式。

Description
Classic
Integrated

NameValuePair

名稱值組。

名稱 類型 Description
name

string

配對名稱。

value

string

配對值。

PushSettings

應用程式的推送設定。

名稱 類型 Description
id

string

資源標識碼。

kind

string

資源種類。

name

string

資源名稱。

properties.dynamicTagsJson

string

取得或設定 JSON 字串,其中包含將從推送註冊端點中的使用者宣告評估的動態標籤清單。

properties.isPushEnabled

boolean

取得或設定旗標,指出是否啟用推送端點。

properties.tagWhitelistJson

string

取得或設定 JSON 字串,其中包含已列入允許清單以供推送註冊端點使用的標記清單。

properties.tagsRequiringAuth

string

取得或設定 JSON 字串,其中包含要求使用者驗證用於推送註冊端點的標籤清單。 標記可以包含英數位元和下列專案:'_'、'@'、'#'、'.'、':'、'-'。 驗證應該在 PushRequestHandler 上執行。

type

string

資源類型。

RampUpRule

用於加速測試的路由規則。 此規則允許將靜態流量 % 重新導向至位置,或根據效能逐漸變更路由 %。

名稱 類型 Description
actionHostName

string

如果決定要重新導向流量的位置主機名。 例如 myapp-stage.azurewebsites.net。

changeDecisionCallbackUrl

string

您可以在可指定 URL 的 TiPCallback 網站延伸模組中提供自訂決策演算法。

changeIntervalInMinutes

integer

指定以分鐘為單位重新評估 ReroutePercentage 的間隔。

changeStep

number

在自動增加案例中,這是從 ReroutePercentage 新增/移除的步驟,直到到達 \nMinReroutePercentageMaxReroutePercentage為止。 網站計量會在 ChangeIntervalInMinutes中指定的每 N 分鐘檢查一次。\n自定義決策演算法可在 TiPCallback 網站延伸模組中提供,您可以在 ChangeDecisionCallbackUrl中指定 URL。

maxReroutePercentage

number

指定 ReroutePercentage 將保留的上限。

minReroutePercentage

number

指定上方的下限,讓 ReroutePercentage 維持不變。

name

string

路由規則的名稱。 建議的名稱會指向將接收實驗中流量的位置。

reroutePercentage

number

將重新導向至 ActionHostName的流量百分比。

RequestsBasedTrigger

根據要求總數觸發。

名稱 類型 Description
count

integer

要求計數。

timeInterval

string

時間間隔。

ScmType

SCM 類型。

Description
BitbucketGit
BitbucketHg
CodePlexGit
CodePlexHg
Dropbox
ExternalGit
ExternalHg
GitHub
LocalGit
None
OneDrive
Tfs
VSO
VSTSRM

SiteConfigResource

Web 應用程式設定 ARM 資源。

名稱 類型 預設值 Description
id

string

資源標識碼。

kind

string

資源種類。

name

string

資源名稱。

properties.acrUseManagedIdentityCreds

boolean

使用受控識別 Creds 進行 ACR 提取的旗標

properties.acrUserManagedIdentityID

string

如果使用使用者受控識別,則使用者受控識別 ClientId

properties.alwaysOn

boolean

如果已啟用 Always On,true;否則,false

properties.apiDefinition

ApiDefinitionInfo

應用程式正式 API 定義的相關信息。

properties.apiManagementConfig

ApiManagementConfig

連結至應用程式的 Azure API 管理設定。

properties.appCommandLine

string

要啟動的應用程式命令行。

properties.appSettings

NameValuePair[]

應用程式設定。

properties.autoHealEnabled

boolean

如果已啟用自動癒合,true;否則,false

properties.autoHealRules

AutoHealRules

自動治癒規則。

properties.autoSwapSlotName

string

自動交換位置名稱。

properties.azureStorageAccounts

<string,  AzureStorageInfoValue>

Azure 記憶體帳戶的清單。

properties.connectionStrings

ConnStringInfo[]

連接字串。

properties.cors

CorsSettings

跨原始來源資源分享 (CORS) 設定。

properties.defaultDocuments

string[]

默認檔。

properties.detailedErrorLoggingEnabled

boolean

如果已啟用詳細的錯誤記錄,true;否則,false

properties.documentRoot

string

檔根目錄。

properties.elasticWebAppScaleLimit

integer

網站可相應放大至的工作者數目上限。 此設定僅適用於 ElasticScaleEnabled true 方案中的應用程式

properties.experiments

Experiments

這適用於多型類型。

properties.ftpsState

FtpsState

FTP / FTPS 服務的狀態

properties.functionAppScaleLimit

integer

網站可相應放大至的工作者數目上限。 此設定僅適用於取用和彈性進階方案

properties.functionsRuntimeScaleMonitoringEnabled

boolean

取得或設定值,指出是否啟用函式運行時間調整監視。 啟用時,ScaleController 不會直接監視事件來源,而是會呼叫運行時間以取得縮放狀態。

properties.handlerMappings

HandlerMapping[]

處理程序對應。

properties.healthCheckPath

string

健康情況檢查路徑

properties.http20Enabled

boolean

True

Http20Enabled:設定網站以允許用戶端透過 HTTP2.0 連線

properties.httpLoggingEnabled

boolean

如果已啟用 HTTP 記錄,true;否則,false

properties.ipSecurityRestrictions

IpSecurityRestriction[]

main 的IP安全性限制。

properties.ipSecurityRestrictionsDefaultAction

DefaultAction

如果沒有符合任何規則,則主要存取限制的默認動作。

properties.javaContainer

string

Java 容器。

properties.javaContainerVersion

string

Java 容器版本。

properties.javaVersion

string

Java 版本。

properties.keyVaultReferenceIdentity

string

要用於 Key Vault 參考驗證的身分識別。

properties.limits

SiteLimits

網站限制。

properties.linuxFxVersion

string

Linux 應用程式架構和版本

properties.loadBalancing

SiteLoadBalancing

網站負載平衡。

properties.localMySqlEnabled

boolean

False

true 啟用本機 MySQL;否則,false

properties.logsDirectorySizeLimit

integer

HTTP 記錄目錄大小限制。

properties.machineKey

SiteMachineKey

Site MachineKey。

properties.managedPipelineMode

ManagedPipelineMode

受控管線模式。

properties.managedServiceIdentityId

integer

受控服務識別標識碼

properties.metadata

NameValuePair[]

應用程式元數據。 無法擷取這個屬性,因為它可能包含秘密。

properties.minTlsCipherSuite

TlsCipherSuites

應用程式允許的最小強度 TLS 加密套件

properties.minTlsVersion

SupportedTlsVersions

MinTlsVersion:設定 SSL 要求所需的最低 TLS 版本

properties.minimumElasticInstanceCount

integer

月臺的最低實例計數數目 此設定僅適用於彈性方案

properties.netFrameworkVersion

string

v4.6

.NET Framework 版本。

properties.nodeVersion

string

Node.js的版本。

properties.numberOfWorkers

integer

背景工作角色數目。

properties.phpVersion

string

PHP 版本。

properties.powerShellVersion

string

PowerShell 版本。

properties.preWarmedInstanceCount

integer

預先Warmed 實例的數目。 此設定僅適用於取用和彈性方案

properties.publicNetworkAccess

string

允許或封鎖所有公用流量的屬性。

properties.publishingUsername

string

發佈用戶名稱。

properties.push

PushSettings

推送端點設定。

properties.pythonVersion

string

Python 版本。

properties.remoteDebuggingEnabled

boolean

如果已啟用遠程偵錯,true;否則,false

properties.remoteDebuggingVersion

string

遠端偵錯版本。

properties.requestTracingEnabled

boolean

如果已啟用要求追蹤,true;否則,false

properties.requestTracingExpirationTime

string

要求追蹤到期時間。

properties.scmIpSecurityRestrictions

IpSecurityRestriction[]

scm 的IP安全性限制。

properties.scmIpSecurityRestrictionsDefaultAction

DefaultAction

如果未比對任何規則,則為 scm 存取限制的預設動作。

properties.scmIpSecurityRestrictionsUseMain

boolean

scm 使用 main 的 IP 安全性限制。

properties.scmMinTlsVersion

SupportedTlsVersions

ScmMinTlsVersion:設定 SCM 網站 SSL 要求所需的最低 TLS 版本

properties.scmType

ScmType

SCM 類型。

properties.tracingOptions

string

追蹤選項。

properties.use32BitWorkerProcess

boolean

true 使用32位背景工作進程;否則,false

properties.virtualApplications

VirtualApplication[]

虛擬應用程式。

properties.vnetName

string

虛擬網路名稱。

properties.vnetPrivatePortsCount

integer

指派給此應用程式的私人埠數目。 這些會在運行時間動態指派。

properties.vnetRouteAllEnabled

boolean

虛擬網路路由全部啟用。 這會導致所有輸出流量套用虛擬網路安全組和用戶定義的路由。

properties.webSocketsEnabled

boolean

如果已啟用 WebSocket,true;否則,false

properties.websiteTimeZone

string

設定網站用來產生時間戳的時區。 與 Linux 和 Windows App Service 相容。 設定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

properties.windowsFxVersion

string

Xenon App Framework 和版本

properties.xManagedServiceIdentityId

integer

明確受控服務識別標識碼

type

string

資源類型。

SiteLimits

在應用程式上設定的計量限制。

名稱 類型 Description
maxDiskSizeInMb

integer

允許的磁碟大小使用量上限,以 MB 為單位。

maxMemoryInMb

integer

MB 允許的記憶體使用量上限。

maxPercentageCpu

number

允許的CPU使用量百分比上限。

SiteLoadBalancing

網站負載平衡。

Description
LeastRequests
LeastRequestsWithTieBreaker
LeastResponseTime
PerSiteRoundRobin
RequestHash
WeightedRoundRobin
WeightedTotalTraffic

SiteMachineKey

應用程式的 MachineKey。

名稱 類型 Description
decryption

string

用於解密的演算法。

decryptionKey

string

解金鑰。

validation

string

MachineKey 驗證。

validationKey

string

驗證金鑰。

SlowRequestsBasedTrigger

根據要求運行時間觸發。

名稱 類型 Description
count

integer

要求計數。

path

string

要求路徑。

timeInterval

string

時間間隔。

timeTaken

string

所花費的時間。

StatusCodesBasedTrigger

根據狀態代碼觸發。

名稱 類型 Description
count

integer

要求計數。

path

string

要求路徑

status

integer

HTTP 狀態代碼。

subStatus

integer

要求子狀態。

timeInterval

string

時間間隔。

win32Status

integer

Win32 錯誤碼。

StatusCodesRangeBasedTrigger

根據狀態代碼的範圍觸發。

名稱 類型 Description
count

integer

要求計數。

path

string

statusCodes

string

HTTP 狀態代碼。

timeInterval

string

時間間隔。

SupportedTlsVersions

MinTlsVersion:設定 SSL 要求所需的最低 TLS 版本

Description
1.0
1.1
1.2
1.3

TlsCipherSuites

應用程式允許的最小強度 TLS 加密套件

Description
TLS_AES_128_GCM_SHA256
TLS_AES_256_GCM_SHA384
TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
TLS_RSA_WITH_AES_128_CBC_SHA
TLS_RSA_WITH_AES_128_CBC_SHA256
TLS_RSA_WITH_AES_128_GCM_SHA256
TLS_RSA_WITH_AES_256_CBC_SHA
TLS_RSA_WITH_AES_256_CBC_SHA256
TLS_RSA_WITH_AES_256_GCM_SHA384

VirtualApplication

應用程式中的虛擬應用程式。

名稱 類型 Description
physicalPath

string

實體路徑。

preloadEnabled

boolean

如果已啟用預先載入,true;否則,false

virtualDirectories

VirtualDirectory[]

虛擬應用程式的虛擬目錄。

virtualPath

string

虛擬路徑。

VirtualDirectory

虛擬應用程式的目錄。

名稱 類型 Description
physicalPath

string

實體路徑。

virtualPath

string

虛擬應用程式的路徑。