Microsoft。網路 frontDoors 2018-08-01

Bicep 資源定義

frontDoors 資源類型可以部署到:

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

資源格式

若要建立Microsoft。網路/frontDoors 資源,將下列 Bicep 新增至您的範本。

resource symbolicname 'Microsoft.Network/frontDoors@2018-08-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  properties: {
    backendPools: [
      {
        id: 'string'
        name: 'string'
        properties: {
          backends: [
            {
              address: 'string'
              backendHostHeader: 'string'
              enabledState: 'string'
              httpPort: int
              httpsPort: int
              priority: int
              weight: int
            }
          ]
          healthProbeSettings: {
            id: 'string'
          }
          loadBalancingSettings: {
            id: 'string'
          }
        }
      }
    ]
    enabledState: 'string'
    friendlyName: 'string'
    frontendEndpoints: [
      {
        id: 'string'
        name: 'string'
        properties: {
          hostName: 'string'
          sessionAffinityEnabledState: 'string'
          sessionAffinityTtlSeconds: int
          webApplicationFirewallPolicyLink: {
            id: 'string'
          }
        }
      }
    ]
    healthProbeSettings: [
      {
        id: 'string'
        name: 'string'
        properties: {
          intervalInSeconds: int
          path: 'string'
          protocol: 'string'
        }
      }
    ]
    loadBalancingSettings: [
      {
        id: 'string'
        name: 'string'
        properties: {
          additionalLatencyMilliseconds: int
          sampleSize: int
          successfulSamplesRequired: int
        }
      }
    ]
    routingRules: [
      {
        id: 'string'
        name: 'string'
        properties: {
          acceptedProtocols: [
            'string'
          ]
          backendPool: {
            id: 'string'
          }
          cacheConfiguration: {
            dynamicCompression: 'string'
            queryParameterStripDirective: 'string'
          }
          customForwardingPath: 'string'
          enabledState: 'string'
          forwardingProtocol: 'string'
          frontendEndpoints: [
            {
              id: 'string'
            }
          ]
          patternsToMatch: [
            'string'
          ]
        }
      }
    ]
  }
}

屬性值

frontDoors

名稱 描述
NAME 資源名稱 需要字串 ()

字元限制:5-64

有效字元:
英數字元和連字號。

以英數字元開頭及結尾。

資源名稱在整個 Azure 中必須是唯一的。
location 資源位置。 字串
tags 資源標籤。 標記名稱和值的字典。 請參閱 範本中的標籤
properties Front Door Load Balancer的屬性 FrontDoorProperties

FrontDoorProperties

名稱 描述
backendPools 可用於路由規則的後端集區。 BackendPool[]
enabledState Front Door 負載平衡器的操作狀態。 允許的值為 'Enabled' 或 'Disabled' 'Disabled'
'Enabled'
friendlyName frontDoor 的易記名稱 字串
frontendEndpoints 路由規則可用的前端端點。 FrontendEndpoint[]
healthProbeSettings 與此 Front Door 執行個體建立關聯的健康狀態探查設定。 HealthProbeSettingsModel[]
loadBalancingSettings 與此 Front Door 執行個體建立關聯的負載平衡設定。 LoadBalancingSettingsModel[]
routingRules 與此 Front Door 相關聯的路由規則。 RoutingRule[]

BackendPool

名稱 描述
id 資源識別碼。 字串
NAME 資源名稱。 字串
properties Front Door 後端集區的屬性 BackendPoolProperties

BackendPoolProperties

名稱 描述
後端 此集區的後端集合 Backend[]
healthProbeSettings 後端集區的 L7 健康情況探查設定 SubResource
loadBalancingSettings 後端集區的負載平衡設定 SubResource

後端

名稱 描述
address 後端的位置 (IP 位址或 FQDN) 字串
backendHostHeader 用來作為傳送至後端之主機標頭的值。 如果空白或未指定,則預設為傳入主機。 字串
enabledState 是否要啟用這個後端。 允許的值是 'Enabled' 或 'Disabled' 'Disabled'
'Enabled'
HTTPPort HTTP TCP 連接埠號碼。 必須介於 1 到 65535 之間。 int
HTTPsPort HTTPS TCP 連接埠號碼。 必須介於 1 到 65535 之間。 int
priority 用於負載平衡的優先順序。 如果優先順序較低的後端狀況良好,則不會使用較高優先順序的負載平衡。 int
重量 這個端點的加權,適用於負載平衡用途。 int

SubResource

名稱 描述
id 資源識別碼。 字串

