Microsoft.Web sites 2015-08-01
Bicep 資源定義
月臺資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Web/sites 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.Web/sites@2015-08-01' = {
kind: 'string'
location: 'string'
name: 'string'
properties: {
clientAffinityEnabled: bool
clientCertEnabled: bool
cloningInfo: {
appSettingsOverrides: {
{customized property}: 'string'
}
cloneCustomHostNames: bool
cloneSourceControl: bool
configureLoadBalancing: bool
correlationId: 'string'
hostingEnvironment: 'string'
overwrite: bool
sourceWebAppId: 'string'
trafficManagerProfileId: 'string'
trafficManagerProfileName: 'string'
}
containerSize: int
enabled: bool
gatewaySiteName: 'string'
hostingEnvironmentProfile: {
id: 'string'
name: 'string'
type: 'string'
}
hostNamesDisabled: bool
hostNameSslStates: [
{
name: 'string'
sslState: 'string'
thumbprint: 'string'
toUpdate: bool
virtualIP: 'string'
}
]
maxNumberOfWorkers: int
microService: 'string'
name: 'string'
scmSiteAlsoStopped: bool
serverFarmId: 'string'
siteConfig: {
id: 'string'
kind: 'string'
location: 'string'
name: 'string'
properties: {
alwaysOn: bool
apiDefinition: {
url: '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
timeInterval: 'string'
timeTaken: 'string'
}
statusCodes: [
{
count: int
status: int
subStatus: int
timeInterval: 'string'
win32Status: int
}
]
}
}
autoSwapSlotName: 'string'
connectionStrings: [
{
connectionString: 'string'
name: 'string'
type: 'string'
}
]
cors: {
allowedOrigins: [
'string'
]
}
defaultDocuments: [
'string'
]
detailedErrorLoggingEnabled: bool
documentRoot: 'string'
experiments: {
rampUpRules: [
{
actionHostName: 'string'
changeDecisionCallbackUrl: 'string'
changeIntervalInMinutes: int
changeStep: int
maxReroutePercentage: int
minReroutePercentage: int
name: 'string'
reroutePercentage: int
}
]
}
handlerMappings: [
{
arguments: 'string'
extension: 'string'
scriptProcessor: 'string'
}
]
httpLoggingEnabled: bool
ipSecurityRestrictions: [
{
ipAddress: 'string'
subnetMask: 'string'
}
]
javaContainer: 'string'
javaContainerVersion: 'string'
javaVersion: 'string'
limits: {
maxDiskSizeInMb: int
maxMemoryInMb: int
maxPercentageCpu: int
}
loadBalancing: 'string'
localMySqlEnabled: bool
logsDirectorySizeLimit: int
managedPipelineMode: 'string'
metadata: [
{
name: 'string'
value: 'string'
}
]
netFrameworkVersion: 'string'
nodeVersion: 'string'
numberOfWorkers: int
phpVersion: 'string'
publishingPassword: 'string'
publishingUsername: 'string'
pythonVersion: 'string'
remoteDebuggingEnabled: bool
remoteDebuggingVersion: 'string'
requestTracingEnabled: bool
requestTracingExpirationTime: 'string'
scmType: 'string'
tracingOptions: 'string'
use32BitWorkerProcess: bool
virtualApplications: [
{
physicalPath: 'string'
preloadEnabled: bool
virtualDirectories: [
{
physicalPath: 'string'
virtualPath: 'string'
}
]
virtualPath: 'string'
}
]
vnetName: 'string'
webSocketsEnabled: bool
}
tags: {
{customized property}: 'string'
}
type: 'string'
}
}
tags: {
{customized property}: 'string'
}
}
屬性值
ApiDefinitionInfo
名字 | 描述 | 價值 |
---|---|---|
url | API 定義的 URL。 | 字串 |
AutoHealActions
名字 | 描述 | 價值 |
---|---|---|
actionType | ActionType - 要採取的預先定義動作 | 'CustomAction' 'LogEvent' '回收' (必要) |
customAction | CustomAction - 要採取的自定義動作 | AutoHealCustomAction |
minProcessExecutionTime | MinProcessExecutionTime - 進程必須執行的時間下限 採取動作之前 |
字串 |
AutoHealCustomAction
名字 | 描述 | 價值 |
---|---|---|
exe | 要執行的可執行檔 | 字串 |
參數 | 可執行文件的參數 | 字串 |
AutoHealRules
名字 | 描述 | 價值 |
---|---|---|
行動 | 動作 - 觸發規則時要執行的動作 | AutoHealActions |
觸發器 | 觸發程式 - 描述何時執行自動癒合動作的條件 | AutoHealTriggers |
AutoHealTriggers
名字 | 描述 | 價值 |
---|---|---|
privateBytesInKB | PrivateBytesInKB - 根據私用位元組定義規則 | int |
請求 | 要求 - 根據要求總數定義規則 | RequestsBasedTrigger |
slowRequests | SlowRequests - 根據要求運行時間定義規則 | SlowRequestsBasedTrigger |
statusCodes | StatusCodes - 根據狀態代碼定義規則 | StatusCodesBasedTrigger[] |
CloningInfo
名字 | 描述 | 價值 |
---|---|---|
appSettingsOverrides | 複製 Web 應用程式的應用程式設定會覆寫。 如果指定這些設定將會覆寫複製的設定 來自來源 Web 應用程式。 如果未指定,則會保留來源 Web 應用程式的應用程式設定。 |
CloningInfoAppSettingsOverrides |
cloneCustomHostNames | 如果為 true,請從來源 Web 應用程式複製自定義主機名 | bool |
cloneSourceControl | 從來源 Web 應用程式複製原始檔控制 | bool |
configureLoadBalancing | 如果指定設定來源和複製月臺的負載平衡 | bool |
correlationId | 複製作業的相互關聯標識碼。 此標識碼會系結多個複製作業 一起使用相同的快照集 |
字串 |
hostingEnvironment | 裝載環境 | 字串 |
改寫 | 覆寫目的地 Web 應用程式 | bool |
sourceWebAppId | 來源 Web 應用程式的 ARM 資源識別碼。 Web 應用程式資源識別碼的格式為 /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} 用於生產位置和 /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} |
字串 |
trafficManagerProfileId | 如果流量管理員配置檔存在,則會使用ARM資源識別碼。 流量管理員資源標識碼的格式為 /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName} |
字串 |
trafficManagerProfileName | 要建立的流量管理員配置檔名稱。 只有在流量管理員配置檔不存在時,才需要這麼做 | 字串 |
CloningInfoAppSettingsOverrides
名字 | 描述 | 價值 |
---|
ConnStringInfo
名字 | 描述 | 價值 |
---|---|---|
connectionString | 連接字串值 | 字串 |
名字 | 連接字串的名稱 | 字串 |
類型 | 資料庫類型 | 'Custom' 'MySql' 'SQLAzure' 'SQLServer' (必要) |
CorsSettings
名字 | 描述 | 價值 |
---|---|---|
allowedOrigins | 取得或設定應該允許建立跨原始來源的來源清單 呼叫 (例如:http://example.com:12345)。 使用 「*」 來允許所有專案。 |
string[] |
實驗
名字 | 描述 | 價值 |
---|---|---|
rampUpRules | {Microsoft.Web.Hosting.Administration.RampUpRule} 物件清單。 | RampUpRule[] |
HandlerMapping
名字 | 描述 | 價值 |
---|---|---|
參數 | 要傳遞至腳本處理器的命令行自變數。 | 字串 |
外延 | 使用此擴充功能的要求將會使用指定的 FastCGI 應用程式來處理。 | 字串 |
scriptProcessor | FastCGI 應用程式的絕對路徑。 | 字串 |
HostingEnvironmentProfile
名字 | 描述 | 價值 |
---|---|---|
id | hostingEnvironment 的資源標識符(App Service 環境) | 字串 |
名字 | hostingEnvironment (App Service Environment) 的名稱(只讀) | 字串 |
類型 | hostingEnvironment 的資源類型 (App Service 環境) (只讀) | 字串 |
HostNameSslState
名字 | 描述 | 價值 |
---|---|---|
名字 | 主機名 | 字串 |
sslState | SSL 類型 | 'Disabled' 'IpBasedEnabled' 'SniEnabled' (必要) |
指紋 | SSL 憑證指紋 | 字串 |
toUpdate | 設定此旗標以更新現有的主機名 | bool |
virtualIP | 如果已啟用IP型SSL,則指派給主機名的虛擬IP位址 | 字串 |
IpSecurityRestriction
名字 | 描述 | 價值 |
---|---|---|
ipAddress | 安全性限制有效的IP位址 | 字串 |
subnetMask | 限制的有效IP位址範圍的子網掩碼 | 字串 |
Microsoft.Web/sites
名字 | 描述 | 價值 |
---|---|---|
類 | 資源種類 | 字串 |
位置 | 資源位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 (必要) |
性能 | SiteProperties | |
標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
NameValuePair
名字 | 描述 | 價值 |
---|---|---|
名字 | 配對名稱 | 字串 |
價值 | 配對值 | 字串 |
RampUpRule
名字 | 描述 | 價值 |
---|---|---|
actionHostName | 如果決定要重新導向流量的位置主機名。 例如 mysite-stage.azurewebsites.net | 字串 |
changeDecisionCallbackUrl | 您可以在可指定 Url 的 TiPCallback 網站延伸模組中提供自訂決策演算法。 | 字串 |
changeIntervalInMinutes | [選擇性]指定以分鐘為單位重新評估 ReroutePercentage 的間隔 | int |
changeStep | [選擇性]在自動增加案例中,這是從 {Microsoft.Web.Hosting.Administration.RampUpRule.ReroutePercentage} 新增/移除的步驟,直到達到 {Microsoft.Web.Hosting.Administration.RampUpRule.MinReroutePercentage} 或 {Microsoft.Web.Hosting.Administration.RampUpRule.MaxReroutePercentage}。 網站計量會在 {Microsoft.Web.Hosting.Administration.RampUpRule.ChangeIntervalInMinutes} 中指定的每 N 分鐘檢查一次。 您可以在 TiPCallback 網站延伸模組中提供自定義決策演算法,您可以在 {Microsoft.Web.Hosting.Administration.RampUpRule.ChangeDecisionCallbackUrl} 中指定 Url |
int |
maxReroutePercentage | [選擇性]指定 ReroutePercentage 將保留的上限。 | int |
minReroutePercentage | [選擇性]指定上方的下限,讓 ReroutePercentage 維持不變。 | int |
名字 | 路由規則的名稱。 建議的名稱會指向將接收實驗中流量的位置。 | 字串 |
reroutePercentage | 將重新導向至 {Microsoft.Web.Hosting.Administration.RampUpRule.ActionHostName} 的流量百分比 | int |
RequestsBasedTrigger
名字 | 描述 | 價值 |
---|---|---|
計數 | 計數 | int |
timeInterval | TimeInterval | 字串 |
ResourceTags
名字 | 描述 | 價值 |
---|
ResourceTags
名字 | 描述 | 價值 |
---|
SiteConfig
名字 | 描述 | 價值 |
---|---|---|
id | 資源標識碼 | 字串 |
類 | 資源種類 | 字串 |
位置 | 資源位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 |
性能 | SiteConfigProperties | |
標籤 | 資源標籤 | ResourceTags |
類型 | 資源類型 | 字串 |
SiteConfigProperties
名字 | 描述 | 價值 |
---|---|---|
alwaysOn | AlwaysOn | bool |
apiDefinition | Web 應用程式正式 API 定義的相關信息。 | ApiDefinitionInfo |
appCommandLine | 要啟動的應用程式命令行 | 字串 |
appSettings | 應用程式設定 | NameValuePair[] |
autoHealEnabled | 已啟用自動癒合 | bool |
autoHealRules | 自動癒合規則 | AutoHealRules |
autoSwapSlotName | 自動交換位置名稱 | 字串 |
connectionStrings | 連接字串 | ConnStringInfo[] |
cors | 跨原始來源資源分享 (CORS) 設定。 | CorsSettings |
defaultDocuments | 默認檔 | string[] |
detailedErrorLoggingEnabled | 已啟用詳細的錯誤記錄 | bool |
documentRoot | 檔根目錄 | 字串 |
實驗 | 這適用於多型類型 | 實驗 |
handlerMappings | 處理程序對應 | HandlerMapping[] |
httpLoggingEnabled | 已啟用 HTTP 記錄 | bool |
ipSecurityRestrictions | Ip 安全性限制 | IpSecurityRestriction[] |
javaContainer | Java 容器 | 字串 |
javaContainerVersion | Java 容器版本 | 字串 |
javaVersion | Java 版本 | 字串 |
限制 | 網站限制 | SiteLimits |
負載平衡 | 網站負載平衡 | 'LeastRequests' 'LeastResponseTime' 'RequestHash' 'WeightedRoundRobin' 'WeightedTotalTraffic' |
localMySqlEnabled | 已啟用本機 mysql | bool |
logsDirectorySizeLimit | HTTP 記錄目錄大小限制 | int |
managedPipelineMode | 受控管線模式 | 'Classic' 'Integrated' |
元數據 | 網站元數據 | NameValuePair[] |
netFrameworkVersion | Net Framework 版本 | 字串 |
nodeVersion | 節點版本 | 字串 |
numberOfWorkers | 背景工作角色數目 | int |
phpVersion | PHP 版本 | 字串 |
publishingPassword | 發佈密碼 | 字串 |
publishingUsername | 發佈用戶名稱 | 字串 |
pythonVersion | Python 版本 | 字串 |
remoteDebuggingEnabled | 已啟用遠端偵錯 | bool |
remoteDebuggingVersion | 遠端偵錯版本 | 字串 |
requestTracingEnabled | 啟用要求追蹤 | bool |
requestTracingExpirationTime | 要求追蹤到期時間 | 字串 |
scmType | SCM 類型 | 字串 |
tracingOptions | 追蹤選項 | 字串 |
use32BitWorkerProcess | 使用32位背景工作進程 | bool |
virtualApplications | 虛擬應用程式 | VirtualApplication[] |
vnetName | Vnet 名稱 | 字串 |
webSocketsEnabled | 已啟用 Web 套接字。 | bool |
SiteLimits
名字 | 描述 | 價值 |
---|---|---|
maxDiskSizeInMb | MB 允許的磁碟大小使用量上限 | int |
maxMemoryInMb | MB 中允許的記憶體使用量上限 | int |
maxPercentageCpu | 允許的CPU使用量百分比上限 | int |
SiteProperties
名字 | 描述 | 價值 |
---|---|---|
clientAffinityEnabled | 指定在負載平衡 Web 應用程式多個實例的 HTTP 要求時,是否啟用用戶端親和性 | bool |
clientCertEnabled | 指定是否為 Web 應用程式啟用客戶端憑證 | bool |
cloningInfo | 這隻適用於 Web 應用程式建立。 如果指定,則會從複製 Web 應用程式 來源 Web 應用程式 |
複製Info |
containerSize | 函式容器的大小 | int |
啟用 | 如果已啟用網站,則為 True;否則為 false。 將此值設定為 false 會停用月臺(關閉月台離線)。 | bool |
gatewaySiteName | 與 Web 應用程式相關聯的閘道應用程式名稱 | 字串 |
hostingEnvironmentProfile | 用於 Web 應用程式的裝載環境規格 (App Service 環境) | HostingEnvironmentProfile |
hostNamesDisabled | 指定公用主機名是否停用 Web 應用程式。 如果設定為 true,則應用程式只能透過 API 管理程式存取 |
bool |
hostNameSslStates | 主機名 SSL 狀態可用來管理月臺主機名的 SSL 系結。 | HostNameSslState[] |
maxNumberOfWorkers | 背景工作角色數目上限 這隻適用於函式容器 |
int |
microService | 字串 | |
名字 | Web 應用程式的名稱 | 字串 |
scmSiteAlsoStopped | 如果 set 指出是否在 Web 應用程式停止時停止 SCM (KUDU) 網站。 默認值為 false。 | bool |
serverFarmId | 字串 | |
siteConfig | 設定 Web 應用程式 | SiteConfig |
SlowRequestsBasedTrigger
名字 | 描述 | 價值 |
---|---|---|
計數 | 計數 | int |
timeInterval | TimeInterval | 字串 |
timeTaken | TimeTaken | 字串 |
StatusCodesBasedTrigger
名字 | 描述 | 價值 |
---|---|---|
計數 | 計數 | int |
地位 | HTTP 狀態代碼 | int |
subStatus | SubStatus | int |
timeInterval | TimeInterval | 字串 |
win32Status | Win32 錯誤碼 | int |
VirtualApplication
名字 | 描述 | 價值 |
---|---|---|
physicalPath | 字串 | |
preloadEnabled | bool | |
virtualDirectories | VirtualDirectory[] | |
virtualPath | 字串 |
VirtualDirectory
名字 | 描述 | 價值 |
---|---|---|
physicalPath | 字串 | |
virtualPath | 字串 |
使用範例
Azure 已驗證的模組
下列 Azure 驗證模組 可用來部署此資源類型。
模組 | 描述 |
---|---|
Web/函式應用程式 | Web/函式應用程式的AVM資源模組 |
Azure 快速入門範例
下列 Azure 快速入門範本 包含用於部署此資源類型的 Bicep 範例。
Bicep 檔案 | 描述 |
---|---|
使用主控方案和 Azure WebApp App Service 環境 | 在現有的虛擬網路中建立具有 ILB 位址的 App Service Environment v2,以便私下使用。 App Service 環境將包含主控方案和 Azure Web 應用程式 |
App Service 快速入門 - Linux 應用程式 | 此範本可與 /azure/app-service/quickstart-arm-template 搭配使用 |
App Service 快速入門 - Windows 應用程式 | 此範本可與 /azure/app-service/quickstart-arm-template 搭配使用 |
App Service 快速入門 - Windows 應用程式 | 此範本可與 /azure/app-service/quickstart-arm-template 搭配使用 |
App Service 快速入門 - Windows 容器應用程式 | 此範本可與 /azure/app-service/quickstart-arm-template 搭配使用 |
使用內部 API 管理和 Web 應用程式 應用程式閘道 | 應用程式閘道會將因特網流量路由傳送至虛擬網路(內部模式)API 管理實例,此實例會服務裝載於 Azure Web 應用程式中的 Web API。 |
使用 Web 應用程式 Azure Cosmos DB 帳戶 | 此範本會部署 Azure Cosmos DB 帳戶、App Service 方案,並在 App Service 方案中建立 Web 應用程式。 它也會將兩個應用程式設定新增至參考 Azure Cosmos DB 帳戶端點的 Web 應用程式。 如此一來,部署至 Web 應用程式的解決方案就可以使用這些設定連線到 Azure Cosmos DB 帳戶端點。 |
使用函式和 Private Link 服務 Azure Digital Twins | 此範本會建立一個 Azure Digital Twins 服務,此服務會使用虛擬網路連線的 Azure 函式來設定,以透過私人連結端點與 Digital Twins 進行通訊。 它也會建立私人 DNS 區域,以允許從虛擬網路到私人端點內部子網 IP 位址的 Digital Twins 端點無縫主機名解析。 主機名會儲存為名稱為 『ADT_ENDPOINT』 的 Azure 函式設定。 |
Azure 函式應用程式和 HTTP 觸發的函式 | 此範例會在範本中內嵌部署 Azure 函式應用程式和 HTTP 觸發的函式。 它也會部署 Key Vault,並使用函式應用程式的主機密鑰填入秘密。 |
裝載在Linux取用方案上的 Azure 函式應用程式 | 此範本會在Linux取用方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,而您每次執行都會計費,且不需任何常設資源承諾。 |
使用部署位置 Azure 函式應用程式 | 此範本會在具有生產位置和其他部署位置的進階方案上布建函式應用程式。 |
使用事件中樞和受控識別 Azure 函式應用程式 | 他的範本會在Linux取用方案上布建 Azure 函式應用程式,以及事件中樞、Azure 記憶體和 Application Insights。 函式應用程式可以使用受控識別來連線到事件中樞和記憶體帳戶 |
使用虛擬網路整合 Azure 函式應用程式 | 此範本會在進階方案上布建函式應用程式,且已啟用區域虛擬網路整合至新建立的虛擬網路。 |
Azure 流量管理員 Web 應用程式範例 | 此範本示範如何建立 App Service 的 Azure 流量管理員配置檔。 |
使用適用於 MySQL 的 Azure 資料庫在 Linux 上建置 Web 應用程式 | 此範本提供使用適用於 MySQL 的 Azure 資料庫在 Linux 上部署 Web Apps 的方式。 |
建立 CDN 設定檔、CDN 端點和 Web 應用程式 | 此範本會建立 CDN 設定檔,並使用 Web 應用程式作為來源的 CDN 端點 |
在已啟用 Java 13 和 Tomcat 9 的 Azure 上建立 Web 應用程式 | 此範本會在已啟用 Java 13 和 Tomcat 9 的 Azure 上建立 Web 應用程式,讓您能夠在 Azure 中執行 Java 應用程式。 範本是由多諾萬·布朗撰寫的Microsoft。 |
使用範本建立 Web 應用程式加上 Redis 快取 | 此範本會建立具有 Redis 快取的 Azure Web 應用程式。 |
建立 Web 應用程式、PE 和應用程式閘道 v2 | 此範本會在 Azure 虛擬網路子網中建立具有私人端點的 Azure Web 應用程式,也就是應用程式閘道 v2。 應用程式閘道部署在 vNet (子網) 中。 Web 應用程式會使用私人端點限制對子網流量的存取 |
建立零觸控 Azure Cosmos 帳戶和 Azure Web 應用程式 | 此範本會建立 Azure Cosmos 帳戶、將 Cosmos DB 端點和金鑰插入 Azure Web 應用程式設定,然後從 GitHub 部署 ASP MVC Web 應用程式。 |
建立函式應用程式和私人端點保護的記憶體 | 此範本可讓您部署透過私人端點與 Azure 記憶體通訊的 Azure 函式應用程式。 |
部署基本的Linux Web應用程式 | 此範本可讓您部署應用程式服務方案和基本的 Linux Web 應用程式 |
使用區域 VNet 整合部署應用程式服務 | 此範本可讓您部署應用程式服務方案和基本 Windows Web 應用程式,並啟用區域 VNet 整合至新建立的虛擬網路 |
部署已啟用 AZ 的 Azure 函式進階方案 | 此範本可讓您部署具有可用性區域支援的 Azure Function Premium 方案,包括已啟用可用性區域記憶體帳戶的可用性區域。 |
使用 vnet 整合部署 Azure Function Premium 方案 | 此範本可讓您部署已啟用區域虛擬網路整合的 Azure Function Premium 方案至新建立的虛擬網路。 |
Django 應用程式 | 此範本可讓您建立 App Service 來部署 Django 應用程式。 |
Flask 應用程式服務 | 此範本可讓您建立 App Service 來部署 Flask 應用程式。 |
使用 App Service 來源和 Private Link Front Door Premium | 此範本會建立 Front Door Premium 和 App Service,並使用 Front Door 的私人端點將流量傳送至應用程式。 |
使用 App Service 來源 Front Door Standard/Premium | 此範本會建立 Front Door Standard/Premium、App Service,並設定 App Service 來驗證流量是否通過 Front Door 來源。 |
使用 Azure Functions 來源 Front Door Standard/Premium | 此範本會建立 Front Door Standard/Premium、Azure Functions 應用程式,並設定函式應用程式來驗證流量是否通過 Front Door 來源。 |
函式應用程式 | 此範本會部署空的函式應用程式和主控方案。 |
由 Azure Frontdoor 保護的 函式應用程式 | 此範本可讓您部署受 Azure Frontdoor Premium 保護及發佈的 Azure 進階函式。 Azure Frontdoor 與 Azure Functions 之間的 Conenction 受到 Azure Private Link 的保護。 |
高可用性多區域 Web 應用程式 | 此範本可讓您建立安全、高可用性、多區域端對端解決方案,並在 Azure Front Door 後方的不同區域中建立兩個 Web 應用程式 |
Moesif API分析和獲利 | 此範本會將來自 Azure API 管理的 API 呼叫記錄至 Moesif API 分析和獲利平臺 |
私人函式應用程式和私人端點保護的記憶體 | 此範本會在具有私人端點的進階方案上布建函式應用程式,並透過私人端點與 Azure 記憶體通訊。 |
在取用方案上布建函式應用程式 | 此範本會在取用方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,而您每次執行都會計費,且不需任何常設資源承諾。 有其他範本可用於布建專用主控方案。 |
布建在 App Service 方案 上執行的函式應用程式 | 此範本會在專用主控方案上布建函式應用程式,這表示它會像任何 App Service 網站一樣執行並計費。 |
使用 SQL Database 布建 Web 應用程式 | 此範本會布建 Web 應用程式、SQL Database、自動調整設定、警示規則和 App Insights。 它會在資料庫的 Web 應用程式中設定連接字串。 |
使用部署位置 布建取用方案函式 | 此範本會在取用方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,而您每次執行都會計費,且不需任何常設資源承諾。 有其他範本可用於布建專用主控方案。 |
保護多層式 Web 應用程式 | 此範本可讓您使用具有預備位置、前端和後端的兩個 Web 應用程式建立安全的端對端解決方案,前端會透過 VNet 插入和私人端點安全地取用後端 |
使用 Azure SQL 在 Linux 上 Sonarqube Docker Web 應用程式 | 此範本會使用官方 Sonarqube 映像,並在 Azure SQL Server 支援下,在 Azure App Service Web 應用程式 Linux 容器中部署 Sonarqube。 |
在 Linux 上使用 PostgreSQL Sonarqube Docker Web 應用程式 | 此範本提供在 Linux Web 應用程式上使用適用於 PostgreSQL 的 Azure 資料庫部署 Sonarqube Docker 映射 (alpine tag) 的簡單方式(預覽版) |
具有 PostgreSQL 和 VNet 整合的 Web 應用程式上的 SonarQube | 此範本可讓您使用 PostgreSQL 彈性伺服器、VNet 整合和私人 DNS,輕鬆地將 SonarQube 部署至 Linux 上的 Web 應用程式。 |
從 GitHub Web 應用程式部署 | 此範本可讓您建立連結至 GitHub 存放庫的 WebApp 連結。 |
Web 應用程式 w/ Application Insights 傳送至 Log Analytics | 此範本將協助支援 microsoft.insights/components 的新 API 版本。 從 2020-02-02-preview WorkspaceID 開始,建立 Application Inisghts 時將會需要此範本。此範本會部署 App Service 方案、App Service、Application Insights、Log Analytics 工作區,並將其全部連結在一起。 |
使用適用於 MySQL 的 Azure 資料庫 Web 應用程式 | 此範本提供簡單的方式,透過適用於 MySQL 的 Azure 資料庫,在 Azure App Service Web Apps 上部署 Web 應用程式。 |
具有受控識別、SQL Server 和 的 Web 應用程式 | 針對應用程式 + 資料 + 受控識別 + 監視部署 Azure 基礎結構的簡單範例 |
使用 VNet 插入和私人端點 Web 應用程式 | 此範本可讓您使用兩個 Web 應用程式、前端和後端建立安全端對端解決方案,前端會透過 VNet 插入和私人端點安全地取用後端 |
ARM 樣本資源定義
月臺資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Web/sites 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.Web/sites",
"apiVersion": "2015-08-01",
"name": "string",
"kind": "string",
"location": "string",
"properties": {
"clientAffinityEnabled": "bool",
"clientCertEnabled": "bool",
"cloningInfo": {
"appSettingsOverrides": {
"{customized property}": "string"
},
"cloneCustomHostNames": "bool",
"cloneSourceControl": "bool",
"configureLoadBalancing": "bool",
"correlationId": "string",
"hostingEnvironment": "string",
"overwrite": "bool",
"sourceWebAppId": "string",
"trafficManagerProfileId": "string",
"trafficManagerProfileName": "string"
},
"containerSize": "int",
"enabled": "bool",
"gatewaySiteName": "string",
"hostingEnvironmentProfile": {
"id": "string",
"name": "string",
"type": "string"
},
"hostNamesDisabled": "bool",
"hostNameSslStates": [
{
"name": "string",
"sslState": "string",
"thumbprint": "string",
"toUpdate": "bool",
"virtualIP": "string"
}
],
"maxNumberOfWorkers": "int",
"microService": "string",
"name": "string",
"scmSiteAlsoStopped": "bool",
"serverFarmId": "string",
"siteConfig": {
"id": "string",
"kind": "string",
"location": "string",
"name": "string",
"properties": {
"alwaysOn": "bool",
"apiDefinition": {
"url": "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",
"timeInterval": "string",
"timeTaken": "string"
},
"statusCodes": [
{
"count": "int",
"status": "int",
"subStatus": "int",
"timeInterval": "string",
"win32Status": "int"
}
]
}
},
"autoSwapSlotName": "string",
"connectionStrings": [
{
"connectionString": "string",
"name": "string",
"type": "string"
}
],
"cors": {
"allowedOrigins": [ "string" ]
},
"defaultDocuments": [ "string" ],
"detailedErrorLoggingEnabled": "bool",
"documentRoot": "string",
"experiments": {
"rampUpRules": [
{
"actionHostName": "string",
"changeDecisionCallbackUrl": "string",
"changeIntervalInMinutes": "int",
"changeStep": "int",
"maxReroutePercentage": "int",
"minReroutePercentage": "int",
"name": "string",
"reroutePercentage": "int"
}
]
},
"handlerMappings": [
{
"arguments": "string",
"extension": "string",
"scriptProcessor": "string"
}
],
"httpLoggingEnabled": "bool",
"ipSecurityRestrictions": [
{
"ipAddress": "string",
"subnetMask": "string"
}
],
"javaContainer": "string",
"javaContainerVersion": "string",
"javaVersion": "string",
"limits": {
"maxDiskSizeInMb": "int",
"maxMemoryInMb": "int",
"maxPercentageCpu": "int"
},
"loadBalancing": "string",
"localMySqlEnabled": "bool",
"logsDirectorySizeLimit": "int",
"managedPipelineMode": "string",
"metadata": [
{
"name": "string",
"value": "string"
}
],
"netFrameworkVersion": "string",
"nodeVersion": "string",
"numberOfWorkers": "int",
"phpVersion": "string",
"publishingPassword": "string",
"publishingUsername": "string",
"pythonVersion": "string",
"remoteDebuggingEnabled": "bool",
"remoteDebuggingVersion": "string",
"requestTracingEnabled": "bool",
"requestTracingExpirationTime": "string",
"scmType": "string",
"tracingOptions": "string",
"use32BitWorkerProcess": "bool",
"virtualApplications": [
{
"physicalPath": "string",
"preloadEnabled": "bool",
"virtualDirectories": [
{
"physicalPath": "string",
"virtualPath": "string"
}
],
"virtualPath": "string"
}
],
"vnetName": "string",
"webSocketsEnabled": "bool"
},
"tags": {
"{customized property}": "string"
},
"type": "string"
}
},
"tags": {
"{customized property}": "string"
}
}
屬性值
ApiDefinitionInfo
名字 | 描述 | 價值 |
---|---|---|
url | API 定義的 URL。 | 字串 |
AutoHealActions
名字 | 描述 | 價值 |
---|---|---|
actionType | ActionType - 要採取的預先定義動作 | 'CustomAction' 'LogEvent' '回收' (必要) |
customAction | CustomAction - 要採取的自定義動作 | AutoHealCustomAction |
minProcessExecutionTime | MinProcessExecutionTime - 進程必須執行的時間下限 採取動作之前 |
字串 |
AutoHealCustomAction
名字 | 描述 | 價值 |
---|---|---|
exe | 要執行的可執行檔 | 字串 |
參數 | 可執行文件的參數 | 字串 |
AutoHealRules
名字 | 描述 | 價值 |
---|---|---|
行動 | 動作 - 觸發規則時要執行的動作 | AutoHealActions |
觸發器 | 觸發程式 - 描述何時執行自動癒合動作的條件 | AutoHealTriggers |
AutoHealTriggers
名字 | 描述 | 價值 |
---|---|---|
privateBytesInKB | PrivateBytesInKB - 根據私用位元組定義規則 | int |
請求 | 要求 - 根據要求總數定義規則 | RequestsBasedTrigger |
slowRequests | SlowRequests - 根據要求運行時間定義規則 | SlowRequestsBasedTrigger |
statusCodes | StatusCodes - 根據狀態代碼定義規則 | StatusCodesBasedTrigger[] |
CloningInfo
名字 | 描述 | 價值 |
---|---|---|
appSettingsOverrides | 複製 Web 應用程式的應用程式設定會覆寫。 如果指定這些設定將會覆寫複製的設定 來自來源 Web 應用程式。 如果未指定,則會保留來源 Web 應用程式的應用程式設定。 |
CloningInfoAppSettingsOverrides |
cloneCustomHostNames | 如果為 true,請從來源 Web 應用程式複製自定義主機名 | bool |
cloneSourceControl | 從來源 Web 應用程式複製原始檔控制 | bool |
configureLoadBalancing | 如果指定設定來源和複製月臺的負載平衡 | bool |
correlationId | 複製作業的相互關聯標識碼。 此標識碼會系結多個複製作業 一起使用相同的快照集 |
字串 |
hostingEnvironment | 裝載環境 | 字串 |
改寫 | 覆寫目的地 Web 應用程式 | bool |
sourceWebAppId | 來源 Web 應用程式的 ARM 資源識別碼。 Web 應用程式資源識別碼的格式為 /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} 用於生產位置和 /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} |
字串 |
trafficManagerProfileId | 如果流量管理員配置檔存在,則會使用ARM資源識別碼。 流量管理員資源標識碼的格式為 /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName} |
字串 |
trafficManagerProfileName | 要建立的流量管理員配置檔名稱。 只有在流量管理員配置檔不存在時,才需要這麼做 | 字串 |
CloningInfoAppSettingsOverrides
名字 | 描述 | 價值 |
---|
ConnStringInfo
名字 | 描述 | 價值 |
---|---|---|
connectionString | 連接字串值 | 字串 |
名字 | 連接字串的名稱 | 字串 |
類型 | 資料庫類型 | 'Custom' 'MySql' 'SQLAzure' 'SQLServer' (必要) |
CorsSettings
名字 | 描述 | 價值 |
---|---|---|
allowedOrigins | 取得或設定應該允許建立跨原始來源的來源清單 呼叫 (例如:http://example.com:12345)。 使用 「*」 來允許所有專案。 |
string[] |
實驗
名字 | 描述 | 價值 |
---|---|---|
rampUpRules | {Microsoft.Web.Hosting.Administration.RampUpRule} 物件清單。 | RampUpRule[] |
HandlerMapping
名字 | 描述 | 價值 |
---|---|---|
參數 | 要傳遞至腳本處理器的命令行自變數。 | 字串 |
外延 | 使用此擴充功能的要求將會使用指定的 FastCGI 應用程式來處理。 | 字串 |
scriptProcessor | FastCGI 應用程式的絕對路徑。 | 字串 |
HostingEnvironmentProfile
名字 | 描述 | 價值 |
---|---|---|
id | hostingEnvironment 的資源標識符(App Service 環境) | 字串 |
名字 | hostingEnvironment (App Service Environment) 的名稱(只讀) | 字串 |
類型 | hostingEnvironment 的資源類型 (App Service 環境) (只讀) | 字串 |
HostNameSslState
名字 | 描述 | 價值 |
---|---|---|
名字 | 主機名 | 字串 |
sslState | SSL 類型 | 'Disabled' 'IpBasedEnabled' 'SniEnabled' (必要) |
指紋 | SSL 憑證指紋 | 字串 |
toUpdate | 設定此旗標以更新現有的主機名 | bool |
virtualIP | 如果已啟用IP型SSL,則指派給主機名的虛擬IP位址 | 字串 |
IpSecurityRestriction
名字 | 描述 | 價值 |
---|---|---|
ipAddress | 安全性限制有效的IP位址 | 字串 |
subnetMask | 限制的有效IP位址範圍的子網掩碼 | 字串 |
Microsoft.Web/sites
名字 | 描述 | 價值 |
---|---|---|
apiVersion | API 版本 | '2015-08-01' |
類 | 資源種類 | 字串 |
位置 | 資源位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 (必要) |
性能 | SiteProperties | |
標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
類型 | 資源類型 | 'Microsoft.Web/sites' |
NameValuePair
名字 | 描述 | 價值 |
---|---|---|
名字 | 配對名稱 | 字串 |
價值 | 配對值 | 字串 |
RampUpRule
名字 | 描述 | 價值 |
---|---|---|
actionHostName | 如果決定要重新導向流量的位置主機名。 例如 mysite-stage.azurewebsites.net | 字串 |
changeDecisionCallbackUrl | 您可以在可指定 Url 的 TiPCallback 網站延伸模組中提供自訂決策演算法。 | 字串 |
changeIntervalInMinutes | [選擇性]指定以分鐘為單位重新評估 ReroutePercentage 的間隔 | int |
changeStep | [選擇性]在自動增加案例中,這是從 {Microsoft.Web.Hosting.Administration.RampUpRule.ReroutePercentage} 新增/移除的步驟,直到達到 {Microsoft.Web.Hosting.Administration.RampUpRule.MinReroutePercentage} 或 {Microsoft.Web.Hosting.Administration.RampUpRule.MaxReroutePercentage}。 網站計量會在 {Microsoft.Web.Hosting.Administration.RampUpRule.ChangeIntervalInMinutes} 中指定的每 N 分鐘檢查一次。 您可以在 TiPCallback 網站延伸模組中提供自定義決策演算法,您可以在 {Microsoft.Web.Hosting.Administration.RampUpRule.ChangeDecisionCallbackUrl} 中指定 Url |
int |
maxReroutePercentage | [選擇性]指定 ReroutePercentage 將保留的上限。 | int |
minReroutePercentage | [選擇性]指定上方的下限,讓 ReroutePercentage 維持不變。 | int |
名字 | 路由規則的名稱。 建議的名稱會指向將接收實驗中流量的位置。 | 字串 |
reroutePercentage | 將重新導向至 {Microsoft.Web.Hosting.Administration.RampUpRule.ActionHostName} 的流量百分比 | int |
RequestsBasedTrigger
名字 | 描述 | 價值 |
---|---|---|
計數 | 計數 | int |
timeInterval | TimeInterval | 字串 |
ResourceTags
名字 | 描述 | 價值 |
---|
ResourceTags
名字 | 描述 | 價值 |
---|
SiteConfig
名字 | 描述 | 價值 |
---|---|---|
id | 資源標識碼 | 字串 |
類 | 資源種類 | 字串 |
位置 | 資源位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 |
性能 | SiteConfigProperties | |
標籤 | 資源標籤 | ResourceTags |
類型 | 資源類型 | 字串 |
SiteConfigProperties
名字 | 描述 | 價值 |
---|---|---|
alwaysOn | AlwaysOn | bool |
apiDefinition | Web 應用程式正式 API 定義的相關信息。 | ApiDefinitionInfo |
appCommandLine | 要啟動的應用程式命令行 | 字串 |
appSettings | 應用程式設定 | NameValuePair[] |
autoHealEnabled | 已啟用自動癒合 | bool |
autoHealRules | 自動癒合規則 | AutoHealRules |
autoSwapSlotName | 自動交換位置名稱 | 字串 |
connectionStrings | 連接字串 | ConnStringInfo[] |
cors | 跨原始來源資源分享 (CORS) 設定。 | CorsSettings |
defaultDocuments | 默認檔 | string[] |
detailedErrorLoggingEnabled | 已啟用詳細的錯誤記錄 | bool |
documentRoot | 檔根目錄 | 字串 |
實驗 | 這適用於多型類型 | 實驗 |
handlerMappings | 處理程序對應 | HandlerMapping[] |
httpLoggingEnabled | 已啟用 HTTP 記錄 | bool |
ipSecurityRestrictions | Ip 安全性限制 | IpSecurityRestriction[] |
javaContainer | Java 容器 | 字串 |
javaContainerVersion | Java 容器版本 | 字串 |
javaVersion | Java 版本 | 字串 |
限制 | 網站限制 | SiteLimits |
負載平衡 | 網站負載平衡 | 'LeastRequests' 'LeastResponseTime' 'RequestHash' 'WeightedRoundRobin' 'WeightedTotalTraffic' |
localMySqlEnabled | 已啟用本機 mysql | bool |
logsDirectorySizeLimit | HTTP 記錄目錄大小限制 | int |
managedPipelineMode | 受控管線模式 | 'Classic' 'Integrated' |
元數據 | 網站元數據 | NameValuePair[] |
netFrameworkVersion | Net Framework 版本 | 字串 |
nodeVersion | 節點版本 | 字串 |
numberOfWorkers | 背景工作角色數目 | int |
phpVersion | PHP 版本 | 字串 |
publishingPassword | 發佈密碼 | 字串 |
publishingUsername | 發佈用戶名稱 | 字串 |
pythonVersion | Python 版本 | 字串 |
remoteDebuggingEnabled | 已啟用遠端偵錯 | bool |
remoteDebuggingVersion | 遠端偵錯版本 | 字串 |
requestTracingEnabled | 啟用要求追蹤 | bool |
requestTracingExpirationTime | 要求追蹤到期時間 | 字串 |
scmType | SCM 類型 | 字串 |
tracingOptions | 追蹤選項 | 字串 |
use32BitWorkerProcess | 使用32位背景工作進程 | bool |
virtualApplications | 虛擬應用程式 | VirtualApplication[] |
vnetName | Vnet 名稱 | 字串 |
webSocketsEnabled | 已啟用 Web 套接字。 | bool |
SiteLimits
名字 | 描述 | 價值 |
---|---|---|
maxDiskSizeInMb | MB 允許的磁碟大小使用量上限 | int |
maxMemoryInMb | MB 中允許的記憶體使用量上限 | int |
maxPercentageCpu | 允許的CPU使用量百分比上限 | int |
SiteProperties
名字 | 描述 | 價值 |
---|---|---|
clientAffinityEnabled | 指定在負載平衡 Web 應用程式多個實例的 HTTP 要求時,是否啟用用戶端親和性 | bool |
clientCertEnabled | 指定是否為 Web 應用程式啟用客戶端憑證 | bool |
cloningInfo | 這隻適用於 Web 應用程式建立。 如果指定,則會從複製 Web 應用程式 來源 Web 應用程式 |
複製Info |
containerSize | 函式容器的大小 | int |
啟用 | 如果已啟用網站,則為 True;否則為 false。 將此值設定為 false 會停用月臺(關閉月台離線)。 | bool |
gatewaySiteName | 與 Web 應用程式相關聯的閘道應用程式名稱 | 字串 |
hostingEnvironmentProfile | 用於 Web 應用程式的裝載環境規格 (App Service 環境) | HostingEnvironmentProfile |
hostNamesDisabled | 指定公用主機名是否停用 Web 應用程式。 如果設定為 true,則應用程式只能透過 API 管理程式存取 |
bool |
hostNameSslStates | 主機名 SSL 狀態可用來管理月臺主機名的 SSL 系結。 | HostNameSslState[] |
maxNumberOfWorkers | 背景工作角色數目上限 這隻適用於函式容器 |
int |
microService | 字串 | |
名字 | Web 應用程式的名稱 | 字串 |
scmSiteAlsoStopped | 如果 set 指出是否在 Web 應用程式停止時停止 SCM (KUDU) 網站。 默認值為 false。 | bool |
serverFarmId | 字串 | |
siteConfig | 設定 Web 應用程式 | SiteConfig |
SlowRequestsBasedTrigger
名字 | 描述 | 價值 |
---|---|---|
計數 | 計數 | int |
timeInterval | TimeInterval | 字串 |
timeTaken | TimeTaken | 字串 |
StatusCodesBasedTrigger
名字 | 描述 | 價值 |
---|---|---|
計數 | 計數 | int |
地位 | HTTP 狀態代碼 | int |
subStatus | SubStatus | int |
timeInterval | TimeInterval | 字串 |
win32Status | Win32 錯誤碼 | int |
VirtualApplication
名字 | 描述 | 價值 |
---|---|---|
physicalPath | 字串 | |
preloadEnabled | bool | |
virtualDirectories | VirtualDirectory[] | |
virtualPath | 字串 |
VirtualDirectory
名字 | 描述 | 價值 |
---|---|---|
physicalPath | 字串 | |
virtualPath | 字串 |
使用範例
Azure 快速入門範本
下列 Azure 快速入門範本 部署此資源類型。
範本 | 描述 |
---|---|
使用 PostgreSQL 在 Linux 上 Airflow Docker Web 應用程式 |
此範本提供在Linux Web App上使用適用於PostgreSQL的 Azure 資料庫部署 puckel/docker-airflow 映像(最新標籤)的簡單方式 |
App Services 上具有 PostgreSQL 資料庫的 Airflow Web 應用程式 |
在 App Services 上使用 PostgreSQL 資料庫部署 Airflow Web 應用程式的範本 |
使用 Azure SQL 後端 App Service 環境 |
此範本會建立具有 Azure SQL 後端的 App Service 環境,以及私人端點,以及通常用於私人/隔離環境中的相關聯資源。 |
使用主控方案和 Azure WebApp App Service 環境 |
在現有的虛擬網路中建立具有 ILB 位址的 App Service Environment v2,以便私下使用。 App Service 環境將包含主控方案和 Azure Web 應用程式 |
App Service 快速入門 - Linux 應用程式 |
此範本可與 /azure/app-service/quickstart-arm-template 搭配使用 |
App Service 快速入門 - Windows 應用程式 |
此範本可與 /azure/app-service/quickstart-arm-template 搭配使用 |
App Service 快速入門 - Windows 應用程式 |
此範本可與 /azure/app-service/quickstart-arm-template 搭配使用 |
App Service 快速入門 - Windows 容器應用程式 |
此範本可與 /azure/app-service/quickstart-arm-template 搭配使用 |
具有IP限制的Web應用程式 應用程式閘道 |
此範本會在 Azure Web 應用程式前面建立應用程式閘道,並在 Web 應用程式上啟用 IP 限制。 |
使用內部 API 管理和 Web 應用程式 應用程式閘道 |
應用程式閘道會將因特網流量路由傳送至虛擬網路(內部模式)API 管理實例,此實例會服務裝載於 Azure Web 應用程式中的 Web API。 |
ASP.NET 應用程式 |
此範本可讓您建立 App Service 來部署 ASP.NET 應用程式。 |
使用 Web 應用程式 Azure Cosmos DB 帳戶 |
此範本會部署 Azure Cosmos DB 帳戶、App Service 方案,並在 App Service 方案中建立 Web 應用程式。 它也會將兩個應用程式設定新增至參考 Azure Cosmos DB 帳戶端點的 Web 應用程式。 如此一來,部署至 Web 應用程式的解決方案就可以使用這些設定連線到 Azure Cosmos DB 帳戶端點。 |
使用函式和 Private Link 服務 Azure Digital Twins |
此範本會建立一個 Azure Digital Twins 服務,此服務會使用虛擬網路連線的 Azure 函式來設定,以透過私人連結端點與 Digital Twins 進行通訊。 它也會建立私人 DNS 區域,以允許從虛擬網路到私人端點內部子網 IP 位址的 Digital Twins 端點無縫主機名解析。 主機名會儲存為名稱為 『ADT_ENDPOINT』 的 Azure 函式設定。 |
Azure 函式應用程式和 HTTP 觸發的函式 |
此範例會在範本中內嵌部署 Azure 函式應用程式和 HTTP 觸發的函式。 它也會部署 Key Vault,並使用函式應用程式的主機密鑰填入秘密。 |
裝載於專用方案上的 Azure 函式應用程式 |
此範本會在專用主控方案上布建函式應用程式,這表示它會像任何 App Service 網站一樣執行並計費。 |
裝載在Linux取用方案上的 Azure 函式應用程式 |
此範本會在Linux取用方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,而您每次執行都會計費,且不需任何常設資源承諾。 |
裝載於進階方案上的 Azure 函式應用程式 |
此範本會在進階方案上布建函式應用程式。 |
裝載於 Windows 取用方案上的 Azure 函式應用程式 |
此範本會在 Windows 使用量方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,而您每次執行都會計費,且不需任何常設資源承諾。 |
使用部署位置 Azure 函式應用程式 |
此範本會在具有生產位置和其他部署位置的進階方案上布建函式應用程式。 |
使用事件中樞和受控識別 Azure 函式應用程式 |
他的範本會在Linux取用方案上布建 Azure 函式應用程式,以及事件中樞、Azure 記憶體和 Application Insights。 函式應用程式可以使用受控識別來連線到事件中樞和記憶體帳戶 |
使用虛擬網路整合 Azure 函式應用程式 |
此範本會在進階方案上布建函式應用程式,且已啟用區域虛擬網路整合至新建立的虛擬網路。 |
使用函式 Azure 邏輯應用程式 |
此範本會在 Azure 中使用 Logic Apps 和 Functions 建立無伺服器應用程式。 邏輯應用程式會在 HTTP POST 上觸發、呼叫 Azure 函式,並傳回回應。 |
Azure 流量管理員 Web 應用程式範例 |
此範本示範如何建立 App Service 的 Azure 流量管理員配置檔。 |
Buffalo Web App |
在 Azure 上快速且便宜地開始執行 Golang Buffalo 應用程式。 |
使用適用於 MySQL 的 Azure 資料庫在 Linux 上建置 Web 應用程式 |
此範本提供使用適用於 MySQL 的 Azure 資料庫在 Linux 上部署 Web Apps 的方式。 |
從 Azure Logic Apps 呼叫自定義 API |
雖然 Logic Apps 為各種服務提供數百個連接器,但您可能想要呼叫執行您自己的程式代碼的 API。 裝載您自己的 Web API 的最簡單且最可調整的方式之一是使用 Azure App Service。 此範本會為您的自訂 API 部署 Web 應用程式,並使用 Azure Active Directory 驗證來保護該 API。 |
建立 CDN 設定檔、CDN 端點和 Web 應用程式 |
此範本會建立 CDN 設定檔,並使用 Web 應用程式作為來源的 CDN 端點 |
建立函式應用程式,並使用自訂資源呼叫它 |
此範本會建立函式應用程式,做為範本部署中自定義資源提供者的工作負載。 |
使用範本建立 Web 應用程式 + Redis 快取 + SQL DB |
此範本會建立具有 Redis 快取和 SQL Database 的 Azure Web 應用程式。 |
在已啟用 Java 13 和 Tomcat 9 的 Azure 上建立 Web 應用程式 |
此範本會在已啟用 Java 13 和 Tomcat 9 的 Azure 上建立 Web 應用程式,讓您能夠在 Azure 中執行 Java 應用程式。 範本是由多諾萬·布朗撰寫的Microsoft。 |
在已啟用 Python 的 Azure 上建立 Web 應用程式 |
此範本會在已啟用 Python 的 Azure 上建立 Web 應用程式,讓您能夠在 Azure 中執行 Python 應用程式。 範本是由多諾萬·布朗撰寫的Microsoft。 |
使用範本建立 Web 應用程式加上 Redis 快取 |
此範本會建立具有 Redis 快取的 Azure Web 應用程式。 |
建立受應用程式閘道 v2 保護的 Web 應用程式 |
此範本會建立具有應用程式閘道 v2 存取限制的 Azure Web 應用程式。 應用程式閘道會部署在已啟用 「Microsoft.Web」 服務端點的 vNet (子網) 中。 Web 應用程式會限制從子網存取流量。 |
建立 Web 應用程式、PE 和應用程式閘道 v2 |
此範本會在 Azure 虛擬網路子網中建立具有私人端點的 Azure Web 應用程式,也就是應用程式閘道 v2。 應用程式閘道部署在 vNet (子網) 中。 Web 應用程式會使用私人端點限制對子網流量的存取 |
建立零觸控 Azure Cosmos 帳戶和 Azure Web 應用程式 |
此範本會建立 Azure Cosmos 帳戶、將 Cosmos DB 端點和金鑰插入 Azure Web 應用程式設定,然後從 GitHub 部署 ASP MVC Web 應用程式。 |
在應用程式中建立AppServicePlan和App。 服務 Env。 v2 |
在 App Service Environment v2 中建立 AppServicePlan 和 App |
在 ASE 中建立 AppServicePlan 和 App |
在 ASE 中建立 AppServicePlan 和 App |
建立並指派標準 App Service 憑證 |
建立標準 App Service 憑證、使用 App Service 應用程式進行驗證,並在憑證就緒後建立 SSL 系結 |
建立並指派通配符 App Service 憑證 |
建立通配符 App Service 憑證、使用 App Service 網域進行驗證,並在憑證就緒後,在 App Service App 上建立 SSL 系結 |
使用新增的 Web 應用程式建立 Azure App Service 環境 |
在虛擬網路子網內建立 Azure App Service 環境。 此範本也會在 App Service 環境內新增 Azure Web 應用程式。 範本最初由 PixelPin 的 Callum Brankin 撰寫 |
使用 Blob 記憶體連接字串建立 Azure Web 應用程式 |
使用 Blob 記憶體連接字串建立 Azure Web 應用程式,範本最初由 jeff Bowles 撰寫,Microsoft |
建立函式應用程式和私人端點保護的記憶體 |
此範本可讓您部署透過私人端點與 Azure 記憶體通訊的 Azure 函式應用程式。 |
使用受控服務識別建立函式應用程式 |
使用針對記錄和計量設定的 Application Insights,建立已啟用受控服務識別的函式應用程式。 |
部署基本的Linux Web應用程式 |
此範本可讓您部署應用程式服務方案和基本的 Linux Web 應用程式 |
使用區域 VNet 整合部署應用程式服務 |
此範本可讓您部署應用程式服務方案和基本 Windows Web 應用程式,並啟用區域 VNet 整合至新建立的虛擬網路 |
部署已啟用 AZ 的 Azure 函式進階方案 |
此範本可讓您部署具有可用性區域支援的 Azure Function Premium 方案,包括已啟用可用性區域記憶體帳戶的可用性區域。 |
使用 vnet 整合部署 Azure Function Premium 方案 |
此範本可讓您部署已啟用區域虛擬網路整合的 Azure Function Premium 方案至新建立的虛擬網路。 |
Django 應用程式 |
此範本可讓您建立 App Service 來部署 Django 應用程式。 |
Enterprise Governance-AppService、SQL DB、AD、OMS、Runbook |
企業雲端採用,小型或大型,需要負責任且有效率的治理模型,才能從其雲端部署中衍生價值。 CloudWise (解決方案的程式代碼名稱),是 Azure 合作夥伴快速入門中提供的複合解決方案,是客戶、系統整合者和合作夥伴的採用啟用者,可提供自助式、自動化的治理和作業解決方案,著重於優化成本、改善應用程式的可靠性、降低商務風險。 此解決方案強調可見度和控制的核心治理要素。 |
Azure 中的 EPiserverCMS |
此範本可讓您在 Azure 中建立 EpiServerCMS 部署所需的資源 |
使用 ILB ASE eShop 網站 |
App Service 環境是 Azure App Service 的進階服務方案選項,可提供完全隔離且專用的環境,以大規模安全地執行 Azure App Service 應用程式,包括 Web Apps、Mobile Apps 和 API Apps。 |
Flask 應用程式服務 |
此範本可讓您建立 App Service 來部署 Flask 應用程式。 |
使用 App Service 來源和 Private Link Front Door Premium |
此範本會建立 Front Door Premium 和 App Service,並使用 Front Door 的私人端點將流量傳送至應用程式。 |
使用 App Service 來源 Front Door Standard/Premium |
此範本會建立 Front Door Standard/Premium、App Service,並設定 App Service 來驗證流量是否通過 Front Door 來源。 |
使用 Azure Functions 來源 Front Door Standard/Premium |
此範本會建立 Front Door Standard/Premium、Azure Functions 應用程式,並設定函式應用程式來驗證流量是否通過 Front Door 來源。 |
函式應用程式 |
此範本會部署空的函式應用程式和主控方案。 |
使用遠端建置 在 Linux 取用方案中 函式應用程式 |
此範本會在 Linux 取用方案上佈建函式應用程式,並在程式碼部署期間執行遠端建置。 應用程式會視需要執行,而您每次執行都會計費,且不需任何常設資源承諾。 |
由 Azure Frontdoor 保護的 函式應用程式 |
此範本可讓您部署受 Azure Frontdoor Premium 保護及發佈的 Azure 進階函式。 Azure Frontdoor 與 Azure Functions 之間的 Conenction 受到 Azure Private Link 的保護。 |
高可用性多區域 Web 應用程式 |
此範本可讓您建立安全、高可用性、多區域端對端解決方案,並在 Azure Front Door 後方的不同區域中建立兩個 Web 應用程式 |
使用 Azure 防火牆 ILB App Service 環境 |
Resource Manager 範本和參數,示範如何使用 Azure 防火牆整合來部署 App Service 環境 |
使用 Jenkins 和 Azure Web Apps Java CI/CD |
這是使用 Jenkins 和 Azure Web Apps 的 Java CI/CD 範例。 |
肯蒂科·Xperience |
此範本可協助在 Microsoft azure 中裝載肯蒂科 Xperience 環境所需的資源部署。 |
Moesif API分析和獲利 |
此範本會將來自 Azure API 管理的 API 呼叫記錄至 Moesif API 分析和獲利平臺 |
Node App Service |
此範本可讓您建立 App Service 來部署 Node 應用程式。 |
Orchard CMS 影片入口網站 Web 應用程式 |
此範本提供在已啟用和設定 Azure 媒體服務模組的 Azure App Service Web Apps 上部署 Orchard CMS 的簡單方式。 |
私人函式應用程式和私人端點保護的記憶體 |
此範本會在具有私人端點的進階方案上布建函式應用程式,並透過私人端點與 Azure 記憶體通訊。 |
在取用方案上布建函式應用程式 |
此範本會在取用方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,而您每次執行都會計費,且不需任何常設資源承諾。 有其他範本可用於布建專用主控方案。 |
布建在 App Service 方案 上執行的函式應用程式 |
此範本會在專用主控方案上布建函式應用程式,這表示它會像任何 App Service 網站一樣執行並計費。 |
使用從 GitHub 部署的來源布建函式應用程式 |
此範本會部署裝載於新的專用 App Service 方案中的函式應用程式。 函式應用程式具有子資源,可讓您連續整合,並從 GitHub 存放庫部署函式程式碼。 |
使用 SQL Database 布建行動應用程式 |
此範本會布建行動應用程式、SQL Database 和通知中樞。 它會在資料庫和通知中樞的行動應用程式中設定連接字串。 |
使用 SQL Database 布建 Web 應用程式 |
此範本會布建 Web 應用程式、SQL Database、自動調整設定、警示規則和 App Insights。 它會在資料庫的 Web 應用程式中設定連接字串。 |
使用部署位置 布建取用方案函式 |
此範本會在取用方案上布建函式應用程式,這是動態主控方案。 應用程式會視需要執行,而您每次執行都會計費,且不需任何常設資源承諾。 有其他範本可用於布建專用主控方案。 |
適用於 Azure 事件中樞的 PubNub 即時閘道 |
適用於 Azure 的 PubNub 即時閘道提供 PubNub 資料流網路與 Azure 事件中樞之間的即時數據流網橋。 -- 將其視為 PubNub 與 Azure 之間的雙向網橋! |
可調整的 Umbraco CMS Web 應用程式 |
此範本提供在 Azure App Service Web Apps 上部署 umbraco CMS Web 應用程式的簡單方式。 |
保護多層式 Web 應用程式 |
此範本可讓您使用具有預備位置、前端和後端的兩個 Web 應用程式建立安全的端對端解決方案,前端會透過 VNet 插入和私人端點安全地取用後端 |
簡單的 Umbraco CMS Web 應用程式 |
此範本提供在 Azure App Service Web Apps 上部署 umbraco CMS Web 應用程式的簡單方式。 |
使用 Azure SQL 在 Linux 上 Sonarqube Docker Web 應用程式 |
此範本會使用官方 Sonarqube 映像,並在 Azure SQL Server 支援下,在 Azure App Service Web 應用程式 Linux 容器中部署 Sonarqube。 |
使用 MySQL 在 Linux 上 Sonarqube Docker Web 應用程式 |
此範本提供在Linux Web 應用程式上使用適用於 MySQL 的 Azure 資料庫部署 Sonarqube Docker 映像 (alpine tag) 的簡單方式 |
在 Linux 上使用 PostgreSQL Sonarqube Docker Web 應用程式 |
此範本提供在 Linux Web 應用程式上使用適用於 PostgreSQL 的 Azure 資料庫部署 Sonarqube Docker 映射 (alpine tag) 的簡單方式(預覽版) |
具有 PostgreSQL 和 VNet 整合的 Web 應用程式上的 SonarQube |
此範本可讓您使用 PostgreSQL 彈性伺服器、VNet 整合和私人 DNS,輕鬆地將 SonarQube 部署至 Linux 上的 Web 應用程式。 |
從 GitHub Web 應用程式部署 |
此範本可讓您建立連結至 GitHub 存放庫的 WebApp 連結。 |
Web 應用程式與 Key Vault 整合 |
從 Key Vault 秘密部署 Web 應用程式憑證,並用它來建立 SSL 系結 |
使用 PostgreSQL 在 Linux 上 Web 應用程式 |
此範本提供在 Linux 上使用適用於 PostgreSQL 的 Azure 資料庫部署 Web 應用程式(預覽版)的簡單方式。 |
使用 PostgreSQL 在 Linux 上 Web 應用程式 |
此範本提供簡單的方式,透過適用於 PostgreSQL 的 Azure 資料庫在 Linux 上部署 Web 應用程式。 |
Web 應用程式 w/ Application Insights 傳送至 Log Analytics |
此範本將協助支援 microsoft.insights/components 的新 API 版本。 從 2020-02-02-preview WorkspaceID 開始,建立 Application Inisghts 時將會需要此範本。此範本會部署 App Service 方案、App Service、Application Insights、Log Analytics 工作區,並將其全部連結在一起。 |
使用自定義網域和選擇性 SSL 系結 Web 應用程式 |
建立 Web 應用程式,並使用自訂網域,並選擇性地新增 HTTPS 加密的 SSL 憑證。 |
使用 SQL Database、Azure Cosmos DB、Azure 搜尋服務 Web 應用程式 |
此範本會布建 Web 應用程式、SQL Database、Azure Cosmos DB、Azure 搜尋服務和 Application Insights。 |
使用適用於 MySQL 的 Azure 資料庫 Web 應用程式 |
此範本提供簡單的方式,透過適用於 MySQL 的 Azure 資料庫,在 Azure App Service Web Apps 上部署 Web 應用程式。 |
具有自定義部署位置的 Web 應用程式 |
此範本提供在 Azure Web Apps 上使用自訂部署位置部署 Web 應用程式的簡單方式。 |
使用診斷記錄至 Blob 容器 Web 應用程式 |
將診斷記錄的 Web 應用程式部署至已啟用記憶體帳戶 Blob 容器。 |
具有受控識別、SQL Server 和 的 Web 應用程式 |
針對應用程式 + 資料 + 受控識別 + 監視部署 Azure 基礎結構的簡單範例 |
具有私人端點的 Web 應用程式 |
此範本可讓您建立 Web 應用程式,並透過私人端點加以公開 |
使用 VNet 插入和私人端點 Web 應用程式 |
此範本可讓您使用兩個 Web 應用程式、前端和後端建立安全端對端解決方案,前端會透過 VNet 插入和私人端點安全地取用後端 |
WebApp 取用 Azure SQL 私人端點 |
此範本示範如何建立 Web 應用程式,以取用指向 Azure SQL Server 的私人端點 |
在 App Service 上使用 MySQL 在 App 上 WordPress |
此範本會在應用程式中使用 MySQL 在 Windows App Service 上部署 WordPress Web 應用程式 |
Terraform (AzAPI 提供者) 資源定義
月臺資源類型可以使用目標作業來部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Web/sites 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Web/sites@2015-08-01"
name = "string"
kind = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
clientAffinityEnabled = bool
clientCertEnabled = bool
cloningInfo = {
appSettingsOverrides = {
{customized property} = "string"
}
cloneCustomHostNames = bool
cloneSourceControl = bool
configureLoadBalancing = bool
correlationId = "string"
hostingEnvironment = "string"
overwrite = bool
sourceWebAppId = "string"
trafficManagerProfileId = "string"
trafficManagerProfileName = "string"
}
containerSize = int
enabled = bool
gatewaySiteName = "string"
hostingEnvironmentProfile = {
id = "string"
name = "string"
type = "string"
}
hostNamesDisabled = bool
hostNameSslStates = [
{
name = "string"
sslState = "string"
thumbprint = "string"
toUpdate = bool
virtualIP = "string"
}
]
maxNumberOfWorkers = int
microService = "string"
name = "string"
scmSiteAlsoStopped = bool
serverFarmId = "string"
siteConfig = {
id = "string"
kind = "string"
location = "string"
name = "string"
properties = {
alwaysOn = bool
apiDefinition = {
url = "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
timeInterval = "string"
timeTaken = "string"
}
statusCodes = [
{
count = int
status = int
subStatus = int
timeInterval = "string"
win32Status = int
}
]
}
}
autoSwapSlotName = "string"
connectionStrings = [
{
connectionString = "string"
name = "string"
type = "string"
}
]
cors = {
allowedOrigins = [
"string"
]
}
defaultDocuments = [
"string"
]
detailedErrorLoggingEnabled = bool
documentRoot = "string"
experiments = {
rampUpRules = [
{
actionHostName = "string"
changeDecisionCallbackUrl = "string"
changeIntervalInMinutes = int
changeStep = int
maxReroutePercentage = int
minReroutePercentage = int
name = "string"
reroutePercentage = int
}
]
}
handlerMappings = [
{
arguments = "string"
extension = "string"
scriptProcessor = "string"
}
]
httpLoggingEnabled = bool
ipSecurityRestrictions = [
{
ipAddress = "string"
subnetMask = "string"
}
]
javaContainer = "string"
javaContainerVersion = "string"
javaVersion = "string"
limits = {
maxDiskSizeInMb = int
maxMemoryInMb = int
maxPercentageCpu = int
}
loadBalancing = "string"
localMySqlEnabled = bool
logsDirectorySizeLimit = int
managedPipelineMode = "string"
metadata = [
{
name = "string"
value = "string"
}
]
netFrameworkVersion = "string"
nodeVersion = "string"
numberOfWorkers = int
phpVersion = "string"
publishingPassword = "string"
publishingUsername = "string"
pythonVersion = "string"
remoteDebuggingEnabled = bool
remoteDebuggingVersion = "string"
requestTracingEnabled = bool
requestTracingExpirationTime = "string"
scmType = "string"
tracingOptions = "string"
use32BitWorkerProcess = bool
virtualApplications = [
{
physicalPath = "string"
preloadEnabled = bool
virtualDirectories = [
{
physicalPath = "string"
virtualPath = "string"
}
]
virtualPath = "string"
}
]
vnetName = "string"
webSocketsEnabled = bool
}
tags = {
{customized property} = "string"
}
type = "string"
}
}
})
}
屬性值
ApiDefinitionInfo
名字 | 描述 | 價值 |
---|---|---|
url | API 定義的 URL。 | 字串 |
AutoHealActions
名字 | 描述 | 價值 |
---|---|---|
actionType | ActionType - 要採取的預先定義動作 | 'CustomAction' 'LogEvent' '回收' (必要) |
customAction | CustomAction - 要採取的自定義動作 | AutoHealCustomAction |
minProcessExecutionTime | MinProcessExecutionTime - 進程必須執行的時間下限 採取動作之前 |
字串 |
AutoHealCustomAction
名字 | 描述 | 價值 |
---|---|---|
exe | 要執行的可執行檔 | 字串 |
參數 | 可執行文件的參數 | 字串 |
AutoHealRules
名字 | 描述 | 價值 |
---|---|---|
行動 | 動作 - 觸發規則時要執行的動作 | AutoHealActions |
觸發器 | 觸發程式 - 描述何時執行自動癒合動作的條件 | AutoHealTriggers |
AutoHealTriggers
名字 | 描述 | 價值 |
---|---|---|
privateBytesInKB | PrivateBytesInKB - 根據私用位元組定義規則 | int |
請求 | 要求 - 根據要求總數定義規則 | RequestsBasedTrigger |
slowRequests | SlowRequests - 根據要求運行時間定義規則 | SlowRequestsBasedTrigger |
statusCodes | StatusCodes - 根據狀態代碼定義規則 | StatusCodesBasedTrigger[] |
CloningInfo
名字 | 描述 | 價值 |
---|---|---|
appSettingsOverrides | 複製 Web 應用程式的應用程式設定會覆寫。 如果指定這些設定將會覆寫複製的設定 來自來源 Web 應用程式。 如果未指定,則會保留來源 Web 應用程式的應用程式設定。 |
CloningInfoAppSettingsOverrides |
cloneCustomHostNames | 如果為 true,請從來源 Web 應用程式複製自定義主機名 | bool |
cloneSourceControl | 從來源 Web 應用程式複製原始檔控制 | bool |
configureLoadBalancing | 如果指定設定來源和複製月臺的負載平衡 | bool |
correlationId | 複製作業的相互關聯標識碼。 此標識碼會系結多個複製作業 一起使用相同的快照集 |
字串 |
hostingEnvironment | 裝載環境 | 字串 |
改寫 | 覆寫目的地 Web 應用程式 | bool |
sourceWebAppId | 來源 Web 應用程式的 ARM 資源識別碼。 Web 應用程式資源識別碼的格式為 /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName} 用於生產位置和 /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slotName} |
字串 |
trafficManagerProfileId | 如果流量管理員配置檔存在,則會使用ARM資源識別碼。 流量管理員資源標識碼的格式為 /subscriptions/{subId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{profileName} |
字串 |
trafficManagerProfileName | 要建立的流量管理員配置檔名稱。 只有在流量管理員配置檔不存在時,才需要這麼做 | 字串 |
CloningInfoAppSettingsOverrides
名字 | 描述 | 價值 |
---|
ConnStringInfo
名字 | 描述 | 價值 |
---|---|---|
connectionString | 連接字串值 | 字串 |
名字 | 連接字串的名稱 | 字串 |
類型 | 資料庫類型 | 'Custom' 'MySql' 'SQLAzure' 'SQLServer' (必要) |
CorsSettings
名字 | 描述 | 價值 |
---|---|---|
allowedOrigins | 取得或設定應該允許建立跨原始來源的來源清單 呼叫 (例如:http://example.com:12345)。 使用 「*」 來允許所有專案。 |
string[] |
實驗
名字 | 描述 | 價值 |
---|---|---|
rampUpRules | {Microsoft.Web.Hosting.Administration.RampUpRule} 物件清單。 | RampUpRule[] |
HandlerMapping
名字 | 描述 | 價值 |
---|---|---|
參數 | 要傳遞至腳本處理器的命令行自變數。 | 字串 |
外延 | 使用此擴充功能的要求將會使用指定的 FastCGI 應用程式來處理。 | 字串 |
scriptProcessor | FastCGI 應用程式的絕對路徑。 | 字串 |
HostingEnvironmentProfile
名字 | 描述 | 價值 |
---|---|---|
id | hostingEnvironment 的資源標識符(App Service 環境) | 字串 |
名字 | hostingEnvironment (App Service Environment) 的名稱(只讀) | 字串 |
類型 | hostingEnvironment 的資源類型 (App Service 環境) (只讀) | 字串 |
HostNameSslState
名字 | 描述 | 價值 |
---|---|---|
名字 | 主機名 | 字串 |
sslState | SSL 類型 | 'Disabled' 'IpBasedEnabled' 'SniEnabled' (必要) |
指紋 | SSL 憑證指紋 | 字串 |
toUpdate | 設定此旗標以更新現有的主機名 | bool |
virtualIP | 如果已啟用IP型SSL,則指派給主機名的虛擬IP位址 | 字串 |
IpSecurityRestriction
名字 | 描述 | 價值 |
---|---|---|
ipAddress | 安全性限制有效的IP位址 | 字串 |
subnetMask | 限制的有效IP位址範圍的子網掩碼 | 字串 |
Microsoft.Web/sites
名字 | 描述 | 價值 |
---|---|---|
類 | 資源種類 | 字串 |
位置 | 資源位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 (必要) |
性能 | SiteProperties | |
標籤 | 資源標籤 | 標記名稱和值的字典。 |
類型 | 資源類型 | “Microsoft.Web/sites@2015-08-01” |
NameValuePair
名字 | 描述 | 價值 |
---|---|---|
名字 | 配對名稱 | 字串 |
價值 | 配對值 | 字串 |
RampUpRule
名字 | 描述 | 價值 |
---|---|---|
actionHostName | 如果決定要重新導向流量的位置主機名。 例如 mysite-stage.azurewebsites.net | 字串 |
changeDecisionCallbackUrl | 您可以在可指定 Url 的 TiPCallback 網站延伸模組中提供自訂決策演算法。 | 字串 |
changeIntervalInMinutes | [選擇性]指定以分鐘為單位重新評估 ReroutePercentage 的間隔 | int |
changeStep | [選擇性]在自動增加案例中,這是從 {Microsoft.Web.Hosting.Administration.RampUpRule.ReroutePercentage} 新增/移除的步驟,直到達到 {Microsoft.Web.Hosting.Administration.RampUpRule.MinReroutePercentage} 或 {Microsoft.Web.Hosting.Administration.RampUpRule.MaxReroutePercentage}。 網站計量會在 {Microsoft.Web.Hosting.Administration.RampUpRule.ChangeIntervalInMinutes} 中指定的每 N 分鐘檢查一次。 您可以在 TiPCallback 網站延伸模組中提供自定義決策演算法,您可以在 {Microsoft.Web.Hosting.Administration.RampUpRule.ChangeDecisionCallbackUrl} 中指定 Url |
int |
maxReroutePercentage | [選擇性]指定 ReroutePercentage 將保留的上限。 | int |
minReroutePercentage | [選擇性]指定上方的下限,讓 ReroutePercentage 維持不變。 | int |
名字 | 路由規則的名稱。 建議的名稱會指向將接收實驗中流量的位置。 | 字串 |
reroutePercentage | 將重新導向至 {Microsoft.Web.Hosting.Administration.RampUpRule.ActionHostName} 的流量百分比 | int |
RequestsBasedTrigger
名字 | 描述 | 價值 |
---|---|---|
計數 | 計數 | int |
timeInterval | TimeInterval | 字串 |
ResourceTags
名字 | 描述 | 價值 |
---|
ResourceTags
名字 | 描述 | 價值 |
---|
SiteConfig
名字 | 描述 | 價值 |
---|---|---|
id | 資源標識碼 | 字串 |
類 | 資源種類 | 字串 |
位置 | 資源位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 |
性能 | SiteConfigProperties | |
標籤 | 資源標籤 | ResourceTags |
類型 | 資源類型 | 字串 |
SiteConfigProperties
名字 | 描述 | 價值 |
---|---|---|
alwaysOn | AlwaysOn | bool |
apiDefinition | Web 應用程式正式 API 定義的相關信息。 | ApiDefinitionInfo |
appCommandLine | 要啟動的應用程式命令行 | 字串 |
appSettings | 應用程式設定 | NameValuePair[] |
autoHealEnabled | 已啟用自動癒合 | bool |
autoHealRules | 自動癒合規則 | AutoHealRules |
autoSwapSlotName | 自動交換位置名稱 | 字串 |
connectionStrings | 連接字串 | ConnStringInfo[] |
cors | 跨原始來源資源分享 (CORS) 設定。 | CorsSettings |
defaultDocuments | 默認檔 | string[] |
detailedErrorLoggingEnabled | 已啟用詳細的錯誤記錄 | bool |
documentRoot | 檔根目錄 | 字串 |
實驗 | 這適用於多型類型 | 實驗 |
handlerMappings | 處理程序對應 | HandlerMapping[] |
httpLoggingEnabled | 已啟用 HTTP 記錄 | bool |
ipSecurityRestrictions | Ip 安全性限制 | IpSecurityRestriction[] |
javaContainer | Java 容器 | 字串 |
javaContainerVersion | Java 容器版本 | 字串 |
javaVersion | Java 版本 | 字串 |
限制 | 網站限制 | SiteLimits |
負載平衡 | 網站負載平衡 | 'LeastRequests' 'LeastResponseTime' 'RequestHash' 'WeightedRoundRobin' 'WeightedTotalTraffic' |
localMySqlEnabled | 已啟用本機 mysql | bool |
logsDirectorySizeLimit | HTTP 記錄目錄大小限制 | int |
managedPipelineMode | 受控管線模式 | 'Classic' 'Integrated' |
元數據 | 網站元數據 | NameValuePair[] |
netFrameworkVersion | Net Framework 版本 | 字串 |
nodeVersion | 節點版本 | 字串 |
numberOfWorkers | 背景工作角色數目 | int |
phpVersion | PHP 版本 | 字串 |
publishingPassword | 發佈密碼 | 字串 |
publishingUsername | 發佈用戶名稱 | 字串 |
pythonVersion | Python 版本 | 字串 |
remoteDebuggingEnabled | 已啟用遠端偵錯 | bool |
remoteDebuggingVersion | 遠端偵錯版本 | 字串 |
requestTracingEnabled | 啟用要求追蹤 | bool |
requestTracingExpirationTime | 要求追蹤到期時間 | 字串 |
scmType | SCM 類型 | 字串 |
tracingOptions | 追蹤選項 | 字串 |
use32BitWorkerProcess | 使用32位背景工作進程 | bool |
virtualApplications | 虛擬應用程式 | VirtualApplication[] |
vnetName | Vnet 名稱 | 字串 |
webSocketsEnabled | 已啟用 Web 套接字。 | bool |
SiteLimits
名字 | 描述 | 價值 |
---|---|---|
maxDiskSizeInMb | MB 允許的磁碟大小使用量上限 | int |
maxMemoryInMb | MB 中允許的記憶體使用量上限 | int |
maxPercentageCpu | 允許的CPU使用量百分比上限 | int |
SiteProperties
名字 | 描述 | 價值 |
---|---|---|
clientAffinityEnabled | 指定在負載平衡 Web 應用程式多個實例的 HTTP 要求時,是否啟用用戶端親和性 | bool |
clientCertEnabled | 指定是否為 Web 應用程式啟用客戶端憑證 | bool |
cloningInfo | 這隻適用於 Web 應用程式建立。 如果指定,則會從複製 Web 應用程式 來源 Web 應用程式 |
複製Info |
containerSize | 函式容器的大小 | int |
啟用 | 如果已啟用網站,則為 True;否則為 false。 將此值設定為 false 會停用月臺(關閉月台離線)。 | bool |
gatewaySiteName | 與 Web 應用程式相關聯的閘道應用程式名稱 | 字串 |
hostingEnvironmentProfile | 用於 Web 應用程式的裝載環境規格 (App Service 環境) | HostingEnvironmentProfile |
hostNamesDisabled | 指定公用主機名是否停用 Web 應用程式。 如果設定為 true,則應用程式只能透過 API 管理程式存取 |
bool |
hostNameSslStates | 主機名 SSL 狀態可用來管理月臺主機名的 SSL 系結。 | HostNameSslState[] |
maxNumberOfWorkers | 背景工作角色數目上限 這隻適用於函式容器 |
int |
microService | 字串 | |
名字 | Web 應用程式的名稱 | 字串 |
scmSiteAlsoStopped | 如果 set 指出是否在 Web 應用程式停止時停止 SCM (KUDU) 網站。 默認值為 false。 | bool |
serverFarmId | 字串 | |
siteConfig | 設定 Web 應用程式 | SiteConfig |
SlowRequestsBasedTrigger
名字 | 描述 | 價值 |
---|---|---|
計數 | 計數 | int |
timeInterval | TimeInterval | 字串 |
timeTaken | TimeTaken | 字串 |
StatusCodesBasedTrigger
名字 | 描述 | 價值 |
---|---|---|
計數 | 計數 | int |
地位 | HTTP 狀態代碼 | int |
subStatus | SubStatus | int |
timeInterval | TimeInterval | 字串 |
win32Status | Win32 錯誤碼 | int |
VirtualApplication
名字 | 描述 | 價值 |
---|---|---|
physicalPath | 字串 | |
preloadEnabled | bool | |
virtualDirectories | VirtualDirectory[] | |
virtualPath | 字串 |
VirtualDirectory
名字 | 描述 | 價值 |
---|---|---|
physicalPath | 字串 | |
virtualPath | 字串 |
使用範例
Azure 已驗證的模組
下列 Azure 驗證模組 可用來部署此資源類型。
模組 | 描述 |
---|---|
Web/函式應用程式 | Web/函式應用程式的AVM資源模組 |