Microsoft.Web sites/config 'web'

Bicep 資源定義

月臺/設定資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄

name 屬性的選項

月臺/設定資源會根據 name 屬性的值接受不同的屬性。 本文說明設定 name: 'web'時可用的屬性。

如需其他選項,請參閱:

資源格式

若要建立 Microsoft.Web/sites/config 資源,請將下列 Bicep 新增至您的範本。

resource symbolicname 'Microsoft.Web/sites/config@2022-09-01' = {
  name: 'web'
  kind: 'string'
  parent: resourceSymbolicName
  properties: {
    acrUseManagedIdentityCreds: bool
    acrUserManagedIdentityID: 'string'
    alwaysOn: bool
    apiDefinition: {
      url: 'string'
    }
    apiManagementConfig: {
      id: 'string'
    }
    appCommandLine: 'string'
    appSettings: [
      {
        name: 'string'
        value: 'string'
      }
    ]
    autoHealEnabled: bool
    autoHealRules: {
      actions: {
        actionType: 'string'
        customAction: {
          exe: 'string'
          parameters: 'string'
        }
        minProcessExecutionTime: 'string'
      }
      triggers: {
        privateBytesInKB: int
        requests: {
          count: int
          timeInterval: 'string'
        }
        slowRequests: {
          count: int
          path: 'string'
          timeInterval: 'string'
          timeTaken: 'string'
        }
        slowRequestsWithPath: [
          {
            count: int
            path: 'string'
            timeInterval: 'string'
            timeTaken: 'string'
          }
        ]
        statusCodes: [
          {
            count: int
            path: 'string'
            status: int
            subStatus: int
            timeInterval: 'string'
            win32Status: int
          }
        ]
        statusCodesRange: [
          {
            count: int
            path: 'string'
            statusCodes: 'string'
            timeInterval: 'string'
          }
        ]
      }
    }
    autoSwapSlotName: 'string'
    azureStorageAccounts: {}
    connectionStrings: [
      {
        connectionString: 'string'
        name: 'string'
        type: 'string'
      }
    ]
    cors: {
      allowedOrigins: [
        'string'
      ]
      supportCredentials: bool
    }
    defaultDocuments: [
      'string'
    ]
    detailedErrorLoggingEnabled: bool
    documentRoot: 'string'
    elasticWebAppScaleLimit: int
    experiments: {
      rampUpRules: [
        {
          actionHostName: 'string'
          changeDecisionCallbackUrl: 'string'
          changeIntervalInMinutes: int
          changeStep: int
          maxReroutePercentage: int
          minReroutePercentage: int
          name: 'string'
          reroutePercentage: int
        }
      ]
    }
    ftpsState: 'string'
    functionAppScaleLimit: int
    functionsRuntimeScaleMonitoringEnabled: bool
    handlerMappings: [
      {
        arguments: 'string'
        extension: 'string'
        scriptProcessor: 'string'
      }
    ]
    healthCheckPath: 'string'
    http20Enabled: bool
    httpLoggingEnabled: bool
    ipSecurityRestrictions: [
      {
        action: 'string'
        description: 'string'
        headers: {}
        ipAddress: 'string'
        name: 'string'
        priority: int
        subnetMask: 'string'
        subnetTrafficTag: int
        tag: 'string'
        vnetSubnetResourceId: 'string'
        vnetTrafficTag: int
      }
    ]
    ipSecurityRestrictionsDefaultAction: 'string'
    javaContainer: 'string'
    javaContainerVersion: 'string'
    javaVersion: 'string'
    keyVaultReferenceIdentity: 'string'
    limits: {
      maxDiskSizeInMb: int
      maxMemoryInMb: int
      maxPercentageCpu: int
    }
    linuxFxVersion: 'string'
    loadBalancing: 'string'
    localMySqlEnabled: bool
    logsDirectorySizeLimit: int
    managedPipelineMode: 'string'
    managedServiceIdentityId: int
    metadata: [
      {
        name: 'string'
        value: 'string'
      }
    ]
    minimumElasticInstanceCount: int
    minTlsVersion: 'string'
    netFrameworkVersion: 'string'
    nodeVersion: 'string'
    numberOfWorkers: int
    phpVersion: 'string'
    powerShellVersion: 'string'
    preWarmedInstanceCount: int
    publicNetworkAccess: 'string'
    publishingUsername: 'string'
    push: {
      kind: 'string'
      properties: {
        dynamicTagsJson: 'string'
        isPushEnabled: bool
        tagsRequiringAuth: 'string'
        tagWhitelistJson: 'string'
      }
    }
    pythonVersion: 'string'
    remoteDebuggingEnabled: bool
    remoteDebuggingVersion: 'string'
    requestTracingEnabled: bool
    requestTracingExpirationTime: 'string'
    scmIpSecurityRestrictions: [
      {
        action: 'string'
        description: 'string'
        headers: {}
        ipAddress: 'string'
        name: 'string'
        priority: int
        subnetMask: 'string'
        subnetTrafficTag: int
        tag: 'string'
        vnetSubnetResourceId: 'string'
        vnetTrafficTag: int
      }
    ]
    scmIpSecurityRestrictionsDefaultAction: 'string'
    scmIpSecurityRestrictionsUseMain: bool
    scmMinTlsVersion: 'string'
    scmType: 'string'
    tracingOptions: 'string'
    use32BitWorkerProcess: bool
    virtualApplications: [
      {
        physicalPath: 'string'
        preloadEnabled: bool
        virtualDirectories: [
          {
            physicalPath: 'string'
            virtualPath: 'string'
          }
        ]
        virtualPath: 'string'
      }
    ]
    vnetName: 'string'
    vnetPrivatePortsCount: int
    vnetRouteAllEnabled: bool
    websiteTimeZone: 'string'
    webSocketsEnabled: bool
    windowsFxVersion: 'string'
    xManagedServiceIdentityId: int
  }
}

屬性值

sites/config-web

名稱 描述
NAME 資源名稱

瞭解如何在 Bicep 中設定子資源的名稱和類型。
'web'
kind 資源種類。 字串
父系 (parent) 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源之外宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源
類型資源的符號名稱: sites
properties 核心資源屬性 SiteConfig

SiteConfig

名稱 描述
acrUseManagedIdentityCreds 使用受控識別 Creds 進行 ACR 提取的旗標 bool
acrUserManagedIdentityID 如果使用使用者受控識別,則使用者受控識別 ClientId 字串
alwaysOn true如果已開啟 Always On,則為 ,false否則為 。 bool
apiDefinition 應用程式正式 API 定義的相關信息。 ApiDefinitionInfo
apiManagementConfig 連結至應用程式的 Azure API 管理設定。 ApiManagementConfig
appCommandLine 要啟動的應用程式命令行。 字串
appSettings 應用程式設定。 NameValuePair[]
autoHealEnabled true 如果已啟用自動修復,則為 ;否則為 false bool
autoHealRules 自動修復規則。 AutoHealRules
autoSwapSlotName 自動交換位置名稱。 字串
azureStorageAccounts Azure 記憶體帳戶清單。 物件 (object)
connectionStrings 連接字串。 ConnStringInfo[]
cors 跨原始來源資源分享 (CORS) 設定。 CorsSettings
defaultDocuments 默認檔。 string[]
detailedErrorLoggingEnabled true 如果已啟用詳細的錯誤記錄,則為 ;否則為 false bool
documentRoot 檔根目錄。 字串
elasticWebAppScaleLimit 網站可相應放大的背景工作角色數目上限。
此設定僅適用於 ElasticScaleEnabled 所在方案中的應用程式 true
int
experiments 這適用於多型類型。 實驗
ftpsState FTP / FTPS 服務的狀態 'AllAllowed'
'Disabled'
'FtpsOnly'
functionAppScaleLimit 網站可相應放大的背景工作角色數目上限。
此設定僅適用於取用和彈性進階方案
int
functionsRuntimeScaleMonitoringEnabled 取得或設定值,指出是否啟用函式運行時間規模監視。 啟用時,
ScaleController 不會直接監視事件來源,而是改為呼叫
運行時間以取得調整狀態。
bool
handlerMappings 處理程序對應。 HandlerMapping[]
healthCheckPath 健康情況檢查路徑 字串
http20Enabled Http20Enabled:設定網站以允許用戶端透過 HTTP2.0 連線 bool
httpLoggingEnabled true 如果已啟用 HTTP 記錄,則為 ;否則為 false bool
ipSecurityRestrictions 主要的IP安全性限制。 IpSecurityRestriction[]
ipSecurityRestrictionsDefaultAction 如果沒有符合任何規則,則主要存取限制的默認動作。 'Allow'
'Deny'
javaContainer Java 容器。 字串
javaContainerVersion Java 容器版本。 字串
javaVersion Java 版本。 字串
keyVaultReferenceIdentity 用於 金鑰保存庫 參考驗證的身分識別。 字串
限制 網站限制。 SiteLimits
linuxFxVersion Linux App Framework 和版本 字串
負載平衡 網站負載平衡。 'LeastRequests'
'LeastResponseTime'
'PerSiteRoundRobin'
'RequestHash'
'WeightedRoundRobin'
'WeightedTotalTraffic'
localMySqlEnabled true 表示啟用本機 MySQL;否則為 false bool
logsDirectorySizeLimit HTTP 記錄目錄大小限制。 int
managedPipelineMode Managed 管線模式。 'Classic'
'Integrated'
managedServiceIdentityId 受控服務識別標識碼 int
中繼資料 應用程式元數據。 無法擷取這個屬性,因為它可能包含秘密。 NameValuePair[]
minimumElasticInstanceCount 月臺的最小實例計數數目
此設定僅適用於彈性方案
int
minTlsVersion MinTlsVersion:設定 SSL 要求所需的最低 TLS 版本 '1.0'
'1.1'
'1.2'
netFrameworkVersion .NET Framework 版本。 字串
nodeVersion Node.js 的版本。 字串
numberOfWorkers 背景工作數目。 int
phpVersion PHP 版本。 字串
powerShellVersion PowerShell 的版本。 字串
preWarmedInstanceCount preWarmed 實例的數目。
此設定僅適用於取用和彈性方案
int
publicNetworkAccess 允許或封鎖所有公用流量的屬性。 字串
publishingUsername 發佈用戶名稱。 字串
push 推送端點設定。 PushSettings
pythonVersion Python 的版本。 字串
remoteDebuggingEnabled true 如果已啟用遠端偵錯,則為 ;否則為 false bool
remoteDebuggingVersion 遠端偵錯版本。 字串
requestTracingEnabled true 如果已啟用要求追蹤,則為 ;否則為 false bool
requestTracingExpirationTime 要求追蹤到期時間。 字串
scmIpSecurityRestrictions scm 的IP安全性限制。 IpSecurityRestriction[]
scmIpSecurityRestrictionsDefaultAction 如果未比對任何規則,則為 scm 存取限制的預設動作。 'Allow'
'Deny'
scmIpSecurityRestrictionsUseMain scm 使用 main 的 IP 安全性限制。 bool
scmMinTlsVersion ScmMinTlsVersion:設定 SCM 網站 SSL 要求所需的最低 TLS 版本 '1.0'
'1.1'
'1.2'
scmType SCM 類型。 'BitbucketGit'
'BitbucketHg'
'CodePlexGit'
'CodePlexHg'
'Dropbox'
'ExternalGit'
'ExternalHg'
'GitHub'
'LocalGit'
'None'
'OneDrive'
'Tfs'
'VSO'
'VSTSRM'
tracingOptions 追蹤選項。 字串
use32BitWorkerProcess true 表示使用32位背景工作進程;否則為 false bool
virtualApplications 虛擬應用程式。 VirtualApplication[]
vnetName 虛擬網路 名稱。 字串
vnetPrivatePortsCount 指派給此應用程式的私人埠數目。 這些會在運行時間動態指派。 int
vnetRouteAllEnabled 虛擬網路 已啟用 [全部路由]。 這會導致套用 虛擬網路 安全組和用戶定義路由的所有輸出流量。 bool
websiteTimeZone 設定網站用來產生時間戳的時區。 與 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 字串
webSocketsEnabled true 如果已啟用 WebSocket,則為 ;否則為 false bool
windowsFxVersion Xenon App Framework 和版本 字串
xManagedServiceIdentityId 明確受控服務識別標識碼 int

ApiDefinitionInfo

名稱 描述
url API 定義的 URL。 字串

ApiManagementConfig

名稱 描述
id APIM-Api 識別碼。 字串

NameValuePair

名稱 描述
NAME 配對名稱。 字串
value 配對值。 字串

AutoHealRules

名稱 描述
動作 觸發規則時要執行的動作。 AutoHealActions
觸發程序 描述何時執行自動修復動作的條件。 AutoHealTriggers

AutoHealActions

名稱 描述
actionType 要採取的預先定義動作。 'CustomAction'
'LogEvent'
'回收'
customAction 要採取的自定義動作。 AutoHealCustomAction
minProcessExecutionTime 進程必須執行的時間下限
採取動作之前
字串

AutoHealCustomAction

名稱 描述
exe 要執行的可執行檔。 字串
參數 可執行文件的參數。 字串

AutoHealTriggers

名稱 描述
privateBytesInKB 以私用位元組為基礎的規則。 int
requests 以要求總數為基礎的規則。 RequestsBasedTrigger
slowRequests 根據要求運行時間的規則。 SlowRequestsBasedTrigger
slowRequestsWithPath 以具有路徑的多個慢速要求規則為基礎的規則 SlowRequestsBasedTrigger[]
statusCodes 以狀態代碼為基礎的規則。 StatusCodesBasedTrigger[]
statusCodesRange 以狀態代碼範圍為基礎的規則。 StatusCodesRangeBasedTrigger[]

RequestsBasedTrigger

名稱 描述
count 要求計數。 int
timeInterval 時間間隔。 字串

SlowRequestsBasedTrigger

名稱 描述
count 要求計數。 int
path 要求路徑。 字串
timeInterval 時間間隔。 字串
timeTaken 所花費的時間。 字串

StatusCodesBasedTrigger

名稱 描述
count 要求計數。 int
path 要求路徑 字串
status HTTP 狀態碼。 int
子狀態 要求子狀態。 int
timeInterval 時間間隔。 字串
win32Status Win32 錯誤碼。 int

StatusCodesRangeBasedTrigger

名稱 描述
count 要求計數。 int
path 字串
statusCodes HTTP 狀態碼。 字串
timeInterval 時間間隔。 字串

ConnStringInfo

名稱 描述
connectionString 連接字串值。 字串
NAME 連接字串 的名稱。 字串
type 資料庫的類型。 'ApiHub'
'Custom'
'DocDb'
'EventHub'
'MySql'
'NotificationHub'
'PostgreSQL'
'RedisCache'
'SQLAzure'
'SQLServer'
'ServiceBus'

CorsSettings

