Created
February 14, 2017 15:57
-
-
Save marrobi/951ef8697d07dc642b4ae53545384db8 to your computer and use it in GitHub Desktop.
Azure Application Gateway
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "Microsoft.Network/applicationGateways", | |
"apiVersion": "2016-03-30", | |
"name": "ApplicationGateway", | |
"location": "[resourceGroup().location]", | |
"dependsOn": [ | |
"[variables('ApplicationGatewayFrontEndIP')]" | |
], | |
"properties": { | |
"sku": { | |
"name": "Standard_Small", | |
"tier": "Standard", | |
"capacity": 1 | |
}, | |
"gatewayIPConfigurations": [ | |
{ | |
"name": "appGatewayIpConfig", | |
"properties": { | |
"provisioningState": "Succeeded", | |
"subnet": { | |
"id": "[variables('ApplicationGatewaySubnetRef')]" | |
} | |
} | |
} | |
], | |
"sslCertificates": [ | |
{ | |
"name": "MyCert", | |
"properties": { | |
"data": "[parameters('SSLCert')]", | |
"password": "[parameters('SSLCertPassword')]", | |
"httpListeners": [ | |
{ | |
"id": "[variables('ApplicationGatewayHttpListenerRef')]" | |
} | |
] | |
} | |
} | |
], | |
"authenticationCertificates": [], | |
"frontendIPConfigurations": [ | |
{ | |
"name": "appGatewayFrontendIP", | |
"properties": { | |
"privateIPAllocationMethod": "Dynamic", | |
"publicIPAddress": { | |
"id": "[variables('ApplicationGatewayFrontEndIP')]" | |
}, | |
"httpListeners": [ | |
{ | |
"id": "[variables('ApplicationGatewayHttpListenerRef')]" | |
} | |
] | |
} | |
} | |
], | |
"frontendPorts": [ | |
{ | |
"name": "appGatewayFrontendPort", | |
"properties": { | |
"port": 443, | |
"httpListeners": [ | |
{ | |
"id": "[variables('ApplicationGatewayHttpListenerRef')]" | |
} | |
] | |
} | |
} | |
], | |
"backendAddressPools": [ | |
{ | |
"name": "appGatewayBackendPool", | |
"properties": { | |
"backendAddresses": [ | |
{ | |
"IpAddress": "[reference(resourceId('Microsoft.Network/networkInterfaces',variables('HostNicName'))).ipConfigurations[0].properties.privateIPAddress]" | |
} | |
], | |
"requestRoutingRules": [ | |
{ | |
"id": "[variables('ApplicationGatewayRequestRoutingRulesRule1')]" | |
} | |
] | |
} | |
} | |
], | |
"backendHttpSettingsCollection": [ | |
{ | |
"name": "appGatewayBackendHttpSettings", | |
"properties": { | |
"port": 80, | |
"protocol": "Http", | |
"cookieBasedAffinity": "Disabled", | |
"requestTimeout": 60, | |
"requestRoutingRules": [ | |
{ | |
"id": "[variables('ApplicationGatewayRequestRoutingRulesRule1')]" | |
} | |
] | |
} | |
} | |
], | |
"httpListeners": [ | |
{ | |
"name": "appGatewayHttpListener", | |
"properties": { | |
"frontendIPConfiguration": { | |
"id": "[variables('ApplicationGatewayFrontendIPConfiguration')]" | |
}, | |
"frontendPort": { | |
"id": "[variables('ApplicationGatewayFrontendPort')]" | |
}, | |
"protocol": "Https", | |
"sslCertificate": { | |
"id": "[variables('ApplicationGatewaySslCertificate')]" | |
}, | |
"requireServerNameIndication": false, | |
"requestRoutingRules": [ | |
{ | |
"id": "[variables('ApplicationGatewayRequestRoutingRulesRule1')]" | |
} | |
] | |
} | |
} | |
], | |
"urlPathMaps": [], | |
"requestRoutingRules": [ | |
{ | |
"name": "rule1", | |
"properties": { | |
"provisioningState": "Succeeded", | |
"ruleType": "Basic", | |
"httpListener": { | |
"id": "[variables('ApplicationGatewayHttpListenerRef')]" | |
}, | |
"backendAddressPool": { | |
"id": "[variables('ApplicationGatewayBackendAddressPool')]" | |
}, | |
"backendHttpSettings": { | |
"id": "[variables('ApplicationGatewayBackendHttpSettings')]" | |
} | |
} | |
} | |
], | |
"probes": [] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment