Bicep 資源定義
月臺/位置/設定資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
使用範例
Bicep 範例
部署 App Service 位置虛擬網路關聯的基本範例。
param resourceName string = 'acctest0001'
param location string = 'westeurope'
resource serverfarm 'Microsoft.Web/serverfarms@2022-09-01' = {
name: resourceName
location: location
sku: {
name: 'S1'
}
properties: {
hyperV: false
perSiteScaling: false
reserved: false
zoneRedundant: false
}
}
resource site 'Microsoft.Web/sites@2022-09-01' = {
name: resourceName
location: location
properties: {
clientAffinityEnabled: false
clientCertEnabled: false
clientCertMode: 'Required'
enabled: true
httpsOnly: false
publicNetworkAccess: 'Enabled'
serverFarmId: serverfarm.id
siteConfig: {
acrUseManagedIdentityCreds: false
alwaysOn: true
autoHealEnabled: false
ftpsState: 'Disabled'
http20Enabled: false
loadBalancing: 'LeastRequests'
localMySqlEnabled: false
managedPipelineMode: 'Integrated'
minTlsVersion: '1.2'
publicNetworkAccess: 'Enabled'
remoteDebuggingEnabled: false
scmIpSecurityRestrictionsUseMain: false
scmMinTlsVersion: '1.2'
use32BitWorkerProcess: true
vnetRouteAllEnabled: false
webSocketsEnabled: false
windowsFxVersion: ''
}
vnetRouteAllEnabled: false
}
}
resource slot 'Microsoft.Web/sites/slots@2022-09-01' = {
name: resourceName
location: location
parent: site
properties: {
clientAffinityEnabled: false
clientCertEnabled: false
clientCertExclusionPaths: ''
clientCertMode: 'Required'
enabled: true
httpsOnly: false
publicNetworkAccess: 'Enabled'
serverFarmId: serverfarm.id
siteConfig: {
acrUseManagedIdentityCreds: false
alwaysOn: true
autoHealEnabled: false
ftpsState: 'Disabled'
http20Enabled: false
loadBalancing: 'LeastRequests'
localMySqlEnabled: false
managedPipelineMode: 'Integrated'
minTlsVersion: '1.2'
publicNetworkAccess: 'Enabled'
remoteDebuggingEnabled: false
scmIpSecurityRestrictionsUseMain: false
scmMinTlsVersion: '1.2'
use32BitWorkerProcess: false
vnetRouteAllEnabled: false
webSocketsEnabled: false
windowsFxVersion: ''
}
vnetRouteAllEnabled: false
}
}
resource config 'Microsoft.Web/sites/slots/config@2022-09-01' = {
name: 'azurestorageaccounts'
parent: slot
properties: {}
}
Azure 已驗證的模組
下列 Azure 驗證模組 可用來部署此資源類型。
| Module | 描述 |
|---|---|
| 網頁/功能應用程式 - 插槽 - 設定 | AVM 網頁/功能應用程式子模組 - 插槽 - 設定 |
資源格式
若要建立 Microsoft.Web/sites/slots/config 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.Web/sites/slots/config@2016-08-01' = {
name: 'string'
// For remaining properties, see microsoft.web/sites/slots/config objects
}
microsoft.web/sites/slots/config 物件
設定 名稱 屬性,以指定物件的類型。
針對 appsettings,請使用:
{
kind: 'string'
name: 'appsettings'
properties: {
{customized property}: 'string'
}
}
針對 authsettings,請使用:
{
kind: 'string'
name: 'authsettings'
properties: {
additionalLoginParams: [
'string'
]
allowedAudiences: [
'string'
]
allowedExternalRedirectUrls: [
'string'
]
clientId: 'string'
clientSecret: 'string'
defaultProvider: 'string'
enabled: bool
facebookAppId: 'string'
facebookAppSecret: 'string'
facebookOAuthScopes: [
'string'
]
googleClientId: 'string'
googleClientSecret: 'string'
googleOAuthScopes: [
'string'
]
issuer: 'string'
microsoftAccountClientId: 'string'
microsoftAccountClientSecret: 'string'
microsoftAccountOAuthScopes: [
'string'
]
runtimeVersion: 'string'
tokenRefreshExtensionHours: int
tokenStoreEnabled: bool
twitterConsumerKey: 'string'
twitterConsumerSecret: 'string'
unauthenticatedClientAction: 'string'
}
}
針對 備份,請使用:
{
kind: 'string'
name: 'backup'
properties: {
backupSchedule: {
frequencyInterval: int
frequencyUnit: 'string'
keepAtLeastOneBackup: bool
retentionPeriodInDays: int
startTime: 'string'
}
databases: [
{
connectionString: 'string'
connectionStringName: 'string'
databaseType: 'string'
name: 'string'
}
]
enabled: bool
name: 'string'
storageAccountUrl: 'string'
type: 'string'
}
}
針對 connectionstrings,請使用:
{
kind: 'string'
name: 'connectionstrings'
properties: {
{customized property}: {
type: 'string'
value: 'string'
}
}
}
針對 記錄,請使用:
{
kind: 'string'
name: 'logs'
properties: {
applicationLogs: {
azureBlobStorage: {
level: 'string'
retentionInDays: int
sasUrl: 'string'
}
azureTableStorage: {
level: 'string'
sasUrl: 'string'
}
fileSystem: {
level: 'string'
}
}
detailedErrorMessages: {
enabled: bool
}
failedRequestsTracing: {
enabled: bool
}
httpLogs: {
azureBlobStorage: {
enabled: bool
retentionInDays: int
sasUrl: 'string'
}
fileSystem: {
enabled: bool
retentionInDays: int
retentionInMb: int
}
}
}
}
針對 元數據,請使用:
{
kind: 'string'
name: 'metadata'
properties: {
{customized property}: 'string'
}
}
針對 pushsettings,請使用:
{
kind: 'string'
name: 'pushsettings'
properties: {
dynamicTagsJson: 'string'
isPushEnabled: bool
tagsRequiringAuth: 'string'
tagWhitelistJson: 'string'
}
}
針對 Web,請使用:
{
kind: 'string'
name: 'web'
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'
}
]
http20Enabled: bool
httpLoggingEnabled: bool
ipSecurityRestrictions: [
{
ipAddress: 'string'
subnetMask: 'string'
}
]
javaContainer: 'string'
javaContainerVersion: 'string'
javaVersion: 'string'
limits: {
maxDiskSizeInMb: int
maxMemoryInMb: int
maxPercentageCpu: int
}
linuxFxVersion: 'string'
loadBalancing: 'string'
localMySqlEnabled: bool
logsDirectorySizeLimit: int
managedPipelineMode: 'string'
minTlsVersion: 'string'
netFrameworkVersion: 'string'
nodeVersion: 'string'
numberOfWorkers: int
phpVersion: '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'
scmType: 'string'
tracingOptions: 'string'
use32BitWorkerProcess: bool
virtualApplications: [
{
physicalPath: 'string'
preloadEnabled: bool
virtualDirectories: [
{
physicalPath: 'string'
virtualPath: 'string'
}
]
virtualPath: 'string'
}
]
vnetName: 'string'
webSocketsEnabled: bool
}
}
屬性值
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'appsettings' (必要) |
| 父代 | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型的資源符號名稱:月臺/位置 |
| 性能 | 設置。 | StringDictionaryProperties |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'authsettings' (必要) |
| 父代 | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型的資源符號名稱:月臺/位置 |
| 性能 | SiteAuthSettings 資源特定屬性 | SiteAuthSettingsProperties |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'backup' (必要) |
| 父代 | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型的資源符號名稱:月臺/位置 |
| 性能 | BackupRequest 資源特定屬性 | BackupRequestProperties |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'connectionstrings' (必要) |
| 父代 | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型的資源符號名稱:月臺/位置 |
| 性能 | 連接字串。 | ConnectionStringDictionary屬性 |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'logs' (必要) |
| 父代 | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型的資源符號名稱:月臺/位置 |
| 性能 | SiteLogsConfig 資源特定屬性 | SiteLogsConfigProperties |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'metadata' (必要) |
| 父代 | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型的資源符號名稱:月臺/位置 |
| 性能 | 設置。 | StringDictionaryProperties |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'pushsettings' (必要) |
| 父代 | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型的資源符號名稱:月臺/位置 |
| 性能 | PushSettings 資源特定屬性 | PushSettingsProperties |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'web' (必要) |
| 父代 | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型的資源符號名稱:月臺/位置 |
| 性能 | 核心資源屬性 | 網站配置 |
ApiDefinitionInfo
| 名字 | 描述 | 價值 |
|---|---|---|
| URL | API 定義的 URL。 | 字串 |
應用程式記錄配置
| 名字 | 描述 | 價值 |
|---|---|---|
| azureBlobStorage | 應用程式記錄至 Blob 記憶體組態。 | AzureBlobStorageApplicationLogsConfig |
| azureTableStorage | 應用程式記錄至 azure 資料表記憶體組態。 | AzureTableStorageApplicationLogsConfig |
| 檔案系統 | 應用程式記錄至檔案系統組態。 | FileSystemApplicationLogsConfig |
AutoHealActions 自動修復作
| 名字 | 描述 | 價值 |
|---|---|---|
| 動作類型 | 要採取的預先定義動作。 | 'CustomAction' “LogEvent” '回收' |
| 自訂作 | 要採取的自定義動作。 | AutohealCustomAction 自動修復 |
| minProcessExecutionTime (最小進程執行時間) | 進程必須執行的時間下限 採取動作之前 |
字串 |
AutohealCustomAction 自動修復
| 名字 | 描述 | 價值 |
|---|---|---|
| Exe | 要執行的可執行檔。 | 字串 |
| 參數 | 可執行文件的參數。 | 字串 |
AutoHealRules 自動修復規則
| 名字 | 描述 | 價值 |
|---|---|---|
| 行動 | 觸發規則時要執行的動作。 | AutoHealActions 自動修復作 |
| 觸發器 | 描述何時執行自動癒合動作的條件。 | AutoHealTriggers 自動修復觸發器 |
AutoHealTriggers 自動修復觸發器
| 名字 | 描述 | 價值 |
|---|---|---|
| privateBytesInKB | 以私用位元組為基礎的規則。 | 整數 (int) |
| 請求 | 以要求總數為基礎的規則。 | RequestsBasedTrigger 觸發器 |
| slowRequests 請求 | 根據要求運行時間的規則。 | SlowRequestsBasedTrigger 觸發器 |
| statusCodes | 以狀態代碼為基礎的規則。 | StatusCodesBasedTrigger[] |
AzureBlobStorageApplicationLogsConfig
| 名字 | 描述 | 價值 |
|---|---|---|
| 水平儀 | 記錄層級。 | “錯誤” “資訊” “關閉” “冗長” “警告” |
| 保留天數 | 保留天數。 拿掉早於 X 天的 Blob。 0 或更低表示沒有保留。 |
整數 (int) |
| sasUrl 的 | 具有讀取/寫入/清單/刪除許可權的 Azure Blob 容器 SAS URL。 | 字串 |
AzureBlobStorageHttpLogsConfig
| 名字 | 描述 | 價值 |
|---|---|---|
| 啟用 | 如果已啟用組態,則為 True;如果停用則為 false;如果未設定組態則為 null。 | 布爾 (bool) |
| 保留天數 | 保留天數。 拿掉早於 X 天的 Blob。 0 或更低表示沒有保留。 |
整數 (int) |
| sasUrl 的 | 具有讀取/寫入/清單/刪除許可權的 Azure Blob 容器 SAS URL。 | 字串 |
AzureTableStorageApplicationLogsConfig
| 名字 | 描述 | 價值 |
|---|---|---|
| 水平儀 | 記錄層級。 | “錯誤” “資訊” “關閉” “冗長” “警告” |
| sasUrl 的 | 具有新增/查詢/刪除許可權的 Azure 資料表 SAS URL。 | 字串 (必要) |
BackupRequestProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| backupSchedule | 定期執行備份時排程備份。 | 備份計劃 |
| 資料庫 | 備份中包含的資料庫。 | DatabaseBackupSetting[] |
| 啟用 | True 是表示 如果備份排程已啟用 (必須包含在該案例中),則為 false,如果應該停用備份排程則為 false。 | 布爾 (bool) |
| 名字 | 備份的名稱。 | 字串 (必要) |
| storageAccountUrl 的 | 容器的SAS URL。 | 字串 (必要) |
| 型別 | 備份的類型。 | “克隆” 預設 '重新配置' “快照” |
備份計劃
| 名字 | 描述 | 價值 |
|---|---|---|
| 頻率間隔 | 應該執行備份的頻率(例如,針對每周備份,這應該設定為 7,FrequencyUnit 應該設定為 Day) | int (必要) |
| 頻率單位 | 應該執行備份頻率的時間單位(例如,針對每周備份,這應該設定為 Day,FrequencyInterval 應該設定為 7) | “日” 'Hour' (必要) |
| keepAtLeastOneBackup | 如果保留原則應該一律在記憶體帳戶中保留至少一個備份,則為 True,無論其年齡為何;否則為 false。 | 布林 (必要) |
| retentionPeriodInDays (保留期以天為單位) | 應該刪除多少天備份之後。 | int (必要) |
| 開始時間 | 排程應該開始運作的時間。 | 字串 |
ConnectionStringDictionary屬性
| 名字 | 描述 | 價值 |
|---|
ConnStringInfo
| 名字 | 描述 | 價值 |
|---|---|---|
| Connection String (連接字串) | 連接字串值。 | 字串 |
| 名字 | 連接字串的名稱。 | 字串 |
| 型別 | 資料庫的類型。 | 'ApiHub' “自定義” 'DocDb' “EventHub” 'MySql' 'NotificationHub' 'PostgreSQL' “RedisCache” “ServiceBus” 'SQLAzure' 'SQLServer' |
ConnStringValueTypePair
| 名字 | 描述 | 價值 |
|---|---|---|
| 型別 | 資料庫的類型。 | 'ApiHub' “自定義” 'DocDb' “EventHub” 'MySql' 'NotificationHub' 'PostgreSQL' “RedisCache” “ServiceBus” 'SQLAzure' 'SQLServer' (必要) |
| 價值 | 配對的值。 | 字串 (必要) |
CorsSettings
| 名字 | 描述 | 價值 |
|---|---|---|
| allowedOrigins 的 | 取得或設定應該允許建立跨原始來源的來源清單 呼叫 (例如: http://example.com:12345)。 使用 「*」 來允許所有專案。 |
字串[] |
DatabaseBackupSetting 資料庫備份設置
| 名字 | 描述 | 價值 |
|---|---|---|
| Connection String (連接字串) | 包含要備份或還原之資料庫的連接字串。 如果還原應該發生在新的資料庫,內部的資料庫名稱就是新的資料庫名稱。 | 字串 |
| connectionStringName | 包含連結到 SiteConfig.ConnectionStrings 的連接字串名稱。 這會在還原期間使用覆寫連接字串選項。 |
字串 |
| 資料庫類型 | 資料庫類型 (例如 SqlAzure / MySql)。 | 'LocalMySql' 'MySql' 'PostgreSql' 'SqlAzure' (必要) |
| 名字 | 字串 |
啟用配置
| 名字 | 描述 | 價值 |
|---|---|---|
| 啟用 | 如果已啟用組態,則為 True;如果停用則為 false;如果未設定組態則為 null。 | 布爾 (bool) |
實驗
| 名字 | 描述 | 價值 |
|---|---|---|
| rampUp規則 | 遞增規則的清單。 | RampUpRule[] |
FileSystemApplicationLogsConfig
| 名字 | 描述 | 價值 |
|---|---|---|
| 水平儀 | 記錄層級。 | “錯誤” “資訊” “關閉” “冗長” “警告” |
FileSystemHttpLogsConfig 檔
| 名字 | 描述 | 價值 |
|---|---|---|
| 啟用 | 如果已啟用組態,則為 True;如果停用則為 false;如果未設定組態則為 null。 | 布爾 (bool) |
| 保留天數 | 保留天數。 拿掉超過 X 天的檔案。 0 或更低表示沒有保留。 |
整數 (int) |
| 保留(以 Mb 為單位) | HTTP 記錄檔可以使用的大小上限,以 MB 為單位。 到達舊的記錄檔時,將會移除,以為新的記錄檔提供空間。 值的範圍可以介於 25 到 100 之間。 |
int 約束: 最小值 = 25 最大值 = 100 |
HandlerMapping
| 名字 | 描述 | 價值 |
|---|---|---|
| 參數 | 要傳遞至腳本處理器的命令行自變數。 | 字串 |
| 副檔名 | 使用此擴充功能的要求將會使用指定的 FastCGI 應用程式來處理。 | 字串 |
| scriptProcessor | FastCGI 應用程式的絕對路徑。 | 字串 |
HttpLogsConfig
| 名字 | 描述 | 價值 |
|---|---|---|
| azureBlobStorage | Http 記錄至 Azure Blob 記憶體組態。 | AzureBlobStorageHttpLogsConfig |
| 檔案系統 | Http 記錄至檔案系統組態。 | FileSystemHttpLogsConfig 檔 |
IpSecurityRestriction
| 名字 | 描述 | 價值 |
|---|---|---|
| IP位址 | 安全性限制的有效IP位址。 | 字串 (必要) |
| 子網掩碼 | 限制的有效IP位址範圍的子網掩碼。 | 字串 |
microsoft.web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| 名字 | 針對 type Microsoft.Web/sites/slots/config設定為 'appsettings'。針對類型 Microsoft.Web/sites/slots/config 設定為 'authsettings',。針對類型 Microsoft.Web/sites/slots/config設定為 'backup'。針對類型 Microsoft.Web/sites/slots/config 設定為 'connectionstrings',。針對類型 Microsoft.Web/sites/slots/config設定為 'logs'。針對類型 Microsoft.Web/sites/slots/config設定為 'metadata'。將 類型設定為 'pushsettings',Microsoft.Web/sites/slots/config。針對類型 Microsoft.Web/sites/slots/config設定為 'web'。 | '應用程式設置' 'authsettings' '備份' 'connectionstrings' '日誌' '元數據' 'pushsettings' 'web' (必要) |
NameValuePair
| 名字 | 描述 | 價值 |
|---|---|---|
| 名字 | 配對名稱。 | 字串 |
| 價值 | 配對值。 | 字串 |
PushSettings 設置
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | 資源種類。 | 字串 |
| 性能 | PushSettings 資源特定屬性 | PushSettingsProperties |
PushSettingsProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 動態標籤Json | 取得或設定 JSON 字串,其中包含將從推送註冊端點中的使用者宣告評估的動態標籤清單。 | 字串 |
| isPush已啟用 | 取得或設定旗標,指出是否啟用推送端點。 | 布林 (必要) |
| tagsRequiringAuth | 取得或設定 JSON 字串,其中包含要求使用者驗證用於推送註冊端點的標籤清單。 標記可以包含英數位元和下列專案: '_', '@', '#', '.', ':', '-'. 驗證應該在 PushRequestHandler 上執行。 |
字串 |
| tagWhitelistJson | 取得或設定 JSON 字串,其中包含允許清單中可供推送註冊端點使用的標籤清單。 | 字串 |
RampUpRule
| 名字 | 描述 | 價值 |
|---|---|---|
| actionHostName (作主機名稱) | 如果決定要重新導向流量的位置主機名。 例如 myapp-stage.azurewebsites.net。 | 字串 |
| 更改決定回調網址 | 您可以在可指定 URL 的 TiPCallback 網站延伸模組中提供自訂決策演算法。 | 字串 |
| 更改間隔以分鐘為單位 | 指定以分鐘為單位重新評估 ReroutePercentage 的間隔。 | 整數 (int) |
| changeStep | 在自動增加案例中,這是從 <程式代碼新增/移除的步驟,>ReroutePercentage</code>,直到到達為止 <程式代碼>MinReroutePercentage</code> 或 <程式代碼>MaxReroutePercentage</code>。 網站計量會每隔 N <分鐘檢查一次,>ChangeIntervalInMinutes</code>中指定的程式代碼。 您可以在 TiPCallback 網站延伸模組中提供自定義決策演算法,您可以在 ChangeDecisionCallbackUrl <>ChangeDecisionCallbackUrl</code>中指定 URL。 |
整數 (int) |
| maxReroutePercentage | 指定 ReroutePercentage 將保留的上限。 | 整數 (int) |
| minReroutePercentage | 指定上方的下限,讓 ReroutePercentage 維持不變。 | 整數 (int) |
| 名字 | 路由規則的名稱。 建議的名稱會指向將接收實驗中流量的位置。 | 字串 |
| reroutePercentage | 將重新導向至 <程式代碼的流量百分比,>ActionHostName</code>。 | 整數 (int) |
RequestsBasedTrigger 觸發器
| 名字 | 描述 | 價值 |
|---|---|---|
| 計數 | 要求計數。 | 整數 (int) |
| timeInterval 時間 | 時間間隔。 | 字串 |
SiteAuthSettingsProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| additionalLoginParams | 登入參數,以在何時傳送至 OpenID Connect 授權端點 使用者登入。 每個參數的格式都必須是 「key=value」。。 |
字串[] |
| allowedAudiences | 允許的物件值在驗證 所發出的 JWT 時考慮 Azure Active Directory。 請注意,<程式代碼>ClientID</code> 值一律視為 允許的物件,不論此設定為何。 |
字串[] |
| allowedExternalRedirectUrls | 可在登入或註銷應用程式時重新導向至 的外部URL。 請注意,會忽略 URL 的查詢字串部分。 這是 Windows 市集應用程式後端通常需要的進階設定。 請注意,目前網域內的URL一律是隱含允許的。 |
字串[] |
| 用戶端ID | 此信賴憑證者應用程式的用戶端標識碼,稱為client_id。 若要使用 Azure Active Directory 啟用 OpenID 連線驗證,則需要此設定或 其他第三方 OpenID Connect 提供者。 OpenID Connect 的詳細資訊:http://openid.net/specs/openid-connect-core-1_0.html |
字串 |
| 用戶端密鑰 | 此信賴憑證者應用程式的客戶端密碼(在 Azure Active Directory 中,也稱為密鑰)。 此設定是選擇性的。 如果未設定任何客戶端密碼,則會使用 OpenID Connect 隱含驗證流程來驗證終端使用者。 否則,OpenID Connect 授權碼流程會用來驗證使用者。 OpenID Connect 的詳細資訊:http://openid.net/specs/openid-connect-core-1_0.html |
字串 |
| defaultProvider | 設定多個提供者時要使用的預設驗證提供者。 只有在已設定多個提供者和未經驗證的用戶端時,才需要此設定 action 設定為 「RedirectToLoginPage」。。 |
“AzureActiveDirectory” “臉書” '谷歌' “MicrosoftAccount” '推特' |
| 啟用 | 如果目前應用程式已啟用驗證/授權功能,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| facebookAppId | 用於登入的 Facebook 應用程式的應用程式識別碼。 啟用Facebook登入需要此設定。 Facebook 登入檔:https://developers.facebook.com/docs/facebook-login |
字串 |
| facebookAppSecret | 用於 Facebook 登入之 Facebook 應用程式的應用程式秘密。 啟用Facebook登入需要此設定。 Facebook 登入檔:https://developers.facebook.com/docs/facebook-login |
字串 |
| facebookOAuth範圍 | 將作為Facebook登入驗證一部分要求的OAuth 2.0範圍。 此設定是選擇性的。 Facebook 登入檔:https://developers.facebook.com/docs/facebook-login |
字串[] |
| googleClientId | Google Web 應用程式的 OpenID Connect 用戶端識別碼。 啟用Google登入需要此設定。 Google Sign-In 檔:https://developers.google.com/identity/sign-in/web/ |
字串 |
| googleClientSecret | 與Google Web 應用程式相關聯的客戶端密碼。 啟用Google登入需要此設定。 Google Sign-In 檔:https://developers.google.com/identity/sign-in/web/ |
字串 |
| googleOAuth範圍 | 將作為Google Sign-In 驗證一部分要求的OAuth 2.0範圍。 此設定是選擇性的。 如果未指定,則會使用 「openid」、“profile」 和 「email」 作為預設範圍。 Google Sign-In 檔:https://developers.google.com/identity/sign-in/web/ |
字串[] |
| 簽發者 | OpenID Connect 簽發者 URI,代表發出此應用程式存取令牌的實體。 使用 Azure Active Directory 時,此值是目錄租使用者的 URI,例如 https://sts.windows.net/{tenant-guid}/。此 URI 是令牌簽發者的區分大小寫標識碼。 OpenID Connect Discovery 的詳細資訊:http://openid.net/specs/openid-connect-discovery-1_0.html |
字串 |
| microsoftAccountClientId | 針對用於驗證的應用程式所建立的 OAuth 2.0 用戶端識別碼。 啟用Microsoft帳戶驗證需要此設定。 Microsoft帳戶 OAuth 檔:https://dev.onedrive.com/auth/msa_oauth.htm |
字串 |
| microsoftAccountClientSecret | 針對用於驗證的應用程式所建立的 OAuth 2.0 客戶端密碼。 啟用Microsoft帳戶驗證需要此設定。 Microsoft帳戶 OAuth 檔:https://dev.onedrive.com/auth/msa_oauth.htm |
字串 |
| microsoftAccountOAuth範圍 | 將在帳戶驗證Microsoft一部分要求的 OAuth 2.0 範圍。 此設定是選擇性的。 如果未指定,則會使用 「wl.basic」 作為預設範圍。 Microsoft帳戶範圍和許可權檔:https://msdn.microsoft.com/en-us/library/dn631845.aspx |
字串[] |
| runtimeVersion (運行時版本) | 用於目前應用程式的驗證/授權功能的 RuntimeVersion。 此值中的設定可以控制驗證/授權模組中特定功能的行為。 |
字串 |
| tokenRefreshExtension小時 | 會話令牌到期后的時數,會話令牌可用來 呼叫令牌重新整理 API。 預設值為72小時。 |
整數 (int) |
| tokenStore已啟用 |
<程式代碼>true</code>,以永久儲存登入流程期間取得的平臺特定安全性令牌;否則,<程式代碼>false</code>。 預設值為 <程式代碼,>false</code>。 |
布爾 (bool) |
| twitterConsumerKey | 用於登入之 Twitter 應用程式的 OAuth 1.0a 取用者密鑰。 啟用 Twitter 登入需要此設定。 Twitter Sign-In 檔:https://dev.twitter.com/web/sign-in |
字串 |
| 推特消費者秘密 | 用於登入之 Twitter 應用程式的 OAuth 1.0a 取用者秘密。 啟用 Twitter 登入需要此設定。 Twitter Sign-In 檔:https://dev.twitter.com/web/sign-in |
字串 |
| unauthenticatedClientAction | 當未經驗證的客戶端嘗試存取應用程式時要採取的動作。 | '允許匿名' 'RedirectToLoginPage' |
網站配置
| 名字 | 描述 | 價值 |
|---|---|---|
| 永遠在線 | 如果已啟用 Always On,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| api定義 | 應用程式正式 API 定義的相關信息。 | ApiDefinitionInfo |
| app命令行 | 要啟動的應用程式命令行。 | 字串 |
| appSettings | 應用程式設定。 | NameValuePair[] |
| autoHealEnabled 已啟用 | 如果啟用自動癒合,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| autoHealRules 自動修復規則 | 自動治癒規則。 | AutoHealRules 自動修復規則 |
| autoSwapSlotName (自動交換槽名稱) | 自動交換位置名稱。 | 字串 |
| connectionStrings 連接字串 | 連接字串。 | ConnStringInfo[] |
| 跨來源資源共享 (CORS) | 跨原始來源資源分享 (CORS) 設定。 | CorsSettings |
| defaultDocuments 文檔 | 默認檔。 | 字串[] |
| detailedErrorLogging已啟用 | 如果啟用詳細的錯誤記錄,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| documentRoot | 檔根目錄。 | 字串 |
| 實驗 | 這適用於多型類型。 | 實驗 |
| handlerMappings | 處理程序對應。 | HandlerMapping[] |
| HTTP20已啟用 | Http20Enabled:設定網站以允許用戶端透過 HTTP2.0 連線 | 布爾 (bool) |
| HTTPLogging已啟用 | 如果啟用 HTTP 記錄,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| ipSecurity限制 | IP 安全性限制。 | IpSecurityRestriction[] |
| java容器 | Java 容器。 | 字串 |
| javaContainerVersion | Java 容器版本。 | 字串 |
| java版本 | Java 版本。 | 字串 |
| 限制 | 網站限制。 | 網站限制 |
| linuxFx版本 | Linux 應用程式架構和版本 | 字串 |
| 負載平衡 | 網站負載平衡。 | '最少請求' '最小回應時間' '請求哈希' 'WeightedRoundRobin' '加權總流量' |
| localMySql已啟用 | <程式代碼>true</code> 啟用本機 MySQL;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| logsDirectorySizeLimit | HTTP 記錄目錄大小限制。 | 整數 (int) |
| managedPipelineMode | 受控管線模式。 | “經典” “集成” |
| minTlsVersion (最小版本 | MinTlsVersion:設定 SSL 要求所需的最低 TLS 版本 | '1.0' '1.1' '1.2' |
| netFrameworkVersion | .NET Framework 版本。 | 字串 |
| nodeVersion | Node.js的版本。 | 字串 |
| 工人數 | 背景工作角色數目。 | 整數 (int) |
| php版本 | PHP 版本。 | 字串 |
| publishing使用者名 | 發佈用戶名稱。 | 字串 |
| 推送 | 推送端點設定。 | PushSettings 設置 |
| python版本 | Python 版本。 | 字串 |
| remoteDebugging已啟用 | 如果啟用遠端偵錯,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| remoteDebuggingVersion (遠端調試版本) | 遠端偵錯版本。 | 字串 |
| requestTracing已啟用 | 如果啟用要求追蹤,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| 請求TracingExpirationTime | 要求追蹤到期時間。 | 字串 |
| scm類型 | SCM 類型。 | 'BitbucketGit' 'BitbucketHg' 'CodePlexGit' “CodePlexHg” 'Dropbox' '外部 Git' '外部汞' “GitHub” '本地 Git' “無” “OneDrive” 'Tfs' 'VSO' |
| tracing選項 | 追蹤選項。 | 字串 |
| use32BitWorker進程 | <程式代碼>true</code> 使用 32 位背景工作進程;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| 虛擬應用程式 | 虛擬應用程式。 | VirtualApplication[] |
| vnet名稱 | 虛擬網路名稱。 | 字串 |
| webSockets已啟用 | 如果已啟用 WebSocket,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
網站限制
| 名字 | 描述 | 價值 |
|---|---|---|
| 最大磁碟大小(以 Mb 為單位) | 允許的磁碟大小使用量上限,以 MB 為單位。 | 整數 (int) |
| 最大記憶體 | MB 允許的記憶體使用量上限。 | 整數 (int) |
| maxPercentageCpu | 允許的CPU使用量百分比上限。 | 整數 (int) |
SiteLogsConfigProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 應用程式記錄 | 應用程式記錄設定。 | 應用程式記錄配置 |
| detailedErrorMessages | 詳細的錯誤訊息組態。 | 啟用配置 |
| failedRequestsTracing 請求 | 失敗的要求追蹤組態。 | 啟用配置 |
| HTTP日誌 | HTTP 記錄組態。 | HttpLogsConfig |
SlowRequestsBasedTrigger 觸發器
| 名字 | 描述 | 價值 |
|---|---|---|
| 計數 | 要求計數。 | 整數 (int) |
| timeInterval 時間 | 時間間隔。 | 字串 |
| 花費時間 | 所花費的時間。 | 字串 |
StatusCodesBased觸發器
| 名字 | 描述 | 價值 |
|---|---|---|
| 計數 | 要求計數。 | 整數 (int) |
| 狀態 | HTTP 狀態代碼。 | 整數 (int) |
| 子狀態 | 要求子狀態。 | 整數 (int) |
| timeInterval 時間 | 時間間隔。 | 字串 |
| win32狀態 | Win32 錯誤碼。 | 整數 (int) |
StringDictionaryProperties
| 名字 | 描述 | 價值 |
|---|
StringDictionaryProperties
| 名字 | 描述 | 價值 |
|---|
虛擬應用程式
| 名字 | 描述 | 價值 |
|---|---|---|
| 物理路徑 | 實體路徑。 | 字串 |
| preload已啟用 | 如果啟用預先載入,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| 虛擬目錄 | 虛擬應用程式的虛擬目錄。 | VirtualDirectory [] |
| 虛擬路徑 | 虛擬路徑。 | 字串 |
虛擬目錄
| 名字 | 描述 | 價值 |
|---|---|---|
| 物理路徑 | 實體路徑。 | 字串 |
| 虛擬路徑 | 虛擬應用程式的路徑。 | 字串 |
ARM 樣本資源定義
月臺/位置/設定資源類型可以使用目標作業來部署:
使用範例
資源格式
若要建立 Microsoft.Web/sites/slots/config 資源,請將下列 JSON 新增至範本。
{
"name": "string"
// For remaining properties, see microsoft.web/sites/slots/config objects
}
microsoft.web/sites/slots/config 物件
設定 名稱 屬性,以指定物件的類型。
針對 appsettings,請使用:
{
"kind": "string",
"name": "appsettings",
"properties": {
"{customized property}": "string"
}
}
針對 authsettings,請使用:
{
"kind": "string",
"name": "authsettings",
"properties": {
"additionalLoginParams": [ "string" ],
"allowedAudiences": [ "string" ],
"allowedExternalRedirectUrls": [ "string" ],
"clientId": "string",
"clientSecret": "string",
"defaultProvider": "string",
"enabled": "bool",
"facebookAppId": "string",
"facebookAppSecret": "string",
"facebookOAuthScopes": [ "string" ],
"googleClientId": "string",
"googleClientSecret": "string",
"googleOAuthScopes": [ "string" ],
"issuer": "string",
"microsoftAccountClientId": "string",
"microsoftAccountClientSecret": "string",
"microsoftAccountOAuthScopes": [ "string" ],
"runtimeVersion": "string",
"tokenRefreshExtensionHours": "int",
"tokenStoreEnabled": "bool",
"twitterConsumerKey": "string",
"twitterConsumerSecret": "string",
"unauthenticatedClientAction": "string"
}
}
針對 備份,請使用:
{
"kind": "string",
"name": "backup",
"properties": {
"backupSchedule": {
"frequencyInterval": "int",
"frequencyUnit": "string",
"keepAtLeastOneBackup": "bool",
"retentionPeriodInDays": "int",
"startTime": "string"
},
"databases": [
{
"connectionString": "string",
"connectionStringName": "string",
"databaseType": "string",
"name": "string"
}
],
"enabled": "bool",
"name": "string",
"storageAccountUrl": "string",
"type": "string"
}
}
針對 connectionstrings,請使用:
{
"kind": "string",
"name": "connectionstrings",
"properties": {
"{customized property}": {
"type": "string",
"value": "string"
}
}
}
針對 記錄,請使用:
{
"kind": "string",
"name": "logs",
"properties": {
"applicationLogs": {
"azureBlobStorage": {
"level": "string",
"retentionInDays": "int",
"sasUrl": "string"
},
"azureTableStorage": {
"level": "string",
"sasUrl": "string"
},
"fileSystem": {
"level": "string"
}
},
"detailedErrorMessages": {
"enabled": "bool"
},
"failedRequestsTracing": {
"enabled": "bool"
},
"httpLogs": {
"azureBlobStorage": {
"enabled": "bool",
"retentionInDays": "int",
"sasUrl": "string"
},
"fileSystem": {
"enabled": "bool",
"retentionInDays": "int",
"retentionInMb": "int"
}
}
}
}
針對 元數據,請使用:
{
"kind": "string",
"name": "metadata",
"properties": {
"{customized property}": "string"
}
}
針對 pushsettings,請使用:
{
"kind": "string",
"name": "pushsettings",
"properties": {
"dynamicTagsJson": "string",
"isPushEnabled": "bool",
"tagsRequiringAuth": "string",
"tagWhitelistJson": "string"
}
}
針對 Web,請使用:
{
"kind": "string",
"name": "web",
"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"
}
],
"http20Enabled": "bool",
"httpLoggingEnabled": "bool",
"ipSecurityRestrictions": [
{
"ipAddress": "string",
"subnetMask": "string"
}
],
"javaContainer": "string",
"javaContainerVersion": "string",
"javaVersion": "string",
"limits": {
"maxDiskSizeInMb": "int",
"maxMemoryInMb": "int",
"maxPercentageCpu": "int"
},
"linuxFxVersion": "string",
"loadBalancing": "string",
"localMySqlEnabled": "bool",
"logsDirectorySizeLimit": "int",
"managedPipelineMode": "string",
"minTlsVersion": "string",
"netFrameworkVersion": "string",
"nodeVersion": "string",
"numberOfWorkers": "int",
"phpVersion": "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",
"scmType": "string",
"tracingOptions": "string",
"use32BitWorkerProcess": "bool",
"virtualApplications": [
{
"physicalPath": "string",
"preloadEnabled": "bool",
"virtualDirectories": [
{
"physicalPath": "string",
"virtualPath": "string"
}
],
"virtualPath": "string"
}
],
"vnetName": "string",
"webSocketsEnabled": "bool"
}
}
屬性值
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| apiVersion | API 版本 | '2016-08-01' |
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'appsettings' (必要) |
| 性能 | 設置。 | StringDictionaryProperties |
| 型別 | 資源類型 | “Microsoft.Web/sites/slots/config” |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| apiVersion | API 版本 | '2016-08-01' |
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'authsettings' (必要) |
| 性能 | SiteAuthSettings 資源特定屬性 | SiteAuthSettingsProperties |
| 型別 | 資源類型 | “Microsoft.Web/sites/slots/config” |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| apiVersion | API 版本 | '2016-08-01' |
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'backup' (必要) |
| 性能 | BackupRequest 資源特定屬性 | BackupRequestProperties |
| 型別 | 資源類型 | “Microsoft.Web/sites/slots/config” |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| apiVersion | API 版本 | '2016-08-01' |
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'connectionstrings' (必要) |
| 性能 | 連接字串。 | ConnectionStringDictionary屬性 |
| 型別 | 資源類型 | “Microsoft.Web/sites/slots/config” |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| apiVersion | API 版本 | '2016-08-01' |
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'logs' (必要) |
| 性能 | SiteLogsConfig 資源特定屬性 | SiteLogsConfigProperties |
| 型別 | 資源類型 | “Microsoft.Web/sites/slots/config” |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| apiVersion | API 版本 | '2016-08-01' |
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'metadata' (必要) |
| 性能 | 設置。 | StringDictionaryProperties |
| 型別 | 資源類型 | “Microsoft.Web/sites/slots/config” |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| apiVersion | API 版本 | '2016-08-01' |
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'pushsettings' (必要) |
| 性能 | PushSettings 資源特定屬性 | PushSettingsProperties |
| 型別 | 資源類型 | “Microsoft.Web/sites/slots/config” |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| apiVersion | API 版本 | '2016-08-01' |
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'web' (必要) |
| 性能 | 核心資源屬性 | 網站配置 |
| 型別 | 資源類型 | “Microsoft.Web/sites/slots/config” |
ApiDefinitionInfo
| 名字 | 描述 | 價值 |
|---|---|---|
| URL | API 定義的 URL。 | 字串 |
應用程式記錄配置
| 名字 | 描述 | 價值 |
|---|---|---|
| azureBlobStorage | 應用程式記錄至 Blob 記憶體組態。 | AzureBlobStorageApplicationLogsConfig |
| azureTableStorage | 應用程式記錄至 azure 資料表記憶體組態。 | AzureTableStorageApplicationLogsConfig |
| 檔案系統 | 應用程式記錄至檔案系統組態。 | FileSystemApplicationLogsConfig |
AutoHealActions 自動修復作
| 名字 | 描述 | 價值 |
|---|---|---|
| 動作類型 | 要採取的預先定義動作。 | 'CustomAction' “LogEvent” '回收' |
| 自訂作 | 要採取的自定義動作。 | AutohealCustomAction 自動修復 |
| minProcessExecutionTime (最小進程執行時間) | 進程必須執行的時間下限 採取動作之前 |
字串 |
AutohealCustomAction 自動修復
| 名字 | 描述 | 價值 |
|---|---|---|
| Exe | 要執行的可執行檔。 | 字串 |
| 參數 | 可執行文件的參數。 | 字串 |
AutoHealRules 自動修復規則
| 名字 | 描述 | 價值 |
|---|---|---|
| 行動 | 觸發規則時要執行的動作。 | AutoHealActions 自動修復作 |
| 觸發器 | 描述何時執行自動癒合動作的條件。 | AutoHealTriggers 自動修復觸發器 |
AutoHealTriggers 自動修復觸發器
| 名字 | 描述 | 價值 |
|---|---|---|
| privateBytesInKB | 以私用位元組為基礎的規則。 | 整數 (int) |
| 請求 | 以要求總數為基礎的規則。 | RequestsBasedTrigger 觸發器 |
| slowRequests 請求 | 根據要求運行時間的規則。 | SlowRequestsBasedTrigger 觸發器 |
| statusCodes | 以狀態代碼為基礎的規則。 | StatusCodesBasedTrigger[] |
AzureBlobStorageApplicationLogsConfig
| 名字 | 描述 | 價值 |
|---|---|---|
| 水平儀 | 記錄層級。 | “錯誤” “資訊” “關閉” “冗長” “警告” |
| 保留天數 | 保留天數。 拿掉早於 X 天的 Blob。 0 或更低表示沒有保留。 |
整數 (int) |
| sasUrl 的 | 具有讀取/寫入/清單/刪除許可權的 Azure Blob 容器 SAS URL。 | 字串 |
AzureBlobStorageHttpLogsConfig
| 名字 | 描述 | 價值 |
|---|---|---|
| 啟用 | 如果已啟用組態,則為 True;如果停用則為 false;如果未設定組態則為 null。 | 布爾 (bool) |
| 保留天數 | 保留天數。 拿掉早於 X 天的 Blob。 0 或更低表示沒有保留。 |
整數 (int) |
| sasUrl 的 | 具有讀取/寫入/清單/刪除許可權的 Azure Blob 容器 SAS URL。 | 字串 |
AzureTableStorageApplicationLogsConfig
| 名字 | 描述 | 價值 |
|---|---|---|
| 水平儀 | 記錄層級。 | “錯誤” “資訊” “關閉” “冗長” “警告” |
| sasUrl 的 | 具有新增/查詢/刪除許可權的 Azure 資料表 SAS URL。 | 字串 (必要) |
BackupRequestProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| backupSchedule | 定期執行備份時排程備份。 | 備份計劃 |
| 資料庫 | 備份中包含的資料庫。 | DatabaseBackupSetting[] |
| 啟用 | True 是表示 如果備份排程已啟用 (必須包含在該案例中),則為 false,如果應該停用備份排程則為 false。 | 布爾 (bool) |
| 名字 | 備份的名稱。 | 字串 (必要) |
| storageAccountUrl 的 | 容器的SAS URL。 | 字串 (必要) |
| 型別 | 備份的類型。 | “克隆” 預設 '重新配置' “快照” |
備份計劃
| 名字 | 描述 | 價值 |
|---|---|---|
| 頻率間隔 | 應該執行備份的頻率(例如,針對每周備份,這應該設定為 7,FrequencyUnit 應該設定為 Day) | int (必要) |
| 頻率單位 | 應該執行備份頻率的時間單位(例如,針對每周備份,這應該設定為 Day,FrequencyInterval 應該設定為 7) | “日” 'Hour' (必要) |
| keepAtLeastOneBackup | 如果保留原則應該一律在記憶體帳戶中保留至少一個備份,則為 True,無論其年齡為何;否則為 false。 | 布林 (必要) |
| retentionPeriodInDays (保留期以天為單位) | 應該刪除多少天備份之後。 | int (必要) |
| 開始時間 | 排程應該開始運作的時間。 | 字串 |
ConnectionStringDictionary屬性
| 名字 | 描述 | 價值 |
|---|
ConnStringInfo
| 名字 | 描述 | 價值 |
|---|---|---|
| Connection String (連接字串) | 連接字串值。 | 字串 |
| 名字 | 連接字串的名稱。 | 字串 |
| 型別 | 資料庫的類型。 | 'ApiHub' “自定義” 'DocDb' “EventHub” 'MySql' 'NotificationHub' 'PostgreSQL' “RedisCache” “ServiceBus” 'SQLAzure' 'SQLServer' |
ConnStringValueTypePair
| 名字 | 描述 | 價值 |
|---|---|---|
| 型別 | 資料庫的類型。 | 'ApiHub' “自定義” 'DocDb' “EventHub” 'MySql' 'NotificationHub' 'PostgreSQL' “RedisCache” “ServiceBus” 'SQLAzure' 'SQLServer' (必要) |
| 價值 | 配對的值。 | 字串 (必要) |
CorsSettings
| 名字 | 描述 | 價值 |
|---|---|---|
| allowedOrigins 的 | 取得或設定應該允許建立跨原始來源的來源清單 呼叫 (例如: http://example.com:12345)。 使用 「*」 來允許所有專案。 |
字串[] |
DatabaseBackupSetting 資料庫備份設置
| 名字 | 描述 | 價值 |
|---|---|---|
| Connection String (連接字串) | 包含要備份或還原之資料庫的連接字串。 如果還原應該發生在新的資料庫,內部的資料庫名稱就是新的資料庫名稱。 | 字串 |
| connectionStringName | 包含連結到 SiteConfig.ConnectionStrings 的連接字串名稱。 這會在還原期間使用覆寫連接字串選項。 |
字串 |
| 資料庫類型 | 資料庫類型 (例如 SqlAzure / MySql)。 | 'LocalMySql' 'MySql' 'PostgreSql' 'SqlAzure' (必要) |
| 名字 | 字串 |
啟用配置
| 名字 | 描述 | 價值 |
|---|---|---|
| 啟用 | 如果已啟用組態,則為 True;如果停用則為 false;如果未設定組態則為 null。 | 布爾 (bool) |
實驗
| 名字 | 描述 | 價值 |
|---|---|---|
| rampUp規則 | 遞增規則的清單。 | RampUpRule[] |
FileSystemApplicationLogsConfig
| 名字 | 描述 | 價值 |
|---|---|---|
| 水平儀 | 記錄層級。 | “錯誤” “資訊” “關閉” “冗長” “警告” |
FileSystemHttpLogsConfig 檔
| 名字 | 描述 | 價值 |
|---|---|---|
| 啟用 | 如果已啟用組態,則為 True;如果停用則為 false;如果未設定組態則為 null。 | 布爾 (bool) |
| 保留天數 | 保留天數。 拿掉超過 X 天的檔案。 0 或更低表示沒有保留。 |
整數 (int) |
| 保留(以 Mb 為單位) | HTTP 記錄檔可以使用的大小上限,以 MB 為單位。 到達舊的記錄檔時,將會移除,以為新的記錄檔提供空間。 值的範圍可以介於 25 到 100 之間。 |
int 約束: 最小值 = 25 最大值 = 100 |
HandlerMapping
| 名字 | 描述 | 價值 |
|---|---|---|
| 參數 | 要傳遞至腳本處理器的命令行自變數。 | 字串 |
| 副檔名 | 使用此擴充功能的要求將會使用指定的 FastCGI 應用程式來處理。 | 字串 |
| scriptProcessor | FastCGI 應用程式的絕對路徑。 | 字串 |
HttpLogsConfig
| 名字 | 描述 | 價值 |
|---|---|---|
| azureBlobStorage | Http 記錄至 Azure Blob 記憶體組態。 | AzureBlobStorageHttpLogsConfig |
| 檔案系統 | Http 記錄至檔案系統組態。 | FileSystemHttpLogsConfig 檔 |
IpSecurityRestriction
| 名字 | 描述 | 價值 |
|---|---|---|
| IP位址 | 安全性限制的有效IP位址。 | 字串 (必要) |
| 子網掩碼 | 限制的有效IP位址範圍的子網掩碼。 | 字串 |
microsoft.web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| 名字 | 針對 type Microsoft.Web/sites/slots/config設定為 'appsettings'。針對類型 Microsoft.Web/sites/slots/config 設定為 'authsettings',。針對類型 Microsoft.Web/sites/slots/config設定為 'backup'。針對類型 Microsoft.Web/sites/slots/config 設定為 'connectionstrings',。針對類型 Microsoft.Web/sites/slots/config設定為 'logs'。針對類型 Microsoft.Web/sites/slots/config設定為 'metadata'。將 類型設定為 'pushsettings',Microsoft.Web/sites/slots/config。針對類型 Microsoft.Web/sites/slots/config設定為 'web'。 | '應用程式設置' 'authsettings' '備份' 'connectionstrings' '日誌' '元數據' 'pushsettings' 'web' (必要) |
NameValuePair
| 名字 | 描述 | 價值 |
|---|---|---|
| 名字 | 配對名稱。 | 字串 |
| 價值 | 配對值。 | 字串 |
PushSettings 設置
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | 資源種類。 | 字串 |
| 性能 | PushSettings 資源特定屬性 | PushSettingsProperties |
PushSettingsProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 動態標籤Json | 取得或設定 JSON 字串,其中包含將從推送註冊端點中的使用者宣告評估的動態標籤清單。 | 字串 |
| isPush已啟用 | 取得或設定旗標,指出是否啟用推送端點。 | 布林 (必要) |
| tagsRequiringAuth | 取得或設定 JSON 字串,其中包含要求使用者驗證用於推送註冊端點的標籤清單。 標記可以包含英數位元和下列專案: '_', '@', '#', '.', ':', '-'. 驗證應該在 PushRequestHandler 上執行。 |
字串 |
| tagWhitelistJson | 取得或設定 JSON 字串,其中包含允許清單中可供推送註冊端點使用的標籤清單。 | 字串 |
RampUpRule
| 名字 | 描述 | 價值 |
|---|---|---|
| actionHostName (作主機名稱) | 如果決定要重新導向流量的位置主機名。 例如 myapp-stage.azurewebsites.net。 | 字串 |
| 更改決定回調網址 | 您可以在可指定 URL 的 TiPCallback 網站延伸模組中提供自訂決策演算法。 | 字串 |
| 更改間隔以分鐘為單位 | 指定以分鐘為單位重新評估 ReroutePercentage 的間隔。 | 整數 (int) |
| changeStep | 在自動增加案例中,這是從 <程式代碼新增/移除的步驟,>ReroutePercentage</code>,直到到達為止 <程式代碼>MinReroutePercentage</code> 或 <程式代碼>MaxReroutePercentage</code>。 網站計量會每隔 N <分鐘檢查一次,>ChangeIntervalInMinutes</code>中指定的程式代碼。 您可以在 TiPCallback 網站延伸模組中提供自定義決策演算法,您可以在 ChangeDecisionCallbackUrl <>ChangeDecisionCallbackUrl</code>中指定 URL。 |
整數 (int) |
| maxReroutePercentage | 指定 ReroutePercentage 將保留的上限。 | 整數 (int) |
| minReroutePercentage | 指定上方的下限,讓 ReroutePercentage 維持不變。 | 整數 (int) |
| 名字 | 路由規則的名稱。 建議的名稱會指向將接收實驗中流量的位置。 | 字串 |
| reroutePercentage | 將重新導向至 <程式代碼的流量百分比,>ActionHostName</code>。 | 整數 (int) |
RequestsBasedTrigger 觸發器
| 名字 | 描述 | 價值 |
|---|---|---|
| 計數 | 要求計數。 | 整數 (int) |
| timeInterval 時間 | 時間間隔。 | 字串 |
SiteAuthSettingsProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| additionalLoginParams | 登入參數,以在何時傳送至 OpenID Connect 授權端點 使用者登入。 每個參數的格式都必須是 「key=value」。。 |
字串[] |
| allowedAudiences | 允許的物件值在驗證 所發出的 JWT 時考慮 Azure Active Directory。 請注意,<程式代碼>ClientID</code> 值一律視為 允許的物件,不論此設定為何。 |
字串[] |
| allowedExternalRedirectUrls | 可在登入或註銷應用程式時重新導向至 的外部URL。 請注意,會忽略 URL 的查詢字串部分。 這是 Windows 市集應用程式後端通常需要的進階設定。 請注意,目前網域內的URL一律是隱含允許的。 |
字串[] |
| 用戶端ID | 此信賴憑證者應用程式的用戶端標識碼,稱為client_id。 若要使用 Azure Active Directory 啟用 OpenID 連線驗證,則需要此設定或 其他第三方 OpenID Connect 提供者。 OpenID Connect 的詳細資訊:http://openid.net/specs/openid-connect-core-1_0.html |
字串 |
| 用戶端密鑰 | 此信賴憑證者應用程式的客戶端密碼(在 Azure Active Directory 中,也稱為密鑰)。 此設定是選擇性的。 如果未設定任何客戶端密碼,則會使用 OpenID Connect 隱含驗證流程來驗證終端使用者。 否則,OpenID Connect 授權碼流程會用來驗證使用者。 OpenID Connect 的詳細資訊:http://openid.net/specs/openid-connect-core-1_0.html |
字串 |
| defaultProvider | 設定多個提供者時要使用的預設驗證提供者。 只有在已設定多個提供者和未經驗證的用戶端時,才需要此設定 action 設定為 「RedirectToLoginPage」。。 |
“AzureActiveDirectory” “臉書” '谷歌' “MicrosoftAccount” '推特' |
| 啟用 | 如果目前應用程式已啟用驗證/授權功能,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| facebookAppId | 用於登入的 Facebook 應用程式的應用程式識別碼。 啟用Facebook登入需要此設定。 Facebook 登入檔:https://developers.facebook.com/docs/facebook-login |
字串 |
| facebookAppSecret | 用於 Facebook 登入之 Facebook 應用程式的應用程式秘密。 啟用Facebook登入需要此設定。 Facebook 登入檔:https://developers.facebook.com/docs/facebook-login |
字串 |
| facebookOAuth範圍 | 將作為Facebook登入驗證一部分要求的OAuth 2.0範圍。 此設定是選擇性的。 Facebook 登入檔:https://developers.facebook.com/docs/facebook-login |
字串[] |
| googleClientId | Google Web 應用程式的 OpenID Connect 用戶端識別碼。 啟用Google登入需要此設定。 Google Sign-In 檔:https://developers.google.com/identity/sign-in/web/ |
字串 |
| googleClientSecret | 與Google Web 應用程式相關聯的客戶端密碼。 啟用Google登入需要此設定。 Google Sign-In 檔:https://developers.google.com/identity/sign-in/web/ |
字串 |
| googleOAuth範圍 | 將作為Google Sign-In 驗證一部分要求的OAuth 2.0範圍。 此設定是選擇性的。 如果未指定,則會使用 「openid」、“profile」 和 「email」 作為預設範圍。 Google Sign-In 檔:https://developers.google.com/identity/sign-in/web/ |
字串[] |
| 簽發者 | OpenID Connect 簽發者 URI,代表發出此應用程式存取令牌的實體。 使用 Azure Active Directory 時,此值是目錄租使用者的 URI,例如 https://sts.windows.net/{tenant-guid}/。此 URI 是令牌簽發者的區分大小寫標識碼。 OpenID Connect Discovery 的詳細資訊:http://openid.net/specs/openid-connect-discovery-1_0.html |
字串 |
| microsoftAccountClientId | 針對用於驗證的應用程式所建立的 OAuth 2.0 用戶端識別碼。 啟用Microsoft帳戶驗證需要此設定。 Microsoft帳戶 OAuth 檔:https://dev.onedrive.com/auth/msa_oauth.htm |
字串 |
| microsoftAccountClientSecret | 針對用於驗證的應用程式所建立的 OAuth 2.0 客戶端密碼。 啟用Microsoft帳戶驗證需要此設定。 Microsoft帳戶 OAuth 檔:https://dev.onedrive.com/auth/msa_oauth.htm |
字串 |
| microsoftAccountOAuth範圍 | 將在帳戶驗證Microsoft一部分要求的 OAuth 2.0 範圍。 此設定是選擇性的。 如果未指定,則會使用 「wl.basic」 作為預設範圍。 Microsoft帳戶範圍和許可權檔:https://msdn.microsoft.com/en-us/library/dn631845.aspx |
字串[] |
| runtimeVersion (運行時版本) | 用於目前應用程式的驗證/授權功能的 RuntimeVersion。 此值中的設定可以控制驗證/授權模組中特定功能的行為。 |
字串 |
| tokenRefreshExtension小時 | 會話令牌到期后的時數,會話令牌可用來 呼叫令牌重新整理 API。 預設值為72小時。 |
整數 (int) |
| tokenStore已啟用 |
<程式代碼>true</code>,以永久儲存登入流程期間取得的平臺特定安全性令牌;否則,<程式代碼>false</code>。 預設值為 <程式代碼,>false</code>。 |
布爾 (bool) |
| twitterConsumerKey | 用於登入之 Twitter 應用程式的 OAuth 1.0a 取用者密鑰。 啟用 Twitter 登入需要此設定。 Twitter Sign-In 檔:https://dev.twitter.com/web/sign-in |
字串 |
| 推特消費者秘密 | 用於登入之 Twitter 應用程式的 OAuth 1.0a 取用者秘密。 啟用 Twitter 登入需要此設定。 Twitter Sign-In 檔:https://dev.twitter.com/web/sign-in |
字串 |
| unauthenticatedClientAction | 當未經驗證的客戶端嘗試存取應用程式時要採取的動作。 | '允許匿名' 'RedirectToLoginPage' |
網站配置
| 名字 | 描述 | 價值 |
|---|---|---|
| 永遠在線 | 如果已啟用 Always On,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| api定義 | 應用程式正式 API 定義的相關信息。 | ApiDefinitionInfo |
| app命令行 | 要啟動的應用程式命令行。 | 字串 |
| appSettings | 應用程式設定。 | NameValuePair[] |
| autoHealEnabled 已啟用 | 如果啟用自動癒合,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| autoHealRules 自動修復規則 | 自動治癒規則。 | AutoHealRules 自動修復規則 |
| autoSwapSlotName (自動交換槽名稱) | 自動交換位置名稱。 | 字串 |
| connectionStrings 連接字串 | 連接字串。 | ConnStringInfo[] |
| 跨來源資源共享 (CORS) | 跨原始來源資源分享 (CORS) 設定。 | CorsSettings |
| defaultDocuments 文檔 | 默認檔。 | 字串[] |
| detailedErrorLogging已啟用 | 如果啟用詳細的錯誤記錄,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| documentRoot | 檔根目錄。 | 字串 |
| 實驗 | 這適用於多型類型。 | 實驗 |
| handlerMappings | 處理程序對應。 | HandlerMapping[] |
| HTTP20已啟用 | Http20Enabled:設定網站以允許用戶端透過 HTTP2.0 連線 | 布爾 (bool) |
| HTTPLogging已啟用 | 如果啟用 HTTP 記錄,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| ipSecurity限制 | IP 安全性限制。 | IpSecurityRestriction[] |
| java容器 | Java 容器。 | 字串 |
| javaContainerVersion | Java 容器版本。 | 字串 |
| java版本 | Java 版本。 | 字串 |
| 限制 | 網站限制。 | 網站限制 |
| linuxFx版本 | Linux 應用程式架構和版本 | 字串 |
| 負載平衡 | 網站負載平衡。 | '最少請求' '最小回應時間' '請求哈希' 'WeightedRoundRobin' '加權總流量' |
| localMySql已啟用 | <程式代碼>true</code> 啟用本機 MySQL;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| logsDirectorySizeLimit | HTTP 記錄目錄大小限制。 | 整數 (int) |
| managedPipelineMode | 受控管線模式。 | “經典” “集成” |
| minTlsVersion (最小版本 | MinTlsVersion:設定 SSL 要求所需的最低 TLS 版本 | '1.0' '1.1' '1.2' |
| netFrameworkVersion | .NET Framework 版本。 | 字串 |
| nodeVersion | Node.js的版本。 | 字串 |
| 工人數 | 背景工作角色數目。 | 整數 (int) |
| php版本 | PHP 版本。 | 字串 |
| publishing使用者名 | 發佈用戶名稱。 | 字串 |
| 推送 | 推送端點設定。 | PushSettings 設置 |
| python版本 | Python 版本。 | 字串 |
| remoteDebugging已啟用 | 如果啟用遠端偵錯,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| remoteDebuggingVersion (遠端調試版本) | 遠端偵錯版本。 | 字串 |
| requestTracing已啟用 | 如果啟用要求追蹤,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| 請求TracingExpirationTime | 要求追蹤到期時間。 | 字串 |
| scm類型 | SCM 類型。 | 'BitbucketGit' 'BitbucketHg' 'CodePlexGit' “CodePlexHg” 'Dropbox' '外部 Git' '外部汞' “GitHub” '本地 Git' “無” “OneDrive” 'Tfs' 'VSO' |
| tracing選項 | 追蹤選項。 | 字串 |
| use32BitWorker進程 | <程式代碼>true</code> 使用 32 位背景工作進程;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| 虛擬應用程式 | 虛擬應用程式。 | VirtualApplication[] |
| vnet名稱 | 虛擬網路名稱。 | 字串 |
| webSockets已啟用 | 如果已啟用 WebSocket,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
網站限制
| 名字 | 描述 | 價值 |
|---|---|---|
| 最大磁碟大小(以 Mb 為單位) | 允許的磁碟大小使用量上限,以 MB 為單位。 | 整數 (int) |
| 最大記憶體 | MB 允許的記憶體使用量上限。 | 整數 (int) |
| maxPercentageCpu | 允許的CPU使用量百分比上限。 | 整數 (int) |
SiteLogsConfigProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 應用程式記錄 | 應用程式記錄設定。 | 應用程式記錄配置 |
| detailedErrorMessages | 詳細的錯誤訊息組態。 | 啟用配置 |
| failedRequestsTracing 請求 | 失敗的要求追蹤組態。 | 啟用配置 |
| HTTP日誌 | HTTP 記錄組態。 | HttpLogsConfig |
SlowRequestsBasedTrigger 觸發器
| 名字 | 描述 | 價值 |
|---|---|---|
| 計數 | 要求計數。 | 整數 (int) |
| timeInterval 時間 | 時間間隔。 | 字串 |
| 花費時間 | 所花費的時間。 | 字串 |
StatusCodesBased觸發器
| 名字 | 描述 | 價值 |
|---|---|---|
| 計數 | 要求計數。 | 整數 (int) |
| 狀態 | HTTP 狀態代碼。 | 整數 (int) |
| 子狀態 | 要求子狀態。 | 整數 (int) |
| timeInterval 時間 | 時間間隔。 | 字串 |
| win32狀態 | Win32 錯誤碼。 | 整數 (int) |
StringDictionaryProperties
| 名字 | 描述 | 價值 |
|---|
StringDictionaryProperties
| 名字 | 描述 | 價值 |
|---|
虛擬應用程式
| 名字 | 描述 | 價值 |
|---|---|---|
| 物理路徑 | 實體路徑。 | 字串 |
| preload已啟用 | 如果啟用預先載入,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| 虛擬目錄 | 虛擬應用程式的虛擬目錄。 | VirtualDirectory [] |
| 虛擬路徑 | 虛擬路徑。 | 字串 |
虛擬目錄
| 名字 | 描述 | 價值 |
|---|---|---|
| 物理路徑 | 實體路徑。 | 字串 |
| 虛擬路徑 | 虛擬應用程式的路徑。 | 字串 |
Terraform (AzAPI 提供者) 資源定義
月臺/位置/設定資源類型可以使用目標作業來部署:
- 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
使用範例
Terraform 範例
部署 App Service 位置虛擬網路關聯的基本範例。
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "serverfarm" {
type = "Microsoft.Web/serverfarms@2022-09-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
hyperV = false
perSiteScaling = false
reserved = false
zoneRedundant = false
}
sku = {
name = "S1"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "site" {
type = "Microsoft.Web/sites@2022-09-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
clientAffinityEnabled = false
clientCertEnabled = false
clientCertMode = "Required"
enabled = true
httpsOnly = false
publicNetworkAccess = "Enabled"
serverFarmId = azapi_resource.serverfarm.id
siteConfig = {
acrUseManagedIdentityCreds = false
alwaysOn = true
autoHealEnabled = false
ftpsState = "Disabled"
http20Enabled = false
loadBalancing = "LeastRequests"
localMySqlEnabled = false
managedPipelineMode = "Integrated"
minTlsVersion = "1.2"
publicNetworkAccess = "Enabled"
remoteDebuggingEnabled = false
scmIpSecurityRestrictionsUseMain = false
scmMinTlsVersion = "1.2"
use32BitWorkerProcess = true
vnetRouteAllEnabled = false
webSocketsEnabled = false
windowsFxVersion = ""
}
vnetRouteAllEnabled = false
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "slot" {
type = "Microsoft.Web/sites/slots@2022-09-01"
parent_id = azapi_resource.site.id
name = var.resource_name
location = var.location
body = {
properties = {
clientAffinityEnabled = false
clientCertEnabled = false
clientCertExclusionPaths = ""
clientCertMode = "Required"
enabled = true
httpsOnly = false
publicNetworkAccess = "Enabled"
serverFarmId = azapi_resource.serverfarm.id
siteConfig = {
acrUseManagedIdentityCreds = false
alwaysOn = true
autoHealEnabled = false
ftpsState = "Disabled"
http20Enabled = false
loadBalancing = "LeastRequests"
localMySqlEnabled = false
managedPipelineMode = "Integrated"
minTlsVersion = "1.2"
publicNetworkAccess = "Enabled"
remoteDebuggingEnabled = false
scmIpSecurityRestrictionsUseMain = false
scmMinTlsVersion = "1.2"
use32BitWorkerProcess = false
vnetRouteAllEnabled = false
webSocketsEnabled = false
windowsFxVersion = ""
}
vnetRouteAllEnabled = false
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
data "azapi_resource_id" "config" {
type = "Microsoft.Web/sites/slots/config@2022-09-01"
parent_id = azapi_resource.slot.id
name = "azurestorageaccounts"
}
resource "azapi_resource_action" "config" {
type = "Microsoft.Web/sites/slots/config@2022-09-01"
resource_id = data.azapi_resource_id.config.id
method = "PUT"
body = {
name = "azurestorageaccounts"
properties = {
}
}
response_export_values = ["*"]
}
資源格式
若要建立 Microsoft.Web/sites/slots/config 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
name = "string"
// For remaining properties, see microsoft.web/sites/slots/config objects
}
microsoft.web/sites/slots/config 物件
設定 名稱 屬性,以指定物件的類型。
針對 appsettings,請使用:
{
kind = "string"
name = "appsettings"
properties = {
{customized property} = "string"
}
}
針對 authsettings,請使用:
{
kind = "string"
name = "authsettings"
properties = {
additionalLoginParams = [
"string"
]
allowedAudiences = [
"string"
]
allowedExternalRedirectUrls = [
"string"
]
clientId = "string"
clientSecret = "string"
defaultProvider = "string"
enabled = bool
facebookAppId = "string"
facebookAppSecret = "string"
facebookOAuthScopes = [
"string"
]
googleClientId = "string"
googleClientSecret = "string"
googleOAuthScopes = [
"string"
]
issuer = "string"
microsoftAccountClientId = "string"
microsoftAccountClientSecret = "string"
microsoftAccountOAuthScopes = [
"string"
]
runtimeVersion = "string"
tokenRefreshExtensionHours = int
tokenStoreEnabled = bool
twitterConsumerKey = "string"
twitterConsumerSecret = "string"
unauthenticatedClientAction = "string"
}
}
針對 備份,請使用:
{
kind = "string"
name = "backup"
properties = {
backupSchedule = {
frequencyInterval = int
frequencyUnit = "string"
keepAtLeastOneBackup = bool
retentionPeriodInDays = int
startTime = "string"
}
databases = [
{
connectionString = "string"
connectionStringName = "string"
databaseType = "string"
name = "string"
}
]
enabled = bool
name = "string"
storageAccountUrl = "string"
type = "string"
}
}
針對 connectionstrings,請使用:
{
kind = "string"
name = "connectionstrings"
properties = {
{customized property} = {
type = "string"
value = "string"
}
}
}
針對 記錄,請使用:
{
kind = "string"
name = "logs"
properties = {
applicationLogs = {
azureBlobStorage = {
level = "string"
retentionInDays = int
sasUrl = "string"
}
azureTableStorage = {
level = "string"
sasUrl = "string"
}
fileSystem = {
level = "string"
}
}
detailedErrorMessages = {
enabled = bool
}
failedRequestsTracing = {
enabled = bool
}
httpLogs = {
azureBlobStorage = {
enabled = bool
retentionInDays = int
sasUrl = "string"
}
fileSystem = {
enabled = bool
retentionInDays = int
retentionInMb = int
}
}
}
}
針對 元數據,請使用:
{
kind = "string"
name = "metadata"
properties = {
{customized property} = "string"
}
}
針對 pushsettings,請使用:
{
kind = "string"
name = "pushsettings"
properties = {
dynamicTagsJson = "string"
isPushEnabled = bool
tagsRequiringAuth = "string"
tagWhitelistJson = "string"
}
}
針對 Web,請使用:
{
kind = "string"
name = "web"
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"
}
]
http20Enabled = bool
httpLoggingEnabled = bool
ipSecurityRestrictions = [
{
ipAddress = "string"
subnetMask = "string"
}
]
javaContainer = "string"
javaContainerVersion = "string"
javaVersion = "string"
limits = {
maxDiskSizeInMb = int
maxMemoryInMb = int
maxPercentageCpu = int
}
linuxFxVersion = "string"
loadBalancing = "string"
localMySqlEnabled = bool
logsDirectorySizeLimit = int
managedPipelineMode = "string"
minTlsVersion = "string"
netFrameworkVersion = "string"
nodeVersion = "string"
numberOfWorkers = int
phpVersion = "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"
scmType = "string"
tracingOptions = "string"
use32BitWorkerProcess = bool
virtualApplications = [
{
physicalPath = "string"
preloadEnabled = bool
virtualDirectories = [
{
physicalPath = "string"
virtualPath = "string"
}
]
virtualPath = "string"
}
]
vnetName = "string"
webSocketsEnabled = bool
}
}
屬性值
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'appsettings' (必要) |
| 父項識別碼 | 此資源為父系之資源的標識碼。 | 類型資源的標識碼:月臺/位置 |
| 性能 | 設置。 | StringDictionaryProperties |
| 型別 | 資源類型 | “Microsoft.Web/sites/slots/config@2016-08-01” |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'authsettings' (必要) |
| 父項識別碼 | 此資源為父系之資源的標識碼。 | 類型資源的標識碼:月臺/位置 |
| 性能 | SiteAuthSettings 資源特定屬性 | SiteAuthSettingsProperties |
| 型別 | 資源類型 | “Microsoft.Web/sites/slots/config@2016-08-01” |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'backup' (必要) |
| 父項識別碼 | 此資源為父系之資源的標識碼。 | 類型資源的標識碼:月臺/位置 |
| 性能 | BackupRequest 資源特定屬性 | BackupRequestProperties |
| 型別 | 資源類型 | “Microsoft.Web/sites/slots/config@2016-08-01” |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'connectionstrings' (必要) |
| 父項識別碼 | 此資源為父系之資源的標識碼。 | 類型資源的標識碼:月臺/位置 |
| 性能 | 連接字串。 | ConnectionStringDictionary屬性 |
| 型別 | 資源類型 | “Microsoft.Web/sites/slots/config@2016-08-01” |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'logs' (必要) |
| 父項識別碼 | 此資源為父系之資源的標識碼。 | 類型資源的標識碼:月臺/位置 |
| 性能 | SiteLogsConfig 資源特定屬性 | SiteLogsConfigProperties |
| 型別 | 資源類型 | “Microsoft.Web/sites/slots/config@2016-08-01” |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'metadata' (必要) |
| 父項識別碼 | 此資源為父系之資源的標識碼。 | 類型資源的標識碼:月臺/位置 |
| 性能 | 設置。 | StringDictionaryProperties |
| 型別 | 資源類型 | “Microsoft.Web/sites/slots/config@2016-08-01” |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'pushsettings' (必要) |
| 父項識別碼 | 此資源為父系之資源的標識碼。 | 類型資源的標識碼:月臺/位置 |
| 性能 | PushSettings 資源特定屬性 | PushSettingsProperties |
| 型別 | 資源類型 | “Microsoft.Web/sites/slots/config@2016-08-01” |
Microsoft.Web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | 資源種類。 | 字串 |
| 名字 | 資源名稱 | 'web' (必要) |
| 父項識別碼 | 此資源為父系之資源的標識碼。 | 類型資源的標識碼:月臺/位置 |
| 性能 | 核心資源屬性 | 網站配置 |
| 型別 | 資源類型 | “Microsoft.Web/sites/slots/config@2016-08-01” |
ApiDefinitionInfo
| 名字 | 描述 | 價值 |
|---|---|---|
| URL | API 定義的 URL。 | 字串 |
應用程式記錄配置
| 名字 | 描述 | 價值 |
|---|---|---|
| azureBlobStorage | 應用程式記錄至 Blob 記憶體組態。 | AzureBlobStorageApplicationLogsConfig |
| azureTableStorage | 應用程式記錄至 azure 資料表記憶體組態。 | AzureTableStorageApplicationLogsConfig |
| 檔案系統 | 應用程式記錄至檔案系統組態。 | FileSystemApplicationLogsConfig |
AutoHealActions 自動修復作
| 名字 | 描述 | 價值 |
|---|---|---|
| 動作類型 | 要採取的預先定義動作。 | 'CustomAction' “LogEvent” '回收' |
| 自訂作 | 要採取的自定義動作。 | AutohealCustomAction 自動修復 |
| minProcessExecutionTime (最小進程執行時間) | 進程必須執行的時間下限 採取動作之前 |
字串 |
AutohealCustomAction 自動修復
| 名字 | 描述 | 價值 |
|---|---|---|
| Exe | 要執行的可執行檔。 | 字串 |
| 參數 | 可執行文件的參數。 | 字串 |
AutoHealRules 自動修復規則
| 名字 | 描述 | 價值 |
|---|---|---|
| 行動 | 觸發規則時要執行的動作。 | AutoHealActions 自動修復作 |
| 觸發器 | 描述何時執行自動癒合動作的條件。 | AutoHealTriggers 自動修復觸發器 |
AutoHealTriggers 自動修復觸發器
| 名字 | 描述 | 價值 |
|---|---|---|
| privateBytesInKB | 以私用位元組為基礎的規則。 | 整數 (int) |
| 請求 | 以要求總數為基礎的規則。 | RequestsBasedTrigger 觸發器 |
| slowRequests 請求 | 根據要求運行時間的規則。 | SlowRequestsBasedTrigger 觸發器 |
| statusCodes | 以狀態代碼為基礎的規則。 | StatusCodesBasedTrigger[] |
AzureBlobStorageApplicationLogsConfig
| 名字 | 描述 | 價值 |
|---|---|---|
| 水平儀 | 記錄層級。 | “錯誤” “資訊” “關閉” “冗長” “警告” |
| 保留天數 | 保留天數。 拿掉早於 X 天的 Blob。 0 或更低表示沒有保留。 |
整數 (int) |
| sasUrl 的 | 具有讀取/寫入/清單/刪除許可權的 Azure Blob 容器 SAS URL。 | 字串 |
AzureBlobStorageHttpLogsConfig
| 名字 | 描述 | 價值 |
|---|---|---|
| 啟用 | 如果已啟用組態,則為 True;如果停用則為 false;如果未設定組態則為 null。 | 布爾 (bool) |
| 保留天數 | 保留天數。 拿掉早於 X 天的 Blob。 0 或更低表示沒有保留。 |
整數 (int) |
| sasUrl 的 | 具有讀取/寫入/清單/刪除許可權的 Azure Blob 容器 SAS URL。 | 字串 |
AzureTableStorageApplicationLogsConfig
| 名字 | 描述 | 價值 |
|---|---|---|
| 水平儀 | 記錄層級。 | “錯誤” “資訊” “關閉” “冗長” “警告” |
| sasUrl 的 | 具有新增/查詢/刪除許可權的 Azure 資料表 SAS URL。 | 字串 (必要) |
BackupRequestProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| backupSchedule | 定期執行備份時排程備份。 | 備份計劃 |
| 資料庫 | 備份中包含的資料庫。 | DatabaseBackupSetting[] |
| 啟用 | True 是表示 如果備份排程已啟用 (必須包含在該案例中),則為 false,如果應該停用備份排程則為 false。 | 布爾 (bool) |
| 名字 | 備份的名稱。 | 字串 (必要) |
| storageAccountUrl 的 | 容器的SAS URL。 | 字串 (必要) |
| 型別 | 備份的類型。 | “克隆” 預設 '重新配置' “快照” |
備份計劃
| 名字 | 描述 | 價值 |
|---|---|---|
| 頻率間隔 | 應該執行備份的頻率(例如,針對每周備份,這應該設定為 7,FrequencyUnit 應該設定為 Day) | int (必要) |
| 頻率單位 | 應該執行備份頻率的時間單位(例如,針對每周備份,這應該設定為 Day,FrequencyInterval 應該設定為 7) | “日” 'Hour' (必要) |
| keepAtLeastOneBackup | 如果保留原則應該一律在記憶體帳戶中保留至少一個備份,則為 True,無論其年齡為何;否則為 false。 | 布林 (必要) |
| retentionPeriodInDays (保留期以天為單位) | 應該刪除多少天備份之後。 | int (必要) |
| 開始時間 | 排程應該開始運作的時間。 | 字串 |
ConnectionStringDictionary屬性
| 名字 | 描述 | 價值 |
|---|
ConnStringInfo
| 名字 | 描述 | 價值 |
|---|---|---|
| Connection String (連接字串) | 連接字串值。 | 字串 |
| 名字 | 連接字串的名稱。 | 字串 |
| 型別 | 資料庫的類型。 | 'ApiHub' “自定義” 'DocDb' “EventHub” 'MySql' 'NotificationHub' 'PostgreSQL' “RedisCache” “ServiceBus” 'SQLAzure' 'SQLServer' |
ConnStringValueTypePair
| 名字 | 描述 | 價值 |
|---|---|---|
| 型別 | 資料庫的類型。 | 'ApiHub' “自定義” 'DocDb' “EventHub” 'MySql' 'NotificationHub' 'PostgreSQL' “RedisCache” “ServiceBus” 'SQLAzure' 'SQLServer' (必要) |
| 價值 | 配對的值。 | 字串 (必要) |
CorsSettings
| 名字 | 描述 | 價值 |
|---|---|---|
| allowedOrigins 的 | 取得或設定應該允許建立跨原始來源的來源清單 呼叫 (例如: http://example.com:12345)。 使用 「*」 來允許所有專案。 |
字串[] |
DatabaseBackupSetting 資料庫備份設置
| 名字 | 描述 | 價值 |
|---|---|---|
| Connection String (連接字串) | 包含要備份或還原之資料庫的連接字串。 如果還原應該發生在新的資料庫,內部的資料庫名稱就是新的資料庫名稱。 | 字串 |
| connectionStringName | 包含連結到 SiteConfig.ConnectionStrings 的連接字串名稱。 這會在還原期間使用覆寫連接字串選項。 |
字串 |
| 資料庫類型 | 資料庫類型 (例如 SqlAzure / MySql)。 | 'LocalMySql' 'MySql' 'PostgreSql' 'SqlAzure' (必要) |
| 名字 | 字串 |
啟用配置
| 名字 | 描述 | 價值 |
|---|---|---|
| 啟用 | 如果已啟用組態,則為 True;如果停用則為 false;如果未設定組態則為 null。 | 布爾 (bool) |
實驗
| 名字 | 描述 | 價值 |
|---|---|---|
| rampUp規則 | 遞增規則的清單。 | RampUpRule[] |
FileSystemApplicationLogsConfig
| 名字 | 描述 | 價值 |
|---|---|---|
| 水平儀 | 記錄層級。 | “錯誤” “資訊” “關閉” “冗長” “警告” |
FileSystemHttpLogsConfig 檔
| 名字 | 描述 | 價值 |
|---|---|---|
| 啟用 | 如果已啟用組態,則為 True;如果停用則為 false;如果未設定組態則為 null。 | 布爾 (bool) |
| 保留天數 | 保留天數。 拿掉超過 X 天的檔案。 0 或更低表示沒有保留。 |
整數 (int) |
| 保留(以 Mb 為單位) | HTTP 記錄檔可以使用的大小上限,以 MB 為單位。 到達舊的記錄檔時,將會移除,以為新的記錄檔提供空間。 值的範圍可以介於 25 到 100 之間。 |
int 約束: 最小值 = 25 最大值 = 100 |
HandlerMapping
| 名字 | 描述 | 價值 |
|---|---|---|
| 參數 | 要傳遞至腳本處理器的命令行自變數。 | 字串 |
| 副檔名 | 使用此擴充功能的要求將會使用指定的 FastCGI 應用程式來處理。 | 字串 |
| scriptProcessor | FastCGI 應用程式的絕對路徑。 | 字串 |
HttpLogsConfig
| 名字 | 描述 | 價值 |
|---|---|---|
| azureBlobStorage | Http 記錄至 Azure Blob 記憶體組態。 | AzureBlobStorageHttpLogsConfig |
| 檔案系統 | Http 記錄至檔案系統組態。 | FileSystemHttpLogsConfig 檔 |
IpSecurityRestriction
| 名字 | 描述 | 價值 |
|---|---|---|
| IP位址 | 安全性限制的有效IP位址。 | 字串 (必要) |
| 子網掩碼 | 限制的有效IP位址範圍的子網掩碼。 | 字串 |
microsoft.web/sites/slots/config
| 名字 | 描述 | 價值 |
|---|---|---|
| 名字 | 針對 type Microsoft.Web/sites/slots/config設定為 'appsettings'。針對類型 Microsoft.Web/sites/slots/config 設定為 'authsettings',。針對類型 Microsoft.Web/sites/slots/config設定為 'backup'。針對類型 Microsoft.Web/sites/slots/config 設定為 'connectionstrings',。針對類型 Microsoft.Web/sites/slots/config設定為 'logs'。針對類型 Microsoft.Web/sites/slots/config設定為 'metadata'。將 類型設定為 'pushsettings',Microsoft.Web/sites/slots/config。針對類型 Microsoft.Web/sites/slots/config設定為 'web'。 | '應用程式設置' 'authsettings' '備份' 'connectionstrings' '日誌' '元數據' 'pushsettings' 'web' (必要) |
NameValuePair
| 名字 | 描述 | 價值 |
|---|---|---|
| 名字 | 配對名稱。 | 字串 |
| 價值 | 配對值。 | 字串 |
PushSettings 設置
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | 資源種類。 | 字串 |
| 性能 | PushSettings 資源特定屬性 | PushSettingsProperties |
PushSettingsProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 動態標籤Json | 取得或設定 JSON 字串,其中包含將從推送註冊端點中的使用者宣告評估的動態標籤清單。 | 字串 |
| isPush已啟用 | 取得或設定旗標,指出是否啟用推送端點。 | 布林 (必要) |
| tagsRequiringAuth | 取得或設定 JSON 字串,其中包含要求使用者驗證用於推送註冊端點的標籤清單。 標記可以包含英數位元和下列專案: '_', '@', '#', '.', ':', '-'. 驗證應該在 PushRequestHandler 上執行。 |
字串 |
| tagWhitelistJson | 取得或設定 JSON 字串,其中包含允許清單中可供推送註冊端點使用的標籤清單。 | 字串 |
RampUpRule
| 名字 | 描述 | 價值 |
|---|---|---|
| actionHostName (作主機名稱) | 如果決定要重新導向流量的位置主機名。 例如 myapp-stage.azurewebsites.net。 | 字串 |
| 更改決定回調網址 | 您可以在可指定 URL 的 TiPCallback 網站延伸模組中提供自訂決策演算法。 | 字串 |
| 更改間隔以分鐘為單位 | 指定以分鐘為單位重新評估 ReroutePercentage 的間隔。 | 整數 (int) |
| changeStep | 在自動增加案例中,這是從 <程式代碼新增/移除的步驟,>ReroutePercentage</code>,直到到達為止 <程式代碼>MinReroutePercentage</code> 或 <程式代碼>MaxReroutePercentage</code>。 網站計量會每隔 N <分鐘檢查一次,>ChangeIntervalInMinutes</code>中指定的程式代碼。 您可以在 TiPCallback 網站延伸模組中提供自定義決策演算法,您可以在 ChangeDecisionCallbackUrl <>ChangeDecisionCallbackUrl</code>中指定 URL。 |
整數 (int) |
| maxReroutePercentage | 指定 ReroutePercentage 將保留的上限。 | 整數 (int) |
| minReroutePercentage | 指定上方的下限,讓 ReroutePercentage 維持不變。 | 整數 (int) |
| 名字 | 路由規則的名稱。 建議的名稱會指向將接收實驗中流量的位置。 | 字串 |
| reroutePercentage | 將重新導向至 <程式代碼的流量百分比,>ActionHostName</code>。 | 整數 (int) |
RequestsBasedTrigger 觸發器
| 名字 | 描述 | 價值 |
|---|---|---|
| 計數 | 要求計數。 | 整數 (int) |
| timeInterval 時間 | 時間間隔。 | 字串 |
SiteAuthSettingsProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| additionalLoginParams | 登入參數,以在何時傳送至 OpenID Connect 授權端點 使用者登入。 每個參數的格式都必須是 「key=value」。。 |
字串[] |
| allowedAudiences | 允許的物件值在驗證 所發出的 JWT 時考慮 Azure Active Directory。 請注意,<程式代碼>ClientID</code> 值一律視為 允許的物件,不論此設定為何。 |
字串[] |
| allowedExternalRedirectUrls | 可在登入或註銷應用程式時重新導向至 的外部URL。 請注意,會忽略 URL 的查詢字串部分。 這是 Windows 市集應用程式後端通常需要的進階設定。 請注意,目前網域內的URL一律是隱含允許的。 |
字串[] |
| 用戶端ID | 此信賴憑證者應用程式的用戶端標識碼,稱為client_id。 若要使用 Azure Active Directory 啟用 OpenID 連線驗證,則需要此設定或 其他第三方 OpenID Connect 提供者。 OpenID Connect 的詳細資訊:http://openid.net/specs/openid-connect-core-1_0.html |
字串 |
| 用戶端密鑰 | 此信賴憑證者應用程式的客戶端密碼(在 Azure Active Directory 中,也稱為密鑰)。 此設定是選擇性的。 如果未設定任何客戶端密碼,則會使用 OpenID Connect 隱含驗證流程來驗證終端使用者。 否則,OpenID Connect 授權碼流程會用來驗證使用者。 OpenID Connect 的詳細資訊:http://openid.net/specs/openid-connect-core-1_0.html |
字串 |
| defaultProvider | 設定多個提供者時要使用的預設驗證提供者。 只有在已設定多個提供者和未經驗證的用戶端時,才需要此設定 action 設定為 「RedirectToLoginPage」。。 |
“AzureActiveDirectory” “臉書” '谷歌' “MicrosoftAccount” '推特' |
| 啟用 | 如果目前應用程式已啟用驗證/授權功能,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| facebookAppId | 用於登入的 Facebook 應用程式的應用程式識別碼。 啟用Facebook登入需要此設定。 Facebook 登入檔:https://developers.facebook.com/docs/facebook-login |
字串 |
| facebookAppSecret | 用於 Facebook 登入之 Facebook 應用程式的應用程式秘密。 啟用Facebook登入需要此設定。 Facebook 登入檔:https://developers.facebook.com/docs/facebook-login |
字串 |
| facebookOAuth範圍 | 將作為Facebook登入驗證一部分要求的OAuth 2.0範圍。 此設定是選擇性的。 Facebook 登入檔:https://developers.facebook.com/docs/facebook-login |
字串[] |
| googleClientId | Google Web 應用程式的 OpenID Connect 用戶端識別碼。 啟用Google登入需要此設定。 Google Sign-In 檔:https://developers.google.com/identity/sign-in/web/ |
字串 |
| googleClientSecret | 與Google Web 應用程式相關聯的客戶端密碼。 啟用Google登入需要此設定。 Google Sign-In 檔:https://developers.google.com/identity/sign-in/web/ |
字串 |
| googleOAuth範圍 | 將作為Google Sign-In 驗證一部分要求的OAuth 2.0範圍。 此設定是選擇性的。 如果未指定,則會使用 「openid」、“profile」 和 「email」 作為預設範圍。 Google Sign-In 檔:https://developers.google.com/identity/sign-in/web/ |
字串[] |
| 簽發者 | OpenID Connect 簽發者 URI,代表發出此應用程式存取令牌的實體。 使用 Azure Active Directory 時,此值是目錄租使用者的 URI,例如 https://sts.windows.net/{tenant-guid}/。此 URI 是令牌簽發者的區分大小寫標識碼。 OpenID Connect Discovery 的詳細資訊:http://openid.net/specs/openid-connect-discovery-1_0.html |
字串 |
| microsoftAccountClientId | 針對用於驗證的應用程式所建立的 OAuth 2.0 用戶端識別碼。 啟用Microsoft帳戶驗證需要此設定。 Microsoft帳戶 OAuth 檔:https://dev.onedrive.com/auth/msa_oauth.htm |
字串 |
| microsoftAccountClientSecret | 針對用於驗證的應用程式所建立的 OAuth 2.0 客戶端密碼。 啟用Microsoft帳戶驗證需要此設定。 Microsoft帳戶 OAuth 檔:https://dev.onedrive.com/auth/msa_oauth.htm |
字串 |
| microsoftAccountOAuth範圍 | 將在帳戶驗證Microsoft一部分要求的 OAuth 2.0 範圍。 此設定是選擇性的。 如果未指定,則會使用 「wl.basic」 作為預設範圍。 Microsoft帳戶範圍和許可權檔:https://msdn.microsoft.com/en-us/library/dn631845.aspx |
字串[] |
| runtimeVersion (運行時版本) | 用於目前應用程式的驗證/授權功能的 RuntimeVersion。 此值中的設定可以控制驗證/授權模組中特定功能的行為。 |
字串 |
| tokenRefreshExtension小時 | 會話令牌到期后的時數,會話令牌可用來 呼叫令牌重新整理 API。 預設值為72小時。 |
整數 (int) |
| tokenStore已啟用 |
<程式代碼>true</code>,以永久儲存登入流程期間取得的平臺特定安全性令牌;否則,<程式代碼>false</code>。 預設值為 <程式代碼,>false</code>。 |
布爾 (bool) |
| twitterConsumerKey | 用於登入之 Twitter 應用程式的 OAuth 1.0a 取用者密鑰。 啟用 Twitter 登入需要此設定。 Twitter Sign-In 檔:https://dev.twitter.com/web/sign-in |
字串 |
| 推特消費者秘密 | 用於登入之 Twitter 應用程式的 OAuth 1.0a 取用者秘密。 啟用 Twitter 登入需要此設定。 Twitter Sign-In 檔:https://dev.twitter.com/web/sign-in |
字串 |
| unauthenticatedClientAction | 當未經驗證的客戶端嘗試存取應用程式時要採取的動作。 | '允許匿名' 'RedirectToLoginPage' |
網站配置
| 名字 | 描述 | 價值 |
|---|---|---|
| 永遠在線 | 如果已啟用 Always On,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| api定義 | 應用程式正式 API 定義的相關信息。 | ApiDefinitionInfo |
| app命令行 | 要啟動的應用程式命令行。 | 字串 |
| appSettings | 應用程式設定。 | NameValuePair[] |
| autoHealEnabled 已啟用 | 如果啟用自動癒合,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| autoHealRules 自動修復規則 | 自動治癒規則。 | AutoHealRules 自動修復規則 |
| autoSwapSlotName (自動交換槽名稱) | 自動交換位置名稱。 | 字串 |
| connectionStrings 連接字串 | 連接字串。 | ConnStringInfo[] |
| 跨來源資源共享 (CORS) | 跨原始來源資源分享 (CORS) 設定。 | CorsSettings |
| defaultDocuments 文檔 | 默認檔。 | 字串[] |
| detailedErrorLogging已啟用 | 如果啟用詳細的錯誤記錄,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| documentRoot | 檔根目錄。 | 字串 |
| 實驗 | 這適用於多型類型。 | 實驗 |
| handlerMappings | 處理程序對應。 | HandlerMapping[] |
| HTTP20已啟用 | Http20Enabled:設定網站以允許用戶端透過 HTTP2.0 連線 | 布爾 (bool) |
| HTTPLogging已啟用 | 如果啟用 HTTP 記錄,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| ipSecurity限制 | IP 安全性限制。 | IpSecurityRestriction[] |
| java容器 | Java 容器。 | 字串 |
| javaContainerVersion | Java 容器版本。 | 字串 |
| java版本 | Java 版本。 | 字串 |
| 限制 | 網站限制。 | 網站限制 |
| linuxFx版本 | Linux 應用程式架構和版本 | 字串 |
| 負載平衡 | 網站負載平衡。 | '最少請求' '最小回應時間' '請求哈希' 'WeightedRoundRobin' '加權總流量' |
| localMySql已啟用 | <程式代碼>true</code> 啟用本機 MySQL;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| logsDirectorySizeLimit | HTTP 記錄目錄大小限制。 | 整數 (int) |
| managedPipelineMode | 受控管線模式。 | “經典” “集成” |
| minTlsVersion (最小版本 | MinTlsVersion:設定 SSL 要求所需的最低 TLS 版本 | '1.0' '1.1' '1.2' |
| netFrameworkVersion | .NET Framework 版本。 | 字串 |
| nodeVersion | Node.js的版本。 | 字串 |
| 工人數 | 背景工作角色數目。 | 整數 (int) |
| php版本 | PHP 版本。 | 字串 |
| publishing使用者名 | 發佈用戶名稱。 | 字串 |
| 推送 | 推送端點設定。 | PushSettings 設置 |
| python版本 | Python 版本。 | 字串 |
| remoteDebugging已啟用 | 如果啟用遠端偵錯,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| remoteDebuggingVersion (遠端調試版本) | 遠端偵錯版本。 | 字串 |
| requestTracing已啟用 | 如果啟用要求追蹤,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| 請求TracingExpirationTime | 要求追蹤到期時間。 | 字串 |
| scm類型 | SCM 類型。 | 'BitbucketGit' 'BitbucketHg' 'CodePlexGit' “CodePlexHg” 'Dropbox' '外部 Git' '外部汞' “GitHub” '本地 Git' “無” “OneDrive” 'Tfs' 'VSO' |
| tracing選項 | 追蹤選項。 | 字串 |
| use32BitWorker進程 | <程式代碼>true</code> 使用 32 位背景工作進程;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| 虛擬應用程式 | 虛擬應用程式。 | VirtualApplication[] |
| vnet名稱 | 虛擬網路名稱。 | 字串 |
| webSockets已啟用 | 如果已啟用 WebSocket,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
網站限制
| 名字 | 描述 | 價值 |
|---|---|---|
| 最大磁碟大小(以 Mb 為單位) | 允許的磁碟大小使用量上限,以 MB 為單位。 | 整數 (int) |
| 最大記憶體 | MB 允許的記憶體使用量上限。 | 整數 (int) |
| maxPercentageCpu | 允許的CPU使用量百分比上限。 | 整數 (int) |
SiteLogsConfigProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 應用程式記錄 | 應用程式記錄設定。 | 應用程式記錄配置 |
| detailedErrorMessages | 詳細的錯誤訊息組態。 | 啟用配置 |
| failedRequestsTracing 請求 | 失敗的要求追蹤組態。 | 啟用配置 |
| HTTP日誌 | HTTP 記錄組態。 | HttpLogsConfig |
SlowRequestsBasedTrigger 觸發器
| 名字 | 描述 | 價值 |
|---|---|---|
| 計數 | 要求計數。 | 整數 (int) |
| timeInterval 時間 | 時間間隔。 | 字串 |
| 花費時間 | 所花費的時間。 | 字串 |
StatusCodesBased觸發器
| 名字 | 描述 | 價值 |
|---|---|---|
| 計數 | 要求計數。 | 整數 (int) |
| 狀態 | HTTP 狀態代碼。 | 整數 (int) |
| 子狀態 | 要求子狀態。 | 整數 (int) |
| timeInterval 時間 | 時間間隔。 | 字串 |
| win32狀態 | Win32 錯誤碼。 | 整數 (int) |
StringDictionaryProperties
| 名字 | 描述 | 價值 |
|---|
StringDictionaryProperties
| 名字 | 描述 | 價值 |
|---|
虛擬應用程式
| 名字 | 描述 | 價值 |
|---|---|---|
| 物理路徑 | 實體路徑。 | 字串 |
| preload已啟用 | 如果啟用預先載入,<程式代碼>true</code>;否則,<程式代碼>false</code>。 | 布爾 (bool) |
| 虛擬目錄 | 虛擬應用程式的虛擬目錄。 | VirtualDirectory [] |
| 虛擬路徑 | 虛擬路徑。 | 字串 |
虛擬目錄
| 名字 | 描述 | 價值 |
|---|---|---|
| 物理路徑 | 實體路徑。 | 字串 |
| 虛擬路徑 | 虛擬應用程式的路徑。 | 字串 |