名稱 描述
allowedOrigins 取得或設定應該允許建立跨原始來源的來源清單
呼叫 (例如: http://example.com:12345) 。 使用 "*" 可全部允許。
string[]
supportCredentials 取得或設定是否允許具有認證的CORS要求。 請參閱
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials

bool

實驗

名稱 描述
rampUpRules 向上提升規則的清單。 RampUpRule[]

RampUpRule

名稱 描述
actionHostName 如果決定要重新導向流量的位置主機名。 例如 myapp-stage.azurewebsites.net。 字串
changeDecisionCallbackUrl 您可以在可指定 URL 的 TiPCallback 網站延伸模組中提供自訂決策演算法。 如需 Scaffold 和合約,請參閱 TiPCallback 網站延伸模組。
https://www.siteextensions.net/packages/TiPCallback/
字串
changeIntervalInMinutes 指定重新評估 ReroutePercentage 的分鐘間隔。 int
changeStep 在自動增加案例中,這是新增/移除 ReroutePercentage 到 \nMinReroutePercentage
MaxReroutePercentage. 網站計量會每隔 N 分鐘檢查一次 .\n自定義決策演算法中指定的 ChangeIntervalInMinutes時間
可以在 TiPCallback 網站延伸模組中提供,您可以在 中 ChangeDecisionCallbackUrl指定 URL。
int
maxReroutePercentage 指定 ReroutePercentage 將維持在下方的上限。 int
minReroutePercentage 指定 ReroutePercentage 將保留的下限。 int
NAME 路由規則的名稱。 建議的名稱是指向將接收實驗中流量的位置。 字串
reroutePercentage 將重新導向至 ActionHostName的流量百分比。 int

HandlerMapping

名稱 描述
引數 要傳遞至腳本處理器的命令行自變數。 字串
擴充功能 具有此擴充功能的要求將會使用指定的 FastCGI 應用程式來處理。 字串
scriptProcessor FastCGI 應用程式的絕對路徑。 字串

IpSecurityRestriction

名稱 描述
動作 允許或拒絕此IP範圍的存取。 字串
description IP 限制規則描述。 字串
headers 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。
比對邏輯完全相符。
物件 (object)
ipAddress 安全性限制有效的IP位址。
其格式可以是純 ipv4 位址, (必要的 SubnetMask 屬性) 或
CIDR 表示法,例如 ipv4/mask (前置位比對) 。 針對 CIDR,
不可指定 SubnetMask 屬性。
字串
NAME IP 限制規則名稱。 字串
priority IP 限制規則的優先順序。 int
subnetMask 限制有效之IP位址範圍的子網掩碼。 字串
subnetTrafficTag (內部) 子網流量捲標 int
標籤 定義此IP篩選器將用於哪些專案。 這是為了支援 Proxy 上的IP篩選。 'Default'
'ServiceTag'
'XffProxy'
vnetSubnetResourceId 虛擬網路資源標識碼 字串
vnetTrafficTag (內部) Vnet 流量標籤 int

SiteLimits

名稱 描述
maxDiskSizeInMb 以 MB 為單位允許的磁碟大小使用量上限。 int
maxMemoryInMb MB 允許的最大記憶體使用量。 int
maxPercentageCpu 允許的CPU使用量百分比上限。 int

PushSettings

名稱 描述
kind 資源種類。 字串
properties PushSettings 資源特定屬性 PushSettingsProperties

PushSettingsProperties

名稱 描述
dynamicTagsJson 取得或設定 JSON 字串,其中包含將從推送註冊端點中的使用者宣告評估的動態標記清單。 字串
isPushEnabled 取得或設定旗標,指出是否啟用推送端點。 bool (必要)
tagsRequiringAuth 取得或設定 JSON 字串,其中包含需要在推送註冊端點中使用使用者驗證的標籤清單。
標記可以包含英數位元和下列專案:
'_', '@', '#', '.', ':', '-'.
驗證應該在 PushRequestHandler 上執行。
字串
tagWhitelistJson 取得或設定 JSON 字串,其中包含推送註冊端點允許使用的標籤清單。 字串

VirtualApplication

名稱 描述
physicalPath 實體路徑。 字串
preloadEnabled true 如果已啟用預先載入,則為 ;否則為 false bool
virtualDirectories 虛擬應用程式的虛擬目錄。 VirtualDirectory[]
virtualPath 虛擬路徑。 字串

VirtualDirectory

名稱 描述
physicalPath 實體路徑。 字串
virtualPath 虛擬應用程式的路徑。 字串

快速入門範本

下列快速入門範本會部署此資源類型。

範本 描述
在 App Services 上使用 PostgreSQL 資料庫的 Airflow Web 應用程式

部署至 Azure
在 App Services 上使用 PostgreSQL 資料庫部署 Airflow Web 應用程式的範本
Azure 中的 EPiserverCMS

部署至 Azure
此範本可讓您在 Azure 中建立 EpiServerCMS 部署所需的資源
使用 Jenkins 和 Azure Web Apps 的 Java CI/CD

部署至 Azure
這是使用 Jenkins 和 Azure Web Apps 的 Java CI/CD 範例。
Orchard CMS 影片入口網站 Web 應用程式

部署至 Azure
此範本可讓您輕鬆地在 Azure App 服務 Web Apps 上部署一個可啟用及設定 Azure 媒體服務模組的地道 CMS。
適用於 Azure 事件中樞的 PubNub 即時閘道

部署至 Azure
適用於 Azure 的 PubNub 即時閘道提供 PubNub 資料流網路與 Azure 事件中樞 之間的實時數據流網橋。 -- 將其視為 PubNub 與 Azure 之間的雙向網橋!
可調整的 Umbraco CMS Web 應用程式

部署至 Azure
此範本提供在 Azure App 服務 Web Apps 上部署 umbraco CMS Web 應用程式的簡單方式。
簡單 Umbraco CMS Web 應用程式

部署至 Azure
此範本提供在 Azure App 服務 Web Apps 上部署 umbraco CMS Web 應用程式的簡單方式。
在應用程式中搭配 MySQL App Service 上的 WordPress

部署至 Azure
此範本會在應用程式中使用 MySQL 在 Windows App Service 上部署 WordPress Web 應用程式
Enterprise Governance-AppService、SQL DB、AD、OMS、Runbook

部署至 Azure
企業或大型的雲端採用需要負責任且有效率的治理模型,才能從其雲端部署衍生價值。 CloudWise (解決方案的程式代碼名稱) ,是 Azure 合作夥伴快速入門提供的複合解決方案,是客戶、系統整合者和合作夥伴的採用啟用者,可提供可自助、自動化的治理和作業解決方案,著重於優化成本、改善您的應用程式 () 可靠性、降低商務風險。 解決方案強調可見度和控制的核心治理要素。
使用 Azure SQL 私人端點的 WebApp

部署至 Azure
此範本示範如何建立 Web 應用程式,以取用指向 Azure SQL Server 的私人端點
Moesif API 分析和獲利

部署至 Azure
此範本會將來自 Azure API 管理 的 API 呼叫記錄至 Moesif API 分析和獲利平臺
從 Azure Logic Apps 呼叫自定義 API

部署至 Azure
雖然 Logic Apps 為各種服務提供數百個連接器,但您可能想要呼叫執行您自己的程式代碼的 API。 裝載您自己的 Web API 的最簡單且最可調整方式之一,就是使用 Azure App 服務。 此範本會為您的自訂 API 部署 Web 應用程式,並使用 Azure Active Directory 驗證來保護該 API。
具有IP限制的Web應用程式 應用程式閘道

部署至 Azure
此範本會在 Azure Web 應用程式前面建立應用程式閘道,並在 Web 應用程式上啟用 IP 限制。
使用 Azure SQL 後端 App Service 環境

部署至 Azure
此範本會建立具有 Azure SQL 後端以及私人端點以及通常用於私人/隔離環境中相關聯資源的 App Service 環境。
布建在 App Service 方案上執行的函式應用程式

部署至 Azure
此範本會在專用主控方案上布建函式應用程式,這表示會像任何 App Service 網站一樣執行並計費。
具有事件中樞和受控識別的 Azure 函式應用程式

部署至 Azure
他的範本會在Linux取用方案上布建 Azure 函式應用程式,以及事件中樞、Azure 記憶體和 Application Insights。 函式應用程式可以使用受控識別連線到事件中樞和記憶體帳戶
使用 vnet 整合部署 Azure Function Premium 方案

部署至 Azure
此範本可讓您部署已啟用區域虛擬網路整合的 Azure Function Premium 方案至新建立的虛擬網路。
使用 SQL Database 布建行動應用程式

部署至 Azure
此範本會布建行動應用程式、SQL Database和通知中樞。 它會在資料庫和通知中樞的行動應用程式中設定 連接字串。
具有私人端點的 Web 應用程式

部署至 Azure
此範本可讓您建立 Web 應用程式,並透過私人端點公開它
使用內部 API 管理 和 Web 應用程式進行 應用程式閘道

部署至 Azure
應用程式閘道 將因特網流量路由傳送至虛擬網路 (內部模式) API 管理 實例,該實例服務裝載於 Azure Web 應用程式中的 Web API。
使用 Blob 記憶體建立 Azure Web 應用程式 連接字串

部署至 Azure
使用 Blob 記憶體 連接字串 建立 Azure Web 應用程式,此範本最初由 Microsoft Jeff Cupes 撰寫
具有診斷記錄至 Blob 容器的 Web 應用程式

部署至 Azure
將具有診斷記錄的 Web 應用程式部署至已啟用記憶體帳戶 Blob 容器。
在已啟用 Java 13 和 Tomcat 9 的 Azure 上建立 Web 應用程式

部署至 Azure
此範本會在已啟用 Java 13 和 Tomcat 9 的 Azure 上建立 Web 應用程式,可讓您在 Azure 中執行 Java 應用程式。 範本是由 Microsoft Donovan Brown 所撰寫。
Web 應用程式,以及傳送至 Log Analytics 的 Application Insights

部署至 Azure
此範本將協助支援 microsoft.insights/components 的新 API 版本。 從 2020-02-02-preview WorkspaceID 開始,建立應用程式 Inisghts 時,將需要此範本。此範本會部署 App Service 方案、App Service、Application Insights、Log Analytics 工作區,並將其全部連結在一起。
具有受控識別、SQL Server和 ΑЛ 的 Web 應用程式

部署至 Azure
針對應用程式 + 資料 + 受控識別 + 監視部署 Azure 基礎結構的簡單範例
使用範本建立 Web 應用程式 + Redis 快取 + SQL DB

部署至 Azure
此範本會建立具有 Redis 快取和 SQL Database 的 Azure Web 應用程式。
使用 SQL Database 布建 Web 應用程式

部署至 Azure
此範本會布建 Web 應用程式、SQL Database、自動調整設定、警示規則和 App Insights。 它會在資料庫的 Web 應用程式中設定 連接字串。
使用範本建立 Web 應用程式和 Redis 快取

部署至 Azure
此範本會建立具有 Redis 快取的 Azure Web 應用程式。
具有自定義部署位置的 Web 應用程式

部署至 Azure
此範本提供在 Azure Web Apps 上使用自訂部署位置部署 Web 應用程式的簡單方式。
在 Linux 上使用 PostgreSQL 的 Airflow Docker Web 應用程式

部署至 Azure
此範本提供在Linux Web App上使用適用於PostgreSQL的 Azure 資料庫部署 puckel/docker-airflow 映像 (最新標籤) 的簡單方式
使用 Azure SQL 在 Linux 上使用 Sonarqube Docker Web 應用程式

部署至 Azure
此範本會使用官方 Sonarqube 映像,並將 Sonarqube 部署在 Azure App 服務 Web 應用程式 Linux 容器中,並由 Azure SQL 伺服器支援。
使用 MySQL 在 Linux 上使用 Sonarqube Docker Web 應用程式

部署至 Azure
此範本提供在適用於 MySQL 的 Azure 資料庫上部署 Sonarqube docker 映射 (alpine 卷標) 的簡單方式
使用 PostgreSQL 在 Linux 上使用 Sonarqube Docker Web 應用程式

部署至 Azure
此範本提供在Linux Web應用程式上部署 Sonarqube docker 映像 (alpine 標籤) 的簡單方式,以及適用於 PostgreSQL 的 Azure 資料庫 (Preview)
適用於 MySQL 的 Azure 資料庫 Web 應用程式

部署至 Azure
此範本可讓您輕鬆地在適用於 MySQL 的 Azure 資料庫 Azure App 服務 Web Apps 上部署 Web 應用程式。
Linux 上的 Web 應用程式與 PostgreSQL

部署至 Azure
此範本可讓您輕鬆地在 Linux 上使用適用於 PostgreSQL 的 Azure 資料庫部署 Web 應用程式。
具有 VNet 插入和私人端點的 Web 應用程式

部署至 Azure
此範本可讓您使用兩個 Web 應用程式、前端和後端建立安全的端對端解決方案,前端會透過 VNet 插入和私人端點安全地取用後端

ARM 範本資源定義

月臺/設定資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄

name 屬性的選項

月臺/設定資源會根據 name 屬性的值接受不同的屬性。 本文說明設定 name: 'web'時可用的屬性。

如需其他選項,請參閱:

資源格式

若要建立 Microsoft.Web/sites/config 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.Web/sites/config",
  "apiVersion": "2022-09-01",
  "name": "web",
  "kind": "string",
  "properties": {
    "acrUseManagedIdentityCreds": "bool",
    "acrUserManagedIdentityID": "string",
    "alwaysOn": "bool",
    "apiDefinition": {
      "url": "string"
    },
    "apiManagementConfig": {
      "id": "string"
    },
    "appCommandLine": "string",
    "appSettings": [
      {
        "name": "string",
        "value": "string"
      }
    ],
    "autoHealEnabled": "bool",
    "autoHealRules": {
      "actions": {
        "actionType": "string",
        "customAction": {
          "exe": "string",
          "parameters": "string"
        },
        "minProcessExecutionTime": "string"
      },
      "triggers": {
        "privateBytesInKB": "int",
        "requests": {
          "count": "int",
          "timeInterval": "string"
        },
        "slowRequests": {
          "count": "int",
          "path": "string",
          "timeInterval": "string",
          "timeTaken": "string"
        },
        "slowRequestsWithPath": [
          {
            "count": "int",
            "path": "string",
            "timeInterval": "string",
            "timeTaken": "string"
          }
        ],
        "statusCodes": [
          {
            "count": "int",
            "path": "string",
            "status": "int",
            "subStatus": "int",
            "timeInterval": "string",
            "win32Status": "int"
          }
        ],
        "statusCodesRange": [
          {
            "count": "int",
            "path": "string",
            "statusCodes": "string",
            "timeInterval": "string"
          }
        ]
      }
    },
    "autoSwapSlotName": "string",
    "azureStorageAccounts": {},
    "connectionStrings": [
      {
        "connectionString": "string",
        "name": "string",
        "type": "string"
      }
    ],
    "cors": {
      "allowedOrigins": [ "string" ],
      "supportCredentials": "bool"
    },
    "defaultDocuments": [ "string" ],
    "detailedErrorLoggingEnabled": "bool",
    "documentRoot": "string",
    "elasticWebAppScaleLimit": "int",
    "experiments": {
      "rampUpRules": [
        {
          "actionHostName": "string",
          "changeDecisionCallbackUrl": "string",
          "changeIntervalInMinutes": "int",
          "changeStep": "int",
          "maxReroutePercentage": "int",
          "minReroutePercentage": "int",
          "name": "string",
          "reroutePercentage": "int"
        }
      ]
    },
    "ftpsState": "string",
    "functionAppScaleLimit": "int",
    "functionsRuntimeScaleMonitoringEnabled": "bool",
    "handlerMappings": [
      {
        "arguments": "string",
        "extension": "string",
        "scriptProcessor": "string"
      }
    ],
    "healthCheckPath": "string",
    "http20Enabled": "bool",
    "httpLoggingEnabled": "bool",
    "ipSecurityRestrictions": [
      {
        "action": "string",
        "description": "string",
        "headers": {},
        "ipAddress": "string",
        "name": "string",
        "priority": "int",
        "subnetMask": "string",
        "subnetTrafficTag": "int",
        "tag": "string",
        "vnetSubnetResourceId": "string",
        "vnetTrafficTag": "int"
      }
    ],
    "ipSecurityRestrictionsDefaultAction": "string",
    "javaContainer": "string",
    "javaContainerVersion": "string",
    "javaVersion": "string",
    "keyVaultReferenceIdentity": "string",
    "limits": {
      "maxDiskSizeInMb": "int",
      "maxMemoryInMb": "int",
      "maxPercentageCpu": "int"
    },
    "linuxFxVersion": "string",
    "loadBalancing": "string",
    "localMySqlEnabled": "bool",
    "logsDirectorySizeLimit": "int",
    "managedPipelineMode": "string",
    "managedServiceIdentityId": "int",
    "metadata": [
      {
        "name": "string",
        "value": "string"
      }
    ],
    "minimumElasticInstanceCount": "int",
    "minTlsVersion": "string",
    "netFrameworkVersion": "string",
    "nodeVersion": "string",
    "numberOfWorkers": "int",
    "phpVersion": "string",
    "powerShellVersion": "string",
    "preWarmedInstanceCount": "int",
    "publicNetworkAccess": "string",
    "publishingUsername": "string",
    "push": {
      "kind": "string",
      "properties": {
        "dynamicTagsJson": "string",
        "isPushEnabled": "bool",
        "tagsRequiringAuth": "string",
        "tagWhitelistJson": "string"
      }
    },
    "pythonVersion": "string",
    "remoteDebuggingEnabled": "bool",
    "remoteDebuggingVersion": "string",
    "requestTracingEnabled": "bool",
    "requestTracingExpirationTime": "string",
    "scmIpSecurityRestrictions": [
      {
        "action": "string",
        "description": "string",
        "headers": {},
        "ipAddress": "string",
        "name": "string",
        "priority": "int",
        "subnetMask": "string",
        "subnetTrafficTag": "int",
        "tag": "string",
        "vnetSubnetResourceId": "string",
        "vnetTrafficTag": "int"
      }
    ],
    "scmIpSecurityRestrictionsDefaultAction": "string",
    "scmIpSecurityRestrictionsUseMain": "bool",
    "scmMinTlsVersion": "string",
    "scmType": "string",
    "tracingOptions": "string",
    "use32BitWorkerProcess": "bool",
    "virtualApplications": [
      {
        "physicalPath": "string",
        "preloadEnabled": "bool",
        "virtualDirectories": [
          {
            "physicalPath": "string",
            "virtualPath": "string"
          }
        ],
        "virtualPath": "string"
      }
    ],
    "vnetName": "string",
    "vnetPrivatePortsCount": "int",
    "vnetRouteAllEnabled": "bool",
    "websiteTimeZone": "string",
    "webSocketsEnabled": "bool",
    "windowsFxVersion": "string",
    "xManagedServiceIdentityId": "int"
  }
}

屬性值

sites/config-web

名稱 描述
類型 資源類型 'Microsoft.Web/sites/config'
apiVersion 資源 API 版本 '2022-09-01'
NAME 資源名稱

瞭解如何在 JSON ARM 範本中設定子資源的名稱和類型。
'web'
kind 資源種類。 字串
properties 核心資源屬性 SiteConfig

SiteConfig

名稱 描述
acrUseManagedIdentityCreds 針對 ACR 提取使用受控識別 Creds 的旗標 bool
acrUserManagedIdentityID 如果使用使用者受控識別,則使用者受控識別 ClientId 字串
alwaysOn true如果已開啟 Always On 則為 ,否則為 false bool
apiDefinition 應用程式正式 API 定義的相關信息。 ApiDefinitionInfo
apiManagementConfig 連結至應用程式的 Azure API 管理設定。 ApiManagementConfig
appCommandLine 要啟動的應用程式命令行。 字串
appSettings 應用程式設定。 NameValuePair[]
autoHealEnabled true 如果已啟用自動修復,則為 ;否則為 false bool
autoHealRules 自動修復規則。 AutoHealRules
autoSwapSlotName 自動交換位置名稱。 字串
azureStorageAccounts Azure 記憶體帳戶的清單。 物件 (object)
connectionStrings 連接字串。 ConnStringInfo[]
cors 跨原始來源資源分享 (CORS) 設定。 CorsSettings
defaultDocuments 默認檔。 string[]
detailedErrorLoggingEnabled true 如果已啟用詳細的錯誤記錄,則為 ;否則為 false bool
documentRoot 檔根目錄。 字串
elasticWebAppScaleLimit 網站可相應放大的背景工作角色數目上限。
此設定僅適用於 ElasticScaleEnabled 所在方案中的應用程式 true
int
experiments 這適用於多型類型。 實驗
ftpsState FTP / FTPS 服務的狀態 'AllAllowed'
'Disabled'
'FtpsOnly'
functionAppScaleLimit 網站可相應放大的背景工作角色數目上限。
此設定僅適用於取用和彈性進階方案
int
functionsRuntimeScaleMonitoringEnabled 取得或設定值,指出是否啟用函式運行時間規模監視。 啟用時,
ScaleController 不會直接監視事件來源,而是會改為呼叫
運行時間以取得調整狀態。
bool
handlerMappings 處理程序對應。 HandlerMapping[]
healthCheckPath 健康情況檢查路徑 字串
http20Enabled Http20Enabled:設定網站以允許用戶端透過 HTTP2.0 連線 bool
httpLoggingEnabled true 如果已啟用 HTTP 記錄,則為 ;否則為 false bool
ipSecurityRestrictions main 的IP安全性限制。 IpSecurityRestriction[]
ipSecurityRestrictionsDefaultAction 如果未比對任何規則,則主要存取限制的默認動作。 'Allow'
'Deny'
javaContainer Java 容器。 字串
javaContainerVersion Java 容器版本。 字串
javaVersion Java 版本。 字串
keyVaultReferenceIdentity 要用於 金鑰保存庫 參考驗證的身分識別。 字串
限制 網站限制。 SiteLimits
linuxFxVersion Linux App Framework 和版本 字串
負載平衡 網站負載平衡。 'LeastRequests'
'LeastResponseTime'
'PerSiteRoundRobin'
'RequestHash'
'WeightedRoundRobin'
'WeightedTotalTraffic'
localMySqlEnabled true 表示啟用本機 MySQL;否則為 false bool
logsDirectorySizeLimit HTTP 記錄目錄大小限制。 int
managedPipelineMode Managed 管線模式。 'Classic'
'Integrated'
managedServiceIdentityId 受控服務識別標識碼 int
中繼資料 應用程式元數據。 無法擷取這個屬性,因為它可能包含秘密。 NameValuePair[]
minimumElasticInstanceCount 月臺的最小實例計數數目
此設定僅適用於彈性方案
int
minTlsVersion MinTlsVersion:設定 SSL 要求所需的最低 TLS 版本 '1.0'
'1.1'
'1.2'
netFrameworkVersion .NET Framework 版本。 字串
nodeVersion Node.js 的版本。 字串
numberOfWorkers 背景工作數目。 int
phpVersion PHP 版本。 字串
powerShellVersion PowerShell 的版本。 字串
preWarmedInstanceCount 預先警告實例的數目。
此設定僅適用於取用和彈性方案
int
publicNetworkAccess 允許或封鎖所有公用流量的屬性。 字串
publishingUsername 發佈用戶名稱。 字串
push 推送端點設定。 PushSettings
pythonVersion Python 的版本。 字串
remoteDebuggingEnabled true 如果已啟用遠端偵錯,則為 ;否則為 false bool
remoteDebuggingVersion 遠端偵錯版本。 字串
requestTracingEnabled true 如果已啟用要求追蹤,則為 ;否則為 false bool
requestTracingExpirationTime 要求追蹤到期時間。 字串
scmIpSecurityRestrictions scm 的IP安全性限制。 IpSecurityRestriction[]
scmIpSecurityRestrictionsDefaultAction 如果未比對任何規則,則為 scm 存取限制的預設動作。 'Allow'
'Deny'
scmIpSecurityRestrictionsUseMain scm 使用 main 的 IP 安全性限制。 bool
scmMinTlsVersion ScmMinTlsVersion:設定 SCM 網站 SSL 要求所需的最低 TLS 版本 '1.0'
'1.1'
'1.2'
scmType SCM 類型。 'BitbucketGit'
'BitbucketHg'
'CodePlexGit'
'CodePlexHg'
'Dropbox'
'ExternalGit'
'ExternalHg'
'GitHub'
'LocalGit'
'None'
'OneDrive'
'Tfs'
'VSO'
'VSTSRM'
tracingOptions 追蹤選項。 字串
use32BitWorkerProcess true 表示使用32位背景工作進程;否則為 false bool
virtualApplications 虛擬應用程式。 VirtualApplication[]
vnetName 虛擬網路 名稱。 字串
vnetPrivatePortsCount 指派給此應用程式的私人埠數目。 這些會在運行時間動態指派。 int
vnetRouteAllEnabled 虛擬網路 已啟用 [全部路由]。 這會導致套用 虛擬網路 安全組和用戶定義路由的所有輸出流量。 bool
websiteTimeZone 設定網站用來產生時間戳的時區。 與 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 字串
webSocketsEnabled true 如果已啟用 WebSocket,則為 ;否則為 false bool
windowsFxVersion Xenon App Framework 和版本 字串
xManagedServiceIdentityId 明確受控服務識別標識碼 int