FrontendEndpoint

名稱 描述
id 資源識別碼。 字串
NAME 資源名稱。 字串
properties 前端端點的屬性 FrontendEndpointProperties

FrontendEndpointProperties

名稱 描述
hostName frontendEndpoint 的主機名稱。 必須是網域名稱。 字串
sessionAffinityEnabledState 是否允許此主機上的工作階段親和性。 有效選項為 'Enabled' 或 'Disabled' 'Disabled'
'Enabled'
sessionAffinityTtlSeconds 閒置。 此欄位將被忽略。 如果適用的話,則為可在幾秒鐘之後用於工作階段親和性的 TTL。 int
webApplicationFirewallPolicyLink 如果適用) ,請為每個主機定義Web 應用程式防火牆原則 ( FrontendEndpointUpdateParametersWebApplicationFirewa...

FrontendEndpointUpdateParametersWebApplicationFirewa...

名稱 描述
id 資源識別碼。 字串

HealthProbeSettingsModel

名稱 描述
id 資源識別碼。 字串
NAME 資源名稱。 字串
properties 健康情況探查設定的屬性 HealthProbeSettingsProperties

HealthProbeSettingsProperties

名稱 描述
intervalInSeconds 健康狀態探查的間隔秒數。 int
path 要用於健康狀態探查的路徑。 預設為 / 字串
protocol 要用於此探查的通訊協定配置 'Http'
'Https'

LoadBalancingSettingsModel

名稱 描述
id 資源識別碼。 字串
NAME 資源名稱。 字串
properties 負載平衡設定的屬性 LoadBalancingSettingsProperties

LoadBalancingSettingsProperties

名稱 描述
additionalLatencyMilliseconds 探查進入最低延遲貯體的額外延遲以毫秒為單位 int
sampleSize 要考慮進行負載平衡決策的範例數目 int
successfulSamplesRequired 必須成功之範例期間內的樣本數目 int

RoutingRule

名稱 描述
id 資源識別碼。 字串
NAME 資源名稱。 字串
properties Front Door 路由規則的屬性 RoutingRuleProperties

RoutingRuleProperties

名稱 描述
acceptedProtocols 要符合此規則的通訊協定配置 包含任何專案的字串陣列:
'Http'
'Https'
backendPool 此規則路由傳送至的 BackendPool 參考。 SubResource
cacheConfiguration 與此規則相關聯的快取組態。 CacheConfiguration
customForwardingPath 用來重寫此規則所比對之資源路徑的自訂路徑。 保留空白將使用傳入路徑。 字串
enabledState 是否要啟用此規則。 允許的值是 'Enabled' 或 'Disabled' 'Disabled'
'Enabled'
forwardingProtocol 將流量轉送至後端時,此規則將使用的通訊協定。 'HttpOnly'
'HttpsOnly'
'MatchRequest'
frontendEndpoints 與此規則相關聯的前端端點 SubResource[]
patternsToMatch 規則的路由模式。 string[]

CacheConfiguration

名稱 描述
dynamicCompression 是否對快取的內容使用動態壓縮 'Disabled'
'Enabled'
queryParameterStripDirective 形成快取索引鍵時,URL 查詢字詞的處理方式。 'StripAll'
'StripNone'

快速入門範本

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

範本 描述
在 Azure API 管理 前面建立 Azure Front Door

部署至 Azure
此範例示範如何使用 Azure Front Door 作為 Azure API 管理 前面的全域負載平衡器。
建立基本 Front Door

部署至 Azure
此範本會建立具有單一後端的基本 Front Door 設定。
建立已針對特定路由啟用快取功能的 Front Door

部署至 Azure
此範本會針對定義的路由組態建立已啟用快取功能的 Front Door,因此會快取工作負載的任何靜態資產。
建立具有多個後端和後端集區的 Front Door

部署至 Azure
此範本會建立 Front Door,並針對後端集區中的多個後端設定負載平衡,以及根據 URL 路徑跨後端集區。
建立具有 HTTP 至 HTTPS 重新導向的 Front Door

部署至 Azure
此範本會建立 HTTP 至 HTTPS 重新導向的 Front Door 設定。
使用 Front Door 新增自訂網域和受控憑證

部署至 Azure
此範本會使用 Front Door 上線並保護自訂網域
使用 Front Door 新增自訂網域和自訂憑證

部署至 Azure
此範本會使用客戶管理的憑證將 Front Door 上線並保護自訂網域
在 Front Door 上控制後端的健康狀態探查

部署至 Azure
此範本會藉由設定探查路徑以及將傳送探查的間隔,來更新 Front Door 以變更健康情況探查設定。
使用Active-Standby設定建立 Front Door

部署至 Azure
此範本會建立 Front Door,示範Active-Standby應用程式拓撲的優先順序型路由。
為 Front Door 主機名稱設定工作階段親和性

部署至 Azure
此範本會更新 Front Door,以啟用前端主機的會話親和性,藉此將來自相同使用者會話的後續流量傳送至相同的後端。

ARM 範本資源定義

frontDoors 資源類型可以部署到:

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

資源格式

若要建立Microsoft。網路/frontDoors 資源,將下列 JSON 新增至您的範本。

{
  "type": "Microsoft.Network/frontDoors",
  "apiVersion": "2018-08-01",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "properties": {
    "backendPools": [
      {
        "id": "string",
        "name": "string",
        "properties": {
          "backends": [
            {
              "address": "string",
              "backendHostHeader": "string",
              "enabledState": "string",
              "httpPort": "int",
              "httpsPort": "int",
              "priority": "int",
              "weight": "int"
            }
          ],
          "healthProbeSettings": {
            "id": "string"
          },
          "loadBalancingSettings": {
            "id": "string"
          }
        }
      }
    ],
    "enabledState": "string",
    "friendlyName": "string",
    "frontendEndpoints": [
      {
        "id": "string",
        "name": "string",
        "properties": {
          "hostName": "string",
          "sessionAffinityEnabledState": "string",
          "sessionAffinityTtlSeconds": "int",
          "webApplicationFirewallPolicyLink": {
            "id": "string"
          }
        }
      }
    ],
    "healthProbeSettings": [
      {
        "id": "string",
        "name": "string",
        "properties": {
          "intervalInSeconds": "int",
          "path": "string",
          "protocol": "string"
        }
      }
    ],
    "loadBalancingSettings": [
      {
        "id": "string",
        "name": "string",
        "properties": {
          "additionalLatencyMilliseconds": "int",
          "sampleSize": "int",
          "successfulSamplesRequired": "int"
        }
      }
    ],
    "routingRules": [
      {
        "id": "string",
        "name": "string",
        "properties": {
          "acceptedProtocols": [ "string" ],
          "backendPool": {
            "id": "string"
          },
          "cacheConfiguration": {
            "dynamicCompression": "string",
            "queryParameterStripDirective": "string"
          },
          "customForwardingPath": "string",
          "enabledState": "string",
          "forwardingProtocol": "string",
          "frontendEndpoints": [
            {
              "id": "string"
            }
          ],
          "patternsToMatch": [ "string" ]
        }
      }
    ]
  }
}

屬性值

frontDoors

名稱 描述
type 資源類型 'Microsoft。網路/frontDoors'
apiVersion 資源 API 版本 '2018-08-01'
NAME 資源名稱 字串 (必要)

字元限制:5-64

有效字元:
英數字元和連字號。

以英數字元開頭及結尾。

資源名稱在 Azure 中必須是唯一的。
location 資源位置。 字串
tags 資源標籤。 標記名稱和值的字典。 請參閱 範本中的標記
properties Front Door Load Balancer的屬性 FrontDoorProperties

FrontDoorProperties

名稱 描述
backendPools 可用於路由規則的後端集區。 BackendPool[]
enabledState Front Door 負載平衡器的操作狀態。 允許的值是 'Enabled' 或 'Disabled' 'Disabled'
'Enabled'
friendlyName frontDoor 的易記名稱 字串
frontendEndpoints 可用於路由規則的前端端點。 FrontendEndpoint[]
healthProbeSettings 與此 Front Door 執行個體建立關聯的健康狀態探查設定。 HealthProbeSettingsModel[]
loadBalancingSettings 與此 Front Door 執行個體建立關聯的負載平衡設定。 LoadBalancingSettingsModel[]
routingRules 與此 Front Door 相關聯的路由規則。 RoutingRule[]

BackendPool

名稱 描述
id 資源識別碼。 字串
NAME 資源名稱。 字串
properties Front Door 後端集區的屬性 BackendPoolProperties

BackendPoolProperties

名稱 描述
後端 此集區的後端集 Backend[]
healthProbeSettings 後端集區的 L7 健康情況探查設定 SubResource
loadBalancingSettings 後端集區的負載平衡設定 SubResource

後端

名稱 描述
address 後端的位置 (IP 位址或 FQDN) 字串
backendHostHeader 用來作為傳送至後端之主機標頭的值。 如果空白或未指定,則預設為傳入主機。 字串
enabledState 是否要啟用這個後端。 允許的值是 'Enabled' 或 'Disabled' 'Disabled'
'Enabled'
HTTPPort HTTP TCP 連接埠號碼。 必須介於 1 到 65535 之間。 int
HTTPsPort HTTPS TCP 連接埠號碼。 必須介於 1 到 65535 之間。 int
priority 用於負載平衡的優先順序。 如果優先順序較低的後端狀況良好,則不會使用較高優先順序的負載平衡。 int
重量 這個端點的加權,適用於負載平衡用途。 int

SubResource

名稱 描述
id 資源識別碼。 字串

FrontendEndpoint

名稱 描述
id 資源識別碼。 字串
NAME 資源名稱。 字串
properties 前端端點的屬性 FrontendEndpointProperties

FrontendEndpointProperties

名稱 描述
hostName frontendEndpoint 的主機名稱。 必須是網域名稱。 字串
sessionAffinityEnabledState 是否允許此主機上的工作階段親和性。 有效選項為 'Enabled' 或 'Disabled' 'Disabled'
'Enabled'
sessionAffinityTtlSeconds 閒置。 此欄位將被忽略。 如果適用的話,則為可在幾秒鐘之後用於工作階段親和性的 TTL。 int
webApplicationFirewallPolicyLink 如果適用) ,請為每個主機定義Web 應用程式防火牆原則 ( FrontendEndpointUpdateParametersWebApplicationFirewa...

FrontendEndpointUpdateParametersWebApplicationFirewa...

名稱 描述
id 資源識別碼。 字串

HealthProbeSettingsModel

名稱 描述
id 資源識別碼。 字串
NAME 資源名稱。 字串
properties 健康情況探查設定的屬性 HealthProbeSettingsProperties

HealthProbeSettingsProperties

名稱 描述
intervalInSeconds 健康狀態探查的間隔秒數。 int
path 要用於健康狀態探查的路徑。 預設為 / 字串
protocol 要用於此探查的通訊協定配置 'Http'
'Https'

LoadBalancingSettingsModel

名稱 描述
id 資源識別碼。 字串
NAME 資源名稱。 字串
properties 負載平衡設定的屬性 LoadBalancingSettingsProperties

LoadBalancingSettingsProperties

名稱 描述
additionalLatencyMilliseconds 探查進入最低延遲貯體的額外延遲以毫秒為單位 int
sampleSize 要考慮進行負載平衡決策的範例數目 int
successfulSamplesRequired 必須成功之範例期間內的樣本數目 int

RoutingRule

名稱 描述
id 資源識別碼。 字串
NAME 資源名稱。 字串
properties Front Door 路由規則的屬性 RoutingRuleProperties

RoutingRuleProperties

名稱 描述
acceptedProtocols 要符合此規則的通訊協定配置 包含任何專案的字串陣列:
'Http'
'Https'
backendPool 此規則路由傳送至的 BackendPool 參考。 SubResource
cacheConfiguration 與此規則相關聯的快取組態。 CacheConfiguration
customForwardingPath 用來重寫此規則所比對之資源路徑的自訂路徑。 保留空白將使用傳入路徑。 字串
enabledState 是否要啟用此規則。 允許的值是 'Enabled' 或 'Disabled' 'Disabled'
'Enabled'
forwardingProtocol 將流量轉送至後端時,此規則將使用的通訊協定。 'HttpOnly'
'HttpsOnly'
'MatchRequest'
frontendEndpoints 與此規則相關聯的前端端點 SubResource[]
patternsToMatch 規則的路由模式。 string[]

CacheConfiguration

名稱 描述
dynamicCompression 是否對快取的內容使用動態壓縮 'Disabled'
'Enabled'
queryParameterStripDirective 形成快取索引鍵時,URL 查詢字詞的處理方式。 'StripAll'
'StripNone'

快速入門範本

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

範本 描述
在 Azure API 管理 前面建立 Azure Front Door

部署至 Azure
此範例示範如何使用 Azure Front Door 作為 Azure API 管理前面的全域負載平衡器。
建立基本 Front Door

部署至 Azure
此範本會建立具有單一後端的基本 Front Door 設定。
建立已針對特定路由啟用快取功能的 Front Door

部署至 Azure
此範本會針對定義的路由設定建立已啟用快取功能的 Front Door,因此會快取工作負載的任何靜態資產。
建立具有多個後端和後端集區的 Front Door

部署至 Azure
此範本會建立 Front Door,並針對後端集區中的多個後端設定負載平衡,以及根據 URL 路徑跨後端集區。
建立具有 HTTP 至 HTTPS 重新導向的 Front Door

部署至 Azure
此範本會建立適用于 HTTP 至 HTTPS 重新導向的 Front Door 設定。
使用 Front Door 新增自訂網域和受控憑證

部署至 Azure
此範本會使用 Front Door 將自訂網域上線並保護
使用 Front Door 新增自訂網域和自訂憑證

部署至 Azure
此範本會使用客戶管理的憑證將 Front Door 上線並保護自訂網域
在 Front Door 上控制後端的健康狀態探查

部署至 Azure
此範本會藉由設定探查路徑以及將傳送探查的間隔,來更新 Front Door 以變更健康情況探查設定。
使用 Active-Standby 組態建立 Front Door

部署至 Azure
此範本會建立 Front Door,示範Active-Standby應用程式拓撲的優先順序型路由。
為 Front Door 主機名稱設定工作階段親和性

部署至 Azure
此範本會更新 Front Door,以啟用前端主機的會話親和性,藉此將來自相同使用者會話的後續流量傳送至相同的後端。

Terraform (AzAPI 提供者) 資源定義

frontDoors 資源類型可以部署到:

  • 資源群組

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

資源格式

若要建立Microsoft。網路/frontDoors 資源,將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Network/frontDoors@2018-08-01"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      backendPools = [
        {
          id = "string"
          name = "string"
          properties = {
            backends = [
              {
                address = "string"
                backendHostHeader = "string"
                enabledState = "string"
                httpPort = int
                httpsPort = int
                priority = int
                weight = int
              }
            ]
            healthProbeSettings = {
              id = "string"
            }
            loadBalancingSettings = {
              id = "string"
            }
          }
        }
      ]
      enabledState = "string"
      friendlyName = "string"
      frontendEndpoints = [
        {
          id = "string"
          name = "string"
          properties = {
            hostName = "string"
            sessionAffinityEnabledState = "string"
            sessionAffinityTtlSeconds = int
            webApplicationFirewallPolicyLink = {
              id = "string"
            }
          }
        }
      ]
      healthProbeSettings = [
        {
          id = "string"
          name = "string"
          properties = {
            intervalInSeconds = int
            path = "string"
            protocol = "string"
          }
        }
      ]
      loadBalancingSettings = [
        {
          id = "string"
          name = "string"
          properties = {
            additionalLatencyMilliseconds = int
            sampleSize = int
            successfulSamplesRequired = int
          }
        }
      ]
      routingRules = [
        {
          id = "string"
          name = "string"
          properties = {
            acceptedProtocols = [
              "string"
            ]
            backendPool = {
              id = "string"
            }
            cacheConfiguration = {
              dynamicCompression = "string"
              queryParameterStripDirective = "string"
            }
            customForwardingPath = "string"
            enabledState = "string"
            forwardingProtocol = "string"
            frontendEndpoints = [
              {
                id = "string"
              }
            ]
            patternsToMatch = [
              "string"
            ]
          }
        }
      ]
    }
  })
}

屬性值

frontDoors

名稱 描述
type 資源類型 「Microsoft。Network/frontDoors@2018-08-01」
NAME 資源名稱 需要字串 ()

字元限制:5-64

有效字元:
英數字元和連字號。

以英數字元開頭及結尾。

資源名稱在整個 Azure 中必須是唯一的。
location 資源位置。 字串
parent_id 若要部署至資源群組,請使用該資源群組的識別碼。 需要字串 ()
tags 資源標籤。 標記名稱和值的字典。
properties Front Door Load Balancer的屬性 FrontDoorProperties

FrontDoorProperties

名稱 描述
backendPools 可用於路由規則的後端集區。 BackendPool[]
enabledState Front Door 負載平衡器的操作狀態。 允許的值為 'Enabled' 或 'Disabled' 「Disabled」
「Enabled」
friendlyName frontDoor 的易記名稱 字串
frontendEndpoints 路由規則可用的前端端點。 FrontendEndpoint[]
healthProbeSettings 與此 Front Door 執行個體建立關聯的健康狀態探查設定。 HealthProbeSettingsModel[]
loadBalancingSettings 與此 Front Door 執行個體建立關聯的負載平衡設定。 LoadBalancingSettingsModel[]
routingRules 與此 Front Door 相關聯的路由規則。 RoutingRule[]

