applicationGateways 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.Network/applicationGateways 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.Network/applicationGateways@2015-05-01-preview' = {
etag: 'string'
location: 'string'
name: 'string'
properties: {
backendAddressPools: [
{
etag: 'string'
id: 'string'
name: 'string'
properties: {
backendAddresses: [
{
fqdn: 'string'
ipAddress: 'string'
}
]
backendIPConfigurations: [
{
id: 'string'
}
]
provisioningState: 'string'
}
}
]
backendHttpSettingsCollection: [
{
etag: 'string'
id: 'string'
name: 'string'
properties: {
cookieBasedAffinity: 'string'
port: int
protocol: 'string'
provisioningState: 'string'
}
}
]
frontendIPConfigurations: [
{
etag: 'string'
id: 'string'
name: 'string'
properties: {
privateIPAddress: 'string'
privateIPAllocationMethod: 'string'
provisioningState: 'string'
publicIPAddress: {
id: 'string'
}
subnet: {
id: 'string'
}
}
}
]
frontendPorts: [
{
etag: 'string'
id: 'string'
name: 'string'
properties: {
port: int
provisioningState: 'string'
}
}
]
gatewayIPConfigurations: [
{
etag: 'string'
id: 'string'
name: 'string'
properties: {
provisioningState: 'string'
subnet: {
id: 'string'
}
}
}
]
httpListeners: [
{
etag: 'string'
id: 'string'
name: 'string'
properties: {
frontendIPConfiguration: {
id: 'string'
}
frontendPort: {
id: 'string'
}
protocol: 'string'
provisioningState: 'string'
sslCertificate: {
id: 'string'
}
}
}
]
provisioningState: 'string'
requestRoutingRules: [
{
etag: 'string'
id: 'string'
name: 'string'
properties: {
backendAddressPool: {
id: 'string'
}
backendHttpSettings: {
id: 'string'
}
httpListener: {
id: 'string'
}
provisioningState: 'string'
ruleType: 'string'
}
}
]
resourceGuid: 'string'
sku: {
capacity: int
name: 'string'
tier: 'string'
}
sslCertificates: [
{
etag: 'string'
id: 'string'
name: 'string'
properties: {
data: 'string'
password: 'string'
provisioningState: 'string'
publicCertData: 'string'
}
}
]
}
tags: {
{customized property}: 'string'
}
}
ApplicationGatewayBackendAddress
名字 |
描述 |
價值 |
fqdn |
取得或設定 dns 名稱 |
字串 |
ipAddress |
取得或設定IP位址 |
字串 |
ApplicationGatewayBackendAddressPool
ApplicationGatewayBackendHttpSettings
名字 |
描述 |
價值 |
cookieBasedAffinity |
取得或設定 Cookie 親和性 |
'Disabled' 'Enabled' |
港口 |
取得或設定埠 |
int |
協定 |
取得或設定通訊協定 |
'Http' 'Https' |
provisioningState |
取得或設定後端 HTTP 設定資源的布建狀態更新/刪除/失敗 |
字串 |
ApplicationGatewayFrontendIPConfiguration
名字 |
描述 |
價值 |
privateIPAddress |
取得或設定網路介面IP組態的 privateIPAddress |
字串 |
privateIPAllocationMethod |
取得或設定 PrivateIP 設定方法 (靜態/動態) |
'Dynamic' 'Static' |
provisioningState |
取得或設定 PublicIP 資源更新/刪除/失敗的布建狀態 |
字串 |
publicIPAddress |
取得或設定 PublicIP 資源的參考 |
SubResource |
子 |
取得或設定子網資源的參考 |
SubResource |
ApplicationGatewayFrontendPort
名字 |
描述 |
價值 |
港口 |
取得或設定前埠 |
int |
provisioningState |
取得或設定前埠資源的布建狀態更新/刪除/失敗 |
字串 |
ApplicationGatewayHttpListener
名字 |
描述 |
價值 |
frontendIPConfiguration |
取得或設定應用程式閘道的前端IP組態資源 |
SubResource |
frontendPort |
取得或設定應用程式閘道的前埠資源 |
SubResource |
協定 |
取得或設定通訊協定 |
'Http' 'Https' |
provisioningState |
取得或設定 HTTP 接聽程式資源更新/刪除/失敗的布建狀態 |
字串 |
sslCertificate |
取得或設定應用程式閘道的 SSL 憑證資源 |
SubResource |
ApplicationGatewayIPConfiguration
名字 |
描述 |
價值 |
provisioningState |
取得或設定應用程式閘道子網資源的布建狀態更新/刪除/失敗 |
字串 |
子 |
取得或設定子網資源的參考。應用程式閘道從中取得其私人位址的子網 |
SubResource |
ApplicationGatewayRequestRoutingRule
名字 |
描述 |
價值 |
backendAddressPool |
取得或設定應用程式閘道的後端位址池資源 |
SubResource |
backendHttpSettings |
取得或設定應用程式閘道的前埠資源 |
SubResource |
httpListener |
取得或設定應用程式閘道的 HTTP 接聽程序資源 |
SubResource |
provisioningState |
取得或設定要求路由規則資源的布建狀態更新/刪除/失敗 |
字串 |
ruleType |
取得或設定規則類型 |
'Basic' |
名字 |
描述 |
價值 |
能力 |
取得或設定應用程式閘道的容量(實例計數) |
int |
名字 |
取得或設定應用程式閘道 SKU 的名稱 |
'Standard_Large' 'Standard_Medium' 'Standard_Small' |
層 |
取得或設定應用程式閘道的層 |
'Standard' |
ApplicationGatewaySslCertificate
名字 |
描述 |
價值 |
數據 |
取得或設定憑證數據 |
字串 |
密碼 |
取得或設定憑證密碼 |
字串 |
provisioningState |
取得或設定 SSL 憑證資源更新/刪除/失敗的布建狀態 |
字串 |
publicCertData |
取得或設定憑證公用數據 |
字串 |
Microsoft.Network/applicationGateways
下列快速入門範例會部署此資源類型。
Bicep 檔案 |
描述 |
具有 NAT 閘道和應用程式閘道的 AKS 叢集 |
此範例示範如何使用 NAT 閘道部署 AKS 叢集以進行輸出連線,以及用於輸入連線的應用程式閘道。 |
使用應用程式閘道輸入控制器 AKS 叢集 |
此範例示範如何使用應用程式閘道、應用程式閘道輸入控制器、Azure Container Registry、Log Analytics 和 Key Vault 部署 AKS 叢集 |
使用內部 API 管理和 Web 應用程式 應用程式閘道 |
應用程式閘道會將因特網流量路由傳送至虛擬網路(內部模式)API 管理實例,此實例會服務裝載於 Azure Web 應用程式中的 Web API。 |
使用 WAF 和防火牆原則 應用程式閘道 |
此範本會建立已設定 WAF 以及防火牆原則的應用程式閘道 |
建立 Web 應用程式、PE 和應用程式閘道 v2 |
此範本會在 Azure 虛擬網路子網中建立具有私人端點的 Azure Web 應用程式,也就是應用程式閘道 v2。 應用程式閘道部署在 vNet (子網) 中。 Web 應用程式會使用私人端點限制對子網流量的存取 |
建立應用程式閘道 v2 |
此範本會在虛擬網路中建立應用程式閘道 v2,並使用公用前端設定自動調整屬性和 HTTP 負載平衡規則 |
建立 Azure 應用程式閘道 v2 |
此範本會在後端集區中建立具有兩部 Windows Server 2016 伺服器的 Azure 應用程式閘道 |
在 Azure 應用程式閘道上建立 Azure WAF v2 |
此範本會在 Azure 應用程式閘道上建立 Azure Web 應用程式防火牆 v2,並在後端集區中有兩部 Windows Server 2016 伺服器 |
使用應用程式閘道在內部 VNet 中建立 API 管理 |
此範本示範如何在受 Azure 應用程式閘道保護的專用網上建立 Azure API 管理的實例。 |
使用憑證建立應用程式閘道 |
此範本示範如何產生 Key Vault 自我簽署憑證,然後從應用程式閘道參考。 |
使用 Azure 應用程式閘道部署 Windows VM 擴展集 |
此範本可讓您部署與 Azure 應用程式閘道整合的簡單 Windows VM 擴展集,並支援最多 1000 部 VM |
使用應用程式閘道來源 Front Door Standard/Premium |
此範本會建立 Front Door Standard/Premium 和應用程式閘道實例,並使用 NSG 和 WAF 原則來驗證流量是否通過 Front Door 來源。 |
使用容器實例和應用程式閘道 Front Door |
此範本會建立具有容器群組和應用程式閘道的 Front Door Standard/Premium。 |
applicationGateways 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.Network/applicationGateways 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.Network/applicationGateways",
"apiVersion": "2015-05-01-preview",
"name": "string",
"etag": "string",
"location": "string",
"properties": {
"backendAddressPools": [
{
"etag": "string",
"id": "string",
"name": "string",
"properties": {
"backendAddresses": [
{
"fqdn": "string",
"ipAddress": "string"
}
],
"backendIPConfigurations": [
{
"id": "string"
}
],
"provisioningState": "string"
}
}
],
"backendHttpSettingsCollection": [
{
"etag": "string",
"id": "string",
"name": "string",
"properties": {
"cookieBasedAffinity": "string",
"port": "int",
"protocol": "string",
"provisioningState": "string"
}
}
],
"frontendIPConfigurations": [
{
"etag": "string",
"id": "string",
"name": "string",
"properties": {
"privateIPAddress": "string",
"privateIPAllocationMethod": "string",
"provisioningState": "string",
"publicIPAddress": {
"id": "string"
},
"subnet": {
"id": "string"
}
}
}
],
"frontendPorts": [
{
"etag": "string",
"id": "string",
"name": "string",
"properties": {
"port": "int",
"provisioningState": "string"
}
}
],
"gatewayIPConfigurations": [
{
"etag": "string",
"id": "string",
"name": "string",
"properties": {
"provisioningState": "string",
"subnet": {
"id": "string"
}
}
}
],
"httpListeners": [
{
"etag": "string",
"id": "string",
"name": "string",
"properties": {
"frontendIPConfiguration": {
"id": "string"
},
"frontendPort": {
"id": "string"
},
"protocol": "string",
"provisioningState": "string",
"sslCertificate": {
"id": "string"
}
}
}
],
"provisioningState": "string",
"requestRoutingRules": [
{
"etag": "string",
"id": "string",
"name": "string",
"properties": {
"backendAddressPool": {
"id": "string"
},
"backendHttpSettings": {
"id": "string"
},
"httpListener": {
"id": "string"
},
"provisioningState": "string",
"ruleType": "string"
}
}
],
"resourceGuid": "string",
"sku": {
"capacity": "int",
"name": "string",
"tier": "string"
},
"sslCertificates": [
{
"etag": "string",
"id": "string",
"name": "string",
"properties": {
"data": "string",
"password": "string",
"provisioningState": "string",
"publicCertData": "string"
}
}
]
},
"tags": {
"{customized property}": "string"
}
}
ApplicationGatewayBackendAddress
名字 |
描述 |
價值 |
fqdn |
取得或設定 dns 名稱 |
字串 |
ipAddress |
取得或設定IP位址 |
字串 |
ApplicationGatewayBackendAddressPool
ApplicationGatewayBackendAddressPoolPropertiesFormat
ApplicationGatewayBackendHttpSettings
ApplicationGatewayBackendHttpSettingsPropertiesFormat
名字 |
描述 |
價值 |
cookieBasedAffinity |
取得或設定 Cookie 親和性 |
'Disabled' 'Enabled' |
港口 |
取得或設定埠 |
int |
協定 |
取得或設定通訊協定 |
'Http' 'Https' |
provisioningState |
取得或設定後端 HTTP 設定資源的布建狀態更新/刪除/失敗 |
字串 |
ApplicationGatewayFrontendIPConfiguration
ApplicationGatewayFrontendIPConfigurationPropertiesFormat
名字 |
描述 |
價值 |
privateIPAddress |
取得或設定網路介面IP組態的 privateIPAddress |
字串 |
privateIPAllocationMethod |
取得或設定 PrivateIP 設定方法 (靜態/動態) |
'Dynamic' 'Static' |
provisioningState |
取得或設定 PublicIP 資源更新/刪除/失敗的布建狀態 |
字串 |
publicIPAddress |
取得或設定 PublicIP 資源的參考 |
SubResource |
子 |
取得或設定子網資源的參考 |
SubResource |
ApplicationGatewayFrontendPort
ApplicationGatewayFrontendPortPropertiesFormat
名字 |
描述 |
價值 |
港口 |
取得或設定前埠 |
int |
provisioningState |
取得或設定前埠資源的布建狀態更新/刪除/失敗 |
字串 |
ApplicationGatewayHttpListener
ApplicationGatewayHttpListenerPropertiesFormat
名字 |
描述 |
價值 |
frontendIPConfiguration |
取得或設定應用程式閘道的前端IP組態資源 |
SubResource |
frontendPort |
取得或設定應用程式閘道的前埠資源 |
SubResource |
協定 |
取得或設定通訊協定 |
'Http' 'Https' |
provisioningState |
取得或設定 HTTP 接聽程式資源更新/刪除/失敗的布建狀態 |
字串 |
sslCertificate |
取得或設定應用程式閘道的 SSL 憑證資源 |
SubResource |
ApplicationGatewayIPConfiguration
ApplicationGatewayIPConfigurationPropertiesFormat
名字 |
描述 |
價值 |
provisioningState |
取得或設定應用程式閘道子網資源的布建狀態更新/刪除/失敗 |
字串 |
子 |
取得或設定子網資源的參考。應用程式閘道從中取得其私人位址的子網 |
SubResource |
ApplicationGatewayPropertiesFormat
ApplicationGatewayRequestRoutingRule
ApplicationGatewayRequestRoutingRulePropertiesFormat
名字 |
描述 |
價值 |
backendAddressPool |
取得或設定應用程式閘道的後端位址池資源 |
SubResource |
backendHttpSettings |
取得或設定應用程式閘道的前埠資源 |
SubResource |
httpListener |
取得或設定應用程式閘道的 HTTP 接聽程序資源 |
SubResource |
provisioningState |
取得或設定要求路由規則資源的布建狀態更新/刪除/失敗 |
字串 |
ruleType |
取得或設定規則類型 |
'Basic' |
名字 |
描述 |
價值 |
能力 |
取得或設定應用程式閘道的容量(實例計數) |
int |
名字 |
取得或設定應用程式閘道 SKU 的名稱 |
'Standard_Large' 'Standard_Medium' 'Standard_Small' |
層 |
取得或設定應用程式閘道的層 |
'Standard' |
ApplicationGatewaySslCertificate
ApplicationGatewaySslCertificatePropertiesFormat
名字 |
描述 |
價值 |
數據 |
取得或設定憑證數據 |
字串 |
密碼 |
取得或設定憑證密碼 |
字串 |
provisioningState |
取得或設定 SSL 憑證資源更新/刪除/失敗的布建狀態 |
字串 |
publicCertData |
取得或設定憑證公用數據 |
字串 |
Microsoft.Network/applicationGateways
名字 |
描述 |
價值 |
apiVersion |
API 版本 |
'2015-05-01-preview' |
etag |
取得唯一的唯一 |
字串 |
位置 |
資源位置 |
字串 (必要) |
名字 |
資源名稱 |
字串 (必要) |
性能 |
應用程式閘道的屬性 |
ApplicationGatewayPropertiesFormat |
標籤 |
資源標籤 |
標記名稱和值的字典。 請參閱範本中的 標籤 |
類型 |
資源類型 |
'Microsoft.Network/applicationGateways' |
下列快速入門範本會部署此資源類型。
Terraform (AzAPI 提供者) 資源定義
applicationGateways 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.Network/applicationGateways 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/applicationGateways@2015-05-01-preview"
name = "string"
etag = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
backendAddressPools = [
{
etag = "string"
id = "string"
name = "string"
properties = {
backendAddresses = [
{
fqdn = "string"
ipAddress = "string"
}
]
backendIPConfigurations = [
{
id = "string"
}
]
provisioningState = "string"
}
}
]
backendHttpSettingsCollection = [
{
etag = "string"
id = "string"
name = "string"
properties = {
cookieBasedAffinity = "string"
port = int
protocol = "string"
provisioningState = "string"
}
}
]
frontendIPConfigurations = [
{
etag = "string"
id = "string"
name = "string"
properties = {
privateIPAddress = "string"
privateIPAllocationMethod = "string"
provisioningState = "string"
publicIPAddress = {
id = "string"
}
subnet = {
id = "string"
}
}
}
]
frontendPorts = [
{
etag = "string"
id = "string"
name = "string"
properties = {
port = int
provisioningState = "string"
}
}
]
gatewayIPConfigurations = [
{
etag = "string"
id = "string"
name = "string"
properties = {
provisioningState = "string"
subnet = {
id = "string"
}
}
}
]
httpListeners = [
{
etag = "string"
id = "string"
name = "string"
properties = {
frontendIPConfiguration = {
id = "string"
}
frontendPort = {
id = "string"
}
protocol = "string"
provisioningState = "string"
sslCertificate = {
id = "string"
}
}
}
]
provisioningState = "string"
requestRoutingRules = [
{
etag = "string"
id = "string"
name = "string"
properties = {
backendAddressPool = {
id = "string"
}
backendHttpSettings = {
id = "string"
}
httpListener = {
id = "string"
}
provisioningState = "string"
ruleType = "string"
}
}
]
resourceGuid = "string"
sku = {
capacity = int
name = "string"
tier = "string"
}
sslCertificates = [
{
etag = "string"
id = "string"
name = "string"
properties = {
data = "string"
password = "string"
provisioningState = "string"
publicCertData = "string"
}
}
]
}
})
}
ApplicationGatewayBackendAddress
名字 |
描述 |
價值 |
fqdn |
取得或設定 dns 名稱 |
字串 |
ipAddress |
取得或設定IP位址 |
字串 |
ApplicationGatewayBackendAddressPool
ApplicationGatewayBackendAddressPoolPropertiesFormat
ApplicationGatewayBackendHttpSettings
ApplicationGatewayBackendHttpSettingsPropertiesFormat
名字 |
描述 |
價值 |
cookieBasedAffinity |
取得或設定 Cookie 親和性 |
'Disabled' 'Enabled' |
港口 |
取得或設定埠 |
int |
協定 |
取得或設定通訊協定 |
'Http' 'Https' |
provisioningState |
取得或設定後端 HTTP 設定資源的布建狀態更新/刪除/失敗 |
字串 |
ApplicationGatewayFrontendIPConfiguration
ApplicationGatewayFrontendIPConfigurationPropertiesFormat
名字 |
描述 |
價值 |
privateIPAddress |
取得或設定網路介面IP組態的 privateIPAddress |
字串 |
privateIPAllocationMethod |
取得或設定 PrivateIP 設定方法 (靜態/動態) |
'Dynamic' 'Static' |
provisioningState |
取得或設定 PublicIP 資源更新/刪除/失敗的布建狀態 |
字串 |
publicIPAddress |
取得或設定 PublicIP 資源的參考 |
SubResource |
子 |
取得或設定子網資源的參考 |
SubResource |
ApplicationGatewayFrontendPort
ApplicationGatewayFrontendPortPropertiesFormat
名字 |
描述 |
價值 |
港口 |
取得或設定前埠 |
int |
provisioningState |
取得或設定前埠資源的布建狀態更新/刪除/失敗 |
字串 |
ApplicationGatewayHttpListener
ApplicationGatewayHttpListenerPropertiesFormat
名字 |
描述 |
價值 |
frontendIPConfiguration |
取得或設定應用程式閘道的前端IP組態資源 |
SubResource |
frontendPort |
取得或設定應用程式閘道的前埠資源 |
SubResource |
協定 |
取得或設定通訊協定 |
'Http' 'Https' |
provisioningState |
取得或設定 HTTP 接聽程式資源更新/刪除/失敗的布建狀態 |
字串 |
sslCertificate |
取得或設定應用程式閘道的 SSL 憑證資源 |
SubResource |
ApplicationGatewayIPConfiguration
ApplicationGatewayIPConfigurationPropertiesFormat
名字 |
描述 |
價值 |
provisioningState |
取得或設定應用程式閘道子網資源的布建狀態更新/刪除/失敗 |
字串 |
子 |
取得或設定子網資源的參考。應用程式閘道從中取得其私人位址的子網 |
SubResource |
ApplicationGatewayPropertiesFormat
ApplicationGatewayRequestRoutingRule
ApplicationGatewayRequestRoutingRulePropertiesFormat
名字 |
描述 |
價值 |
backendAddressPool |
取得或設定應用程式閘道的後端位址池資源 |
SubResource |
backendHttpSettings |
取得或設定應用程式閘道的前埠資源 |
SubResource |
httpListener |
取得或設定應用程式閘道的 HTTP 接聽程序資源 |
SubResource |
provisioningState |
取得或設定要求路由規則資源的布建狀態更新/刪除/失敗 |
字串 |
ruleType |
取得或設定規則類型 |
'Basic' |
名字 |
描述 |
價值 |
能力 |
取得或設定應用程式閘道的容量(實例計數) |
int |
名字 |
取得或設定應用程式閘道 SKU 的名稱 |
'Standard_Large' 'Standard_Medium' 'Standard_Small' |
層 |
取得或設定應用程式閘道的層 |
'Standard' |
ApplicationGatewaySslCertificate
ApplicationGatewaySslCertificatePropertiesFormat
名字 |
描述 |
價值 |
數據 |
取得或設定憑證數據 |
字串 |
密碼 |
取得或設定憑證密碼 |
字串 |
provisioningState |
取得或設定 SSL 憑證資源更新/刪除/失敗的布建狀態 |
字串 |
publicCertData |
取得或設定憑證公用數據 |
字串 |
Microsoft.Network/applicationGateways
名字 |
描述 |
價值 |
etag |
取得唯一的唯一 |
字串 |
位置 |
資源位置 |
字串 (必要) |
名字 |
資源名稱 |
字串 (必要) |
性能 |
應用程式閘道的屬性 |
ApplicationGatewayPropertiesFormat |
標籤 |
資源標籤 |
標記名稱和值的字典。 |
類型 |
資源類型 |
“Microsoft.Network/applicationGateways@2015-05-01-preview” |