ApiDefinitionInfo

名稱 描述
url API 定義的 URL。 字串

ApiManagementConfig

名稱 描述
id APIM-Api 識別碼。 字串

NameValuePair

名稱 描述
NAME 配對名稱。 字串
value 配對值。 字串

AutoHealRules

名稱 描述
動作 觸發規則時要執行的動作。 AutoHealActions
觸發程序 描述何時執行自動修復動作的條件。 AutoHealTriggers

AutoHealActions

名稱 描述
actionType 要採取的預先定義動作。 'CustomAction'
'LogEvent'
'回收'
customAction 要採取的自定義動作。 AutoHealCustomAction
minProcessExecutionTime 進程必須執行的時間下限
採取動作之前
字串

AutoHealCustomAction

名稱 描述
exe 要執行的可執行檔。 字串
參數 可執行文件的參數。 字串

AutoHealTriggers

名稱 描述
privateBytesInKB 以私用位元組為基礎的規則。 int
requests 根據要求總數的規則。 RequestsBasedTrigger
slowRequests 根據要求運行時間的規則。 SlowRequestsBasedTrigger
slowRequestsWithPath 以具有路徑的多個慢速要求規則為基礎的規則 SlowRequestsBasedTrigger[]
statusCodes 根據狀態代碼的規則。 StatusCodesBasedTrigger[]
statusCodesRange 根據狀態代碼範圍的規則。 StatusCodesRangeBasedTrigger[]

RequestsBasedTrigger

名稱 描述
count 要求計數。 int
timeInterval 時間間隔。 字串

SlowRequestsBasedTrigger

名稱 描述
count 要求計數。 int
path 要求路徑。 字串
timeInterval 時間間隔。 字串
timeTaken 所花費的時間。 字串

StatusCodesBasedTrigger

名稱 描述
count 要求計數。 int
path 要求路徑 字串
status HTTP 狀態碼。 int
子狀態 要求子狀態。 int
timeInterval 時間間隔。 字串
win32Status Win32 錯誤碼。 int

StatusCodesRangeBasedTrigger

名稱 描述
count 要求計數。 int
path 字串
statusCodes HTTP 狀態碼。 字串
timeInterval 時間間隔。 字串

ConnStringInfo

名稱 描述
connectionString 連接字串值。 字串
NAME 連接字串 的名稱。 字串
type 資料庫的類型。 'ApiHub'
'Custom'
'DocDb'
'EventHub'
'MySql'
'NotificationHub'
'PostgreSQL'
'RedisCache'
'SQLAzure'
'SQLServer'
'ServiceBus'

CorsSettings