BackendPool

名稱 描述
id 資源識別碼。 字串
NAME 資源名稱。 字串
properties Front Door 後端集區的屬性 BackendPoolProperties

BackendPoolProperties

名稱 描述
後端 此集區的後端集合 Backend[]
healthProbeSettings 後端集區的 L7 健康情況探查設定 SubResource
loadBalancingSettings 後端集區的負載平衡設定 SubResource

後端

名稱 描述
address 後端的位置 (IP 位址或 FQDN) 字串
backendHostHeader 用來作為傳送至後端之主機標頭的值。 如果空白或未指定,這會預設為傳入主機。 字串
enabledState 是否要啟用這個後端。 允許的值為 'Enabled' 或 'Disabled' 「Disabled」
「Enabled」
HTTPPort HTTP TCP 連接埠號碼。 必須介於 1 到 65535 之間。 int
HTTPsPort HTTPS TCP 連接埠號碼。 必須介於 1 到 65535 之間。 int
priority 用於負載平衡的優先順序。 如果優先順序較低的後端狀況良好,則不會使用較高優先順序的後端進行負載平衡。 int
重量 這個端點的加權,適用於負載平衡用途。 int

SubResource

名稱 描述
id 資源識別碼。 字串

FrontendEndpoint

名稱 描述
id 資源識別碼。 字串
NAME 資源名稱。 字串
properties 前端端點的屬性 FrontendEndpointProperties

