Skip to content

Instantly share code, notes, and snippets.

@marrobi
Created February 14, 2017 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marrobi/951ef8697d07dc642b4ae53545384db8 to your computer and use it in GitHub Desktop.
Save marrobi/951ef8697d07dc642b4ae53545384db8 to your computer and use it in GitHub Desktop.
Azure Application Gateway
{
"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