名稱 描述
allowedOrigins 取得或設定應允許進行跨原始來源的來源清單
呼叫 (例如: http://example.com:12345) 。 使用 "*" 可全部允許。
string[]
supportCredentials 取得或設定是否允許具有認證的CORS要求。 請參閱
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials

bool

實驗

名稱 描述
rampUpRules 向上坡形規則的清單。 RampUpRule[]

RampUpRule

名稱 描述
actionHostName 如果決定要重新導向流量的位置主機名。 例如 myapp-stage.azurewebsites.net。 字串
changeDecisionCallbackUrl 您可以在可指定 URL 的 TiPCallback 網站延伸模組中提供自訂決策演算法。 如需 Scaffold 和合約,請參閱 TiPCallback 網站延伸模組。
https://www.siteextensions.net/packages/TiPCallback/
字串
changeIntervalInMinutes 指定重新評估 ReroutePercentage 的分鐘間隔。 int
changeStep 在自動增加案例中,這是新增/移除 ReroutePercentage 到 \nMinReroutePercentage
MaxReroutePercentage. 網站計量會每隔 N 分鐘檢查一次 .\n自定義決策演算法中指定的 ChangeIntervalInMinutes時間
可以在 TiPCallback 網站延伸模組中提供,您可以在 中 ChangeDecisionCallbackUrl指定 URL。
int
maxReroutePercentage 指定 ReroutePercentage 將維持在下方的上限。 int
minReroutePercentage 指定 ReroutePercentage 將保留的下限。 int
NAME 路由規則的名稱。 建議的名稱是指向將接收實驗中流量的位置。 字串
reroutePercentage 將重新導向至 ActionHostName的流量百分比。 int

HandlerMapping

名稱 描述
引數 要傳遞至腳本處理器的命令行自變數。 字串
擴充功能 具有此擴充功能的要求將會使用指定的 FastCGI 應用程式來處理。 字串
scriptProcessor FastCGI 應用程式的絕對路徑。 字串

IpSecurityRestriction

名稱 描述
動作 允許或拒絕此IP範圍的存取。 字串
description IP 限制規則描述。 字串
headers 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。
比對邏輯完全相符。
物件 (object)
ipAddress 安全性限制有效的IP位址。
其格式可以是純 ipv4 位址, (必要的 SubnetMask 屬性) 或
CIDR 表示法,例如 ipv4/mask (前置位比對) 。 針對 CIDR,
不可指定 SubnetMask 屬性。
字串
NAME IP 限制規則名稱。 字串
priority IP 限制規則的優先順序。 int
subnetMask 限制有效之IP位址範圍的子網掩碼。 字串
subnetTrafficTag (內部) 子網流量捲標 int
標籤 定義此IP篩選器將用於哪些專案。 這是為了支援 Proxy 上的IP篩選。 'Default'
'ServiceTag'
'XffProxy'
vnetSubnetResourceId 虛擬網路資源標識碼 字串
vnetTrafficTag (內部) Vnet 流量標籤 int

SiteLimits

名稱 描述
maxDiskSizeInMb 允許的磁碟大小使用量上限,以 MB 為單位。 int
maxMemoryInMb 以 MB 為單位允許的記憶體使用量上限。 int
maxPercentageCpu 允許的CPU使用量百分比上限。 int

PushSettings

名稱 描述
kind 資源種類。 字串
properties PushSettings 資源特定屬性 PushSettingsProperties

PushSettingsProperties

名稱 描述
dynamicTagsJson 取得或設定 JSON 字串,其中包含將從推送註冊端點中的使用者宣告評估的動態標記清單。 字串
isPushEnabled 取得或設定旗標,指出是否啟用推送端點。 bool (必要)
tagsRequiringAuth 取得或設定 JSON 字串,其中包含需要在推送註冊端點中使用使用者驗證的標籤清單。
標記可以包含英數位元和下列專案:
'_', '@', '#', '.', ':', '-'.
驗證應該在 PushRequestHandler 上執行。
字串
tagWhitelistJson 取得或設定 JSON 字串,其中包含推送註冊端點允許使用的標籤清單。 字串

VirtualApplication

名稱 描述
physicalPath 實體路徑。 字串
preloadEnabled true 如果已啟用預先載入,則為 ;否則為 false bool
virtualDirectories 虛擬應用程式的虛擬目錄。 VirtualDirectory[]
virtualPath 虛擬路徑。 字串

VirtualDirectory

名稱 描述
physicalPath 實體路徑。 字串
virtualPath 虛擬應用程式的路徑。 字串

快速入門範本

下列快速入門範本會部署此資源類型。

範本 描述
在 App Services 上使用 PostgreSQL 資料庫的 Airflow Web 應用程式

部署至 Azure
在 App Services 上使用 PostgreSQL 資料庫部署 Airflow Web 應用程式的範本
Azure 中的 EPiserverCMS

部署至 Azure
此範本可讓您在 Azure 中建立 EpiServerCMS 部署所需的資源
使用 Jenkins 和 Azure Web Apps 的 Java CI/CD

部署至 Azure
這是使用 Jenkins 和 Azure Web Apps 的 Java CI/CD 範例。
Orchard CMS 影片入口網站 Web 應用程式

部署至 Azure
此範本可讓您輕鬆地在 Azure App 服務 Web Apps 上部署一個可啟用及設定 Azure 媒體服務模組的 Orchard CMS。
適用於 Azure 事件中樞的 PubNub 即時閘道

部署至 Azure
適用於 Azure 的 PubNub 即時閘道提供 PubNub 資料流網路與 Azure 事件中樞 之間的實時數據流網橋。 -- 將其視為 PubNub 與 Azure 之間的雙向網橋!
可調整的 Umbraco CMS Web 應用程式

部署至 Azure
此範本提供在 Azure App 服務 Web Apps 上部署 umbraco CMS Web 應用程式的簡單方式。
簡單 Umbraco CMS Web 應用程式

部署至 Azure
此範本提供在 Azure App 服務 Web Apps 上部署 umbraco CMS Web 應用程式的簡單方式。
使用 MySQL In App 在 App Service 上的 WordPress

部署至 Azure
此範本會在應用程式中使用 MySQL 在 Windows App Service 上部署 WordPress Web 應用程式
Enterprise Governance-AppService、SQL DB、AD、OMS、Runbook

部署至 Azure
企業或大型的雲端採用需要負責任且有效率的治理模型,才能從其雲端部署衍生價值。 CloudWise (解決方案的程式代碼名稱) ,是 Azure 合作夥伴快速入門提供的複合解決方案,是客戶、系統整合者和合作夥伴的採用啟用者,可提供可自助、自動化的治理和作業解決方案,著重於優化成本、改善您的應用程式 () 可靠性、降低商務風險。 解決方案強調可見度和控制的核心治理要素。
使用 Azure SQL 私人端點的 WebApp

部署至 Azure
此範本示範如何建立 Web 應用程式,以取用指向 Azure SQL 伺服器的私人端點
Moesif API 分析和獲利

部署至 Azure
此範本會將來自 Azure API 管理 的 API 呼叫記錄到 Moesif API 分析和獲利平臺
從 Azure Logic Apps 呼叫自定義 API

部署至 Azure
雖然 Logic Apps 為各種服務提供數百個連接器,但您可能想要呼叫執行您自己的程式代碼的 API。 裝載您自己的 Web API 的最簡單且最可調整方式之一,就是使用 Azure App 服務。 此範本會為您的自訂 API 部署 Web 應用程式,並使用 Azure Active Directory 驗證來保護該 API。
具有IP限制的Web應用程式 應用程式閘道

部署至 Azure
此範本會在 Azure Web 應用程式前面建立應用程式閘道,並在 Web 應用程式上啟用 IP 限制。
使用 Azure SQL 後端 App Service 環境

部署至 Azure
此範本會建立具有 Azure SQL 後端以及私人端點以及通常用於私人/隔離環境中的相關聯資源 App Service 環境。
布建在 App Service 方案上執行的函式應用程式

部署至 Azure
此範本會在專用主控方案上布建函式應用程式,這表示它會執行並計費,就像任何 App Service 網站一樣。
具有事件中樞和受控識別的 Azure 函式應用程式

部署至 Azure
他的範本會在Linux取用方案上布建 Azure 函式應用程式,以及事件中樞、Azure 記憶體和 Application Insights。 函式應用程式能夠使用受控識別來連線到事件中樞和記憶體帳戶
使用 vnet 整合部署 Azure Function Premium 方案

部署至 Azure
此範本可讓您將已啟用區域虛擬網路整合的 Azure Function Premium 方案部署到新建立的虛擬網路。
使用 SQL Database 布建行動應用程式

部署至 Azure
此範本會布建行動應用程式、SQL Database和通知中樞。 它會在資料庫和通知中樞的行動應用程式中設定 連接字串。
具有私人端點的 Web 應用程式

部署至 Azure
此範本可讓您建立 Web 應用程式,並透過私人端點公開
使用內部 API 管理和 Web 應用程式 應用程式閘道

部署至 Azure
應用程式閘道 將因特網流量路由傳送至虛擬網路, (內部模式) API 管理 實例,其服務裝載於 Azure Web 應用程式中的 Web API。
使用 Blob 記憶體建立 Azure Web 應用程式 連接字串

部署至 Azure
使用 Blob 記憶體 連接字串 建立 Azure Web 應用程式,此範本最初由 Microsoft Jeff 的 Jeff 一文撰寫
使用診斷記錄至 Blob 容器的 Web 應用程式

部署至 Azure
使用診斷記錄將 Web 應用程式部署至已啟用記憶體帳戶 Blob 容器。
在已啟用 Java 13 和 Tomcat 9 的 Azure 上建立 Web 應用程式

部署至 Azure
此範本會在已啟用 Java 13 和 Tomcat 9 的 Azure 上建立 Web 應用程式,讓您能夠在 Azure 中執行 Java 應用程式。 範本是由 Microsoft Donovan Brown 所撰寫。
Web 應用程式 w/ Application Insights 傳送至 Log Analytics

部署至 Azure
此範本將協助支援 microsoft.insights/components 的新 API 版本。 從 2020-02-02-preview WorkspaceID 開始,建立 Application Inisghts 時,將會需要此範本。此範本會部署 App Service Plan、App Service、Application Insights、Log Analytics 工作區,並將其全部連結在一起。
具有受控識別、SQL Server和 ΑΙ 的 Web 應用程式

部署至 Azure
為應用程式 + 資料 + 受控識別 + 監視部署 Azure 基礎結構的簡單範例
使用範本建立 Web 應用程式 + Redis 快取 + SQL DB

部署至 Azure
此範本會建立具有 Redis 快取和 SQL Database 的 Azure Web 應用程式。
使用 SQL Database 布建 Web 應用程式

部署至 Azure
此範本會布建 Web 應用程式、SQL Database、自動調整設定、警示規則和 App Insights。 它會在資料庫的 Web 應用程式中設定 連接字串。
使用範本建立 Web 應用程式和 Redis 快取

部署至 Azure
此範本會建立具有 Redis 快取的 Azure Web 應用程式。
具有自定義部署位置的 Web 應用程式

部署至 Azure
此範本可讓您輕鬆地在 Azure Web Apps 上使用自訂部署位置來部署 Web 應用程式。
Linux 上的 Airflow Docker Web 應用程式與 PostgreSQL

部署至 Azure
此範本可讓您輕鬆地在 Linux Web 應用程式上使用適用於 PostgreSQL 的 Azure 資料庫部署 puckel/docker-airflow 映射 (最新的標籤)
使用 Azure SQL 在 Linux 上使用 Sonarqube Docker Web 應用程式

部署至 Azure
此範本會使用官方 Sonarqube 映像,並將 Sonarqube 部署在 Azure App 服務 Web 應用程式 Linux 容器中,並由 Azure SQL Server 支援。
使用 MySQL 在 Linux 上的 Sonarqube Docker Web 應用程式

部署至 Azure
此範本可讓您輕鬆地在 Linux Web 應用程式中部署 Sonarqube docker 映射, (alpine 卷標) 與適用於 MySQL 的 Azure 資料庫
使用 PostgreSQL 在 Linux 上的 Sonarqube Docker Web 應用程式

部署至 Azure
此範本可讓您輕鬆地在 Linux Web 應用程式上部署 Sonarqube docker 映射, (alpine 卷標) 與適用於 PostgreSQL 的 Azure 資料庫 (Preview)
適用於 MySQL 的 Azure 資料庫 Web 應用程式

部署至 Azure
此範本可讓您輕鬆地在適用於 MySQL 的 Azure 資料庫 Azure App 服務 Web Apps 上部署 Web 應用程式。
Linux 上的 Web 應用程式與 PostgreSQL

部署至 Azure
此範本提供簡單的方法,可讓您使用適用於 PostgreSQL 的 Azure 資料庫在 Linux 上部署 Web 應用程式。
具有 VNet 插入和私人端點的 Web 應用程式

部署至 Azure
此範本可讓您建立具有兩個 Web 應用程式、前端和後端的安全端對端解決方案,前端會透過 VNet 插入和私人端點安全地取用後端

Terraform (AzAPI 提供者) 資源定義

月臺/組態資源類型可以使用目標作業進行部署:

  • 資源群組

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

name 屬性的選項

sites/config 資源會根據 name 屬性的值接受不同的屬性。 本文說明當您設定 name: 'web'時可用的屬性。

如需其他選項,請參閱:

資源格式

若要建立 Microsoft.Web/sites/config 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Web/sites/config@2022-09-01"
  name = "web"
  parent_id = "string"
  body = jsonencode({
    properties = {
      acrUseManagedIdentityCreds = bool
      acrUserManagedIdentityID = "string"
      alwaysOn = bool
      apiDefinition = {
        url = "string"
      }
      apiManagementConfig = {
        id = "string"
      }
      appCommandLine = "string"
      appSettings = [
        {
          name = "string"
          value = "string"
        }
      ]
      autoHealEnabled = bool
      autoHealRules = {
        actions = {
          actionType = "string"
          customAction = {
            exe = "string"
            parameters = "string"
          }
          minProcessExecutionTime = "string"
        }
        triggers = {
          privateBytesInKB = int
          requests = {
            count = int
            timeInterval = "string"
          }
          slowRequests = {
            count = int
            path = "string"
            timeInterval = "string"
            timeTaken = "string"
          }
          slowRequestsWithPath = [
            {
              count = int
              path = "string"
              timeInterval = "string"
              timeTaken = "string"
            }
          ]
          statusCodes = [
            {
              count = int
              path = "string"
              status = int
              subStatus = int
              timeInterval = "string"
              win32Status = int
            }
          ]
          statusCodesRange = [
            {
              count = int
              path = "string"
              statusCodes = "string"
              timeInterval = "string"
            }
          ]
        }
      }
      autoSwapSlotName = "string"
      azureStorageAccounts = {}
      connectionStrings = [
        {
          connectionString = "string"
          name = "string"
          type = "string"
        }
      ]
      cors = {
        allowedOrigins = [
          "string"
        ]
        supportCredentials = bool
      }
      defaultDocuments = [
        "string"
      ]
      detailedErrorLoggingEnabled = bool
      documentRoot = "string"
      elasticWebAppScaleLimit = int
      experiments = {
        rampUpRules = [
          {
            actionHostName = "string"
            changeDecisionCallbackUrl = "string"
            changeIntervalInMinutes = int
            changeStep = int
            maxReroutePercentage = int
            minReroutePercentage = int
            name = "string"
            reroutePercentage = int
          }
        ]
      }
      ftpsState = "string"
      functionAppScaleLimit = int
      functionsRuntimeScaleMonitoringEnabled = bool
      handlerMappings = [
        {
          arguments = "string"
          extension = "string"
          scriptProcessor = "string"
        }
      ]
      healthCheckPath = "string"
      http20Enabled = bool
      httpLoggingEnabled = bool
      ipSecurityRestrictions = [
        {
          action = "string"
          description = "string"
          headers = {}
          ipAddress = "string"
          name = "string"
          priority = int
          subnetMask = "string"
          subnetTrafficTag = int
          tag = "string"
          vnetSubnetResourceId = "string"
          vnetTrafficTag = int
        }
      ]
      ipSecurityRestrictionsDefaultAction = "string"
      javaContainer = "string"
      javaContainerVersion = "string"
      javaVersion = "string"
      keyVaultReferenceIdentity = "string"
      limits = {
        maxDiskSizeInMb = int
        maxMemoryInMb = int
        maxPercentageCpu = int
      }
      linuxFxVersion = "string"
      loadBalancing = "string"
      localMySqlEnabled = bool
      logsDirectorySizeLimit = int
      managedPipelineMode = "string"
      managedServiceIdentityId = int
      metadata = [
        {
          name = "string"
          value = "string"
        }
      ]
      minimumElasticInstanceCount = int
      minTlsVersion = "string"
      netFrameworkVersion = "string"
      nodeVersion = "string"
      numberOfWorkers = int
      phpVersion = "string"
      powerShellVersion = "string"
      preWarmedInstanceCount = int
      publicNetworkAccess = "string"
      publishingUsername = "string"
      push = {
        kind = "string"
        properties = {
          dynamicTagsJson = "string"
          isPushEnabled = bool
          tagsRequiringAuth = "string"
          tagWhitelistJson = "string"
        }
      }
      pythonVersion = "string"
      remoteDebuggingEnabled = bool
      remoteDebuggingVersion = "string"
      requestTracingEnabled = bool
      requestTracingExpirationTime = "string"
      scmIpSecurityRestrictions = [
        {
          action = "string"
          description = "string"
          headers = {}
          ipAddress = "string"
          name = "string"
          priority = int
          subnetMask = "string"
          subnetTrafficTag = int
          tag = "string"
          vnetSubnetResourceId = "string"
          vnetTrafficTag = int
        }
      ]
      scmIpSecurityRestrictionsDefaultAction = "string"
      scmIpSecurityRestrictionsUseMain = bool
      scmMinTlsVersion = "string"
      scmType = "string"
      tracingOptions = "string"
      use32BitWorkerProcess = bool
      virtualApplications = [
        {
          physicalPath = "string"
          preloadEnabled = bool
          virtualDirectories = [
            {
              physicalPath = "string"
              virtualPath = "string"
            }
          ]
          virtualPath = "string"
        }
      ]
      vnetName = "string"
      vnetPrivatePortsCount = int
      vnetRouteAllEnabled = bool
      websiteTimeZone = "string"
      webSocketsEnabled = bool
      windowsFxVersion = "string"
      xManagedServiceIdentityId = int
    }
    kind = "string"
  })
}