FrontendEndpointProperties

名稱 描述
hostName frontendEndpoint 的主機名稱。 必須是網域名稱。 字串
sessionAffinityEnabledState 是否允許此主機上的工作階段親和性。 有效選項為 'Enabled' 或 'Disabled' 「Disabled」
「Enabled」
sessionAffinityTtlSeconds 閒置。 此欄位將被忽略。 如果適用的話,則為可在幾秒鐘之後用於工作階段親和性的 TTL。 int
webApplicationFirewallPolicyLink 如果適用) ,請定義每個主機 (Web 應用程式防火牆原則 FrontendEndpointUpdateParametersWebApplicationFirewa...

FrontendEndpointUpdateParametersWebApplicationFirewa...

名稱 描述
id 資源識別碼。 字串

HealthProbeSettingsModel

名稱 描述
id 資源識別碼。 字串
NAME 資源名稱。 字串
properties 健康情況探查設定的屬性 HealthProbeSettingsProperties

HealthProbeSettingsProperties

名稱 描述
intervalInSeconds 健康狀態探查的間隔秒數。 int
path 要用於健康狀態探查的路徑。 預設為 / 字串
protocol 要用於此探查的通訊協定配置 「Http」
「Https」

LoadBalancingSettingsModel

名稱 描述
id 資源識別碼。 字串
NAME 資源名稱。 字串
properties 負載平衡設定的屬性 LoadBalancingSettingsProperties

LoadBalancingSettingsProperties

名稱 描述
additionalLatencyMilliseconds 探查進入最低延遲貯體的額外延遲以毫秒為單位 int
sampleSize 要考慮進行負載平衡決策的範例數目 int
successfulSamplesRequired 必須成功之範例期間內的樣本數目 int

RoutingRule

名稱 描述
id 資源識別碼。 字串
NAME 資源名稱。 字串
properties Front Door 路由規則的屬性 RoutingRuleProperties

RoutingRuleProperties

名稱 描述
acceptedProtocols 要符合此規則的通訊協定配置 包含任何專案的字串陣列:
「Http」
「Https」
backendPool 此規則路由傳送至的 BackendPool 參考。 SubResource
cacheConfiguration 與此規則相關聯的快取組態。 CacheConfiguration
customForwardingPath 用來重寫此規則所比對之資源路徑的自訂路徑。 保留空白將使用傳入路徑。 字串
enabledState 是否要啟用此規則。 允許的值是 'Enabled' 或 'Disabled' 「Disabled」
「Enabled」
forwardingProtocol 將流量轉送至後端時,此規則將使用的通訊協定。 「HttpOnly」
「HttpsOnly」
「MatchRequest」
frontendEndpoints 與此規則相關聯的前端端點 SubResource[]
patternsToMatch 規則的路由模式。 string[]

CacheConfiguration

名稱 描述
dynamicCompression 是否對快取的內容使用動態壓縮 「Disabled」
「Enabled」
queryParameterStripDirective 形成快取索引鍵時,URL 查詢字詞的處理方式。 「StripAll」
「StripNone」