屬性值

sites/config-web

名稱 描述
類型 資源類型 “Microsoft.Web/sites/config@2022-09-01”
NAME 資源名稱 “web”
parent_id 此資源父系之資源的標識碼。 類型資源的標識碼: 網站
kind 資源種類。 字串
properties 核心資源屬性 SiteConfig

SiteConfig

名稱 描述
acrUseManagedIdentityCreds 使用受控識別 Creds 進行 ACR 提取的旗標 bool
acrUserManagedIdentityID 如果使用使用者受控識別,則使用者受控識別 ClientId 字串
alwaysOn true如果已開啟 Always On,則為 ,否則為 false bool
apiDefinition 應用程式正式 API 定義的相關信息。 ApiDefinitionInfo
apiManagementConfig 連結至應用程式的 Azure API 管理設定。 ApiManagementConfig
appCommandLine 要啟動的應用程式命令行。 字串
appSettings 應用程式設定。 NameValuePair[]
autoHealEnabled true 如果已啟用自動修復,則為 ;否則為 false bool
autoHealRules 自動修復規則。 AutoHealRules
autoSwapSlotName 自動交換位置名稱。 字串
azureStorageAccounts Azure 記憶體帳戶清單。 物件 (object)
connectionStrings 連接字串。 ConnStringInfo[]
cors 跨原始來源資源分享 (CORS) 設定。 CorsSettings
defaultDocuments 默認檔。 string[]
detailedErrorLoggingEnabled true 如果已啟用詳細的錯誤記錄,則為 ;否則為 false bool
documentRoot 檔根目錄。 字串
elasticWebAppScaleLimit 網站可相應放大的背景工作角色數目上限。
此設定僅適用於 ElasticScaleEnabled 為方案中的應用程式 true
int
experiments 這適用於多型類型。 實驗
ftpsState FTP / FTPS 服務的狀態 “AllAllowed”
“Disabled”
“FtpsOnly”
functionAppScaleLimit 網站可相應放大的背景工作角色數目上限。
此設定僅適用於取用和彈性進階方案
int
functionsRuntimeScaleMonitoringEnabled 取得或設定值,指出是否啟用函式運行時間調整監視。 啟用時,
ScaleController 不會直接監視事件來源,而是會改為呼叫
運行時間以取得調整狀態。
bool
handlerMappings 處理程序對應。 HandlerMapping[]
healthCheckPath 健康情況檢查路徑 字串
http20Enabled Http20Enabled:設定網站以允許用戶端透過 HTTP2.0 連線 bool
httpLoggingEnabled true 如果已啟用 HTTP 記錄,則為 ;否則為 false bool
ipSecurityRestrictions main 的IP安全性限制。 IpSecurityRestriction[]
ipSecurityRestrictionsDefaultAction 如果未比對任何規則,則主要存取限制的默認動作。 “Allow”
“Deny”
javaContainer Java 容器。 字串
javaContainerVersion Java 容器版本。 字串
javaVersion Java 版本。 字串
keyVaultReferenceIdentity 用於 金鑰保存庫 參考驗證的身分識別。 字串
限制 網站限制。 SiteLimits
linuxFxVersion Linux App Framework 和版本 字串
負載平衡 網站負載平衡。 “LeastRequests”
“LeastResponseTime”
“PerSiteRoundRobin”
“RequestHash”
“WeightedRoundRobin”
“WeightedTotalTraffic”
localMySqlEnabled true 表示啟用本機 MySQL;否則為 false bool
logsDirectorySizeLimit HTTP 記錄目錄大小限制。 int
managedPipelineMode Managed 管線模式。 “Classic”
“Integrated”
managedServiceIdentityId 受控服務識別標識碼 int
中繼資料 應用程式元數據。 無法擷取這個屬性,因為它可能包含秘密。 NameValuePair[]
minimumElasticInstanceCount 月臺的最小實例計數數目
此設定僅適用於彈性方案
int
minTlsVersion MinTlsVersion:設定 SSL 要求所需的最低 TLS 版本 "1.0"
"1.1"
"1.2"
netFrameworkVersion .NET Framework 版本。 字串
nodeVersion Node.js 的版本。 字串
numberOfWorkers 背景工作數目。 int
phpVersion PHP 版本。 字串
powerShellVersion PowerShell 的版本。 字串
preWarmedInstanceCount 預先警告實例的數目。
此設定僅適用於取用和彈性方案
int
publicNetworkAccess 允許或封鎖所有公用流量的屬性。 字串
publishingUsername 發佈用戶名稱。 字串
push 推送端點設定。 PushSettings
pythonVersion Python 的版本。 字串
remoteDebuggingEnabled true 如果已啟用遠端偵錯,則為 ;否則為 false bool
remoteDebuggingVersion 遠端偵錯版本。 字串
requestTracingEnabled true 如果已啟用要求追蹤,則為 ;否則為 false bool
requestTracingExpirationTime 要求追蹤到期時間。 字串
scmIpSecurityRestrictions scm 的IP安全性限制。 IpSecurityRestriction[]
scmIpSecurityRestrictionsDefaultAction 如果未比對任何規則,則為 scm 存取限制的預設動作。 “Allow”
“拒絕”
scmIpSecurityRestrictionsUseMain scm 使用 main 的 IP 安全性限制。 bool
scmMinTlsVersion ScmMinTlsVersion:設定 SCM 網站 SSL 要求所需的最低 TLS 版本 "1.0"
"1.1"
"1.2"
scmType SCM 類型。 “BitbucketGit”
“BitbucketHg”
“CodePlexGit”
“CodePlexHg”
“Dropbox”
“ExternalGit”
“ExternalHg”
“GitHub”
“LocalGit”
"None"
“OneDrive”
“Tfs”
“VSO”
“VSTSRM”
tracingOptions 追蹤選項。 字串
use32BitWorkerProcess true 表示使用32位背景工作進程;否則為 false bool
virtualApplications 虛擬應用程式。 VirtualApplication[]
vnetName 虛擬網路 名稱。 字串
vnetPrivatePortsCount 指派給此應用程式的私人埠數目。 這些會在運行時間動態指派。 int
vnetRouteAllEnabled 虛擬網路 已啟用 [全部路由]。 這會導致套用 虛擬網路 安全組和用戶定義路由的所有輸出流量。 bool
websiteTimeZone 設定網站用來產生時間戳的時區。 與 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 字串
webSocketsEnabled true 如果已啟用 WebSocket,則為 ;否則為 false bool
windowsFxVersion Xenon App Framework 和版本 字串
xManagedServiceIdentityId 明確受控服務識別標識碼 int

ApiDefinitionInfo

名稱 描述
url API 定義的 URL。 字串

ApiManagementConfig

名稱 描述
id APIM-Api 識別碼。 字串

NameValuePair

名稱 描述
NAME 配對名稱。 字串
value 配對值。 字串

AutoHealRules

名稱 描述
動作 觸發規則時要執行的動作。 AutoHealActions
觸發程序 描述何時執行自動修復動作的條件。 AutoHealTriggers

AutoHealActions

名稱 描述
actionType 要採取的預先定義動作。 “CustomAction”
“LogEvent”
“回收”
customAction 要採取的自定義動作。 AutoHealCustomAction
minProcessExecutionTime 進程必須執行的時間下限
採取動作之前
字串

AutoHealCustomAction

名稱 描述
exe 要執行的可執行檔。 字串
參數 可執行文件的參數。 字串

AutoHealTriggers

名稱 描述
privateBytesInKB 以私用位元組為基礎的規則。 int
requests 根據要求總數的規則。 RequestsBasedTrigger
slowRequests 根據要求運行時間的規則。 SlowRequestsBasedTrigger
slowRequestsWithPath 以具有路徑的多個慢速要求規則為基礎的規則 SlowRequestsBasedTrigger[]
statusCodes 根據狀態代碼的規則。 StatusCodesBasedTrigger[]
statusCodesRange 根據狀態代碼範圍的規則。 StatusCodesRangeBasedTrigger[]

RequestsBasedTrigger

名稱 描述
count 要求計數。 int
timeInterval 時間間隔。 字串

SlowRequestsBasedTrigger

名稱 描述
count 要求計數。 int
path 要求路徑。 字串
timeInterval 時間間隔。 字串
timeTaken 所花費的時間。 字串

StatusCodesBasedTrigger

名稱 描述
count 要求計數。 int
path 要求路徑 字串
status HTTP 狀態碼。 int
子狀態 要求子狀態。 int
timeInterval 時間間隔。 字串
win32Status Win32 錯誤碼。 int

StatusCodesRangeBasedTrigger

名稱 描述
count 要求計數。 int
path 字串
statusCodes HTTP 狀態碼。 字串
timeInterval 時間間隔。 字串

ConnStringInfo

名稱 描述
connectionString 連接字串值。 字串
NAME 連接字串 的名稱。 字串
type 資料庫的類型。 “ApiHub”
"Custom"
“DocDb”
“EventHub”
“MySql”
“NotificationHub”
“PostgreSQL”
“RedisCache”
“SQLAzure”
“SQLServer”
“ServiceBus”

CorsSettings

名稱 描述
allowedOrigins 取得或設定應允許進行跨原始來源的來源清單
呼叫 (例如: http://example.com:12345) 。 使用 "*" 可全部允許。
string[]
supportCredentials 取得或設定是否允許具有認證的CORS要求。 請參閱
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials

bool

實驗

名稱 描述
rampUpRules 向上坡形規則的清單。 RampUpRule[]

RampUpRule

名稱 描述
actionHostName 如果決定要重新導向流量的位置主機名。 例如 myapp-stage.azurewebsites.net。 字串
changeDecisionCallbackUrl 您可以在可指定 URL 的 TiPCallback 網站延伸模組中提供自訂決策演算法。 如需 Scaffold 和合約,請參閱 TiPCallback 網站延伸模組。
https://www.siteextensions.net/packages/TiPCallback/
字串
changeIntervalInMinutes 指定重新評估 ReroutePercentage 的分鐘間隔。 int
changeStep 在自動增加案例中,這是新增/移除 ReroutePercentage 到 \nMinReroutePercentage
MaxReroutePercentage. 網站計量會每隔 N 分鐘檢查一次 .\n自定義決策演算法中指定的 ChangeIntervalInMinutes時間
可以在 TiPCallback 網站延伸模組中提供,您可以在 中 ChangeDecisionCallbackUrl指定 URL。
int
maxReroutePercentage 指定 ReroutePercentage 將維持在下方的上限。 int
minReroutePercentage 指定 ReroutePercentage 將保留的下限。 int
NAME 路由規則的名稱。 建議的名稱是指向將接收實驗中流量的位置。 字串
reroutePercentage 將重新導向至 ActionHostName的流量百分比。 int

HandlerMapping

名稱 描述
引數 要傳遞至腳本處理器的命令行自變數。 字串
擴充功能 具有此擴充功能的要求將會使用指定的 FastCGI 應用程式來處理。 字串
scriptProcessor FastCGI 應用程式的絕對路徑。 字串

IpSecurityRestriction

名稱 描述
動作 允許或拒絕此IP範圍的存取。 字串
description IP 限制規則描述。 字串
headers 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。
比對邏輯完全相符。
物件 (object)
ipAddress 安全性限制有效的IP位址。
其格式可以是純 ipv4 位址, (必要的 SubnetMask 屬性) 或
CIDR 表示法,例如 ipv4/mask (前置位比對) 。 針對 CIDR,
不可指定 SubnetMask 屬性。
字串
NAME IP 限制規則名稱。 字串
priority IP 限制規則的優先順序。 int
subnetMask 限制有效之IP位址範圍的子網掩碼。 字串
subnetTrafficTag (內部) 子網流量捲標 int
標籤 定義此IP篩選條件將用於哪些專案。 這是為了支援 Proxy 上的IP篩選。 “Default”
“ServiceTag”
“XffProxy”
vnetSubnetResourceId 虛擬網路資源標識碼 字串
vnetTrafficTag (內部) Vnet 流量標籤 int

SiteLimits

名稱 描述
maxDiskSizeInMb 以 MB 為單位允許的磁碟大小使用量上限。 int
maxMemoryInMb MB 允許的最大記憶體使用量。 int
maxPercentageCpu 允許的CPU使用量百分比上限。 int

PushSettings

名稱 描述
kind 資源種類。 字串
properties PushSettings 資源特定屬性 PushSettingsProperties

PushSettingsProperties

名稱 描述
dynamicTagsJson 取得或設定 JSON 字串,其中包含將從推送註冊端點中的使用者宣告評估的動態標記清單。 字串
isPushEnabled 取得或設定旗標,指出是否啟用推送端點。 bool (必要)
tagsRequiringAuth 取得或設定 JSON 字串,其中包含需要在推送註冊端點中使用使用者驗證的標籤清單。
標記可以包含英數位元和下列專案:
'_', '@', '#', '.', ':', '-'.
驗證應該在 PushRequestHandler 上執行。
字串
tagWhitelistJson 取得或設定 JSON 字串,其中包含推送註冊端點允許使用的標籤清單。 字串

VirtualApplication

名稱 描述
physicalPath 實體路徑。 字串
preloadEnabled true 如果已啟用預先載入,則為 ;否則為 false bool
virtualDirectories 虛擬應用程式的虛擬目錄。 VirtualDirectory[]
virtualPath 虛擬路徑。 字串

VirtualDirectory

名稱 描述
physicalPath 實體路徑。 字串
virtualPath 虛擬應用程式的路徑。 字串