Skip to content

A collection of flexible ARM templates for building localNetworkGateways in Azure

License

Notifications You must be signed in to change notification settings

ArmReference/network-localNetworkGateways

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

localNetworkGateways

Reference deployment

{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "StorageAccountName": {
      "type": "string",
      "defaultValue": ""
    },
    "ContainerName": {
      "type": "string",
      "defaultValue": ""
    },
    "SasToken": {
      "type": "string",
      "defaultValue": ""
    }
  },
  "variables": {
    "Provider": "/Microsoft.Network",
    "Resource": "/localNetworkGateways",
    "templateUri": "[concat('https://',parameters('StorageAccountName'),'.blob.core.windows.net/',parameters('ContainerName'),variables('Provider'),variables('Resource'))]"
  },
  "resources": [
    {
      "name": "BuildBgpSettings-001",
      "type": "Microsoft.Resources/deployments",
      "apiVersion": "2016-09-01",
      "dependsOn": [ ],
      "properties": {
        "mode": "Incremental",
        "templateLink": {
          "uri": "[concat(variables('templateUri'), '/bgpSettings.json', parameters('SasToken'))]",
          "contentVersion": "2017.09.01.0"
        },
        "parameters": {
          "bgpPeeringAddress": {
            "value": ""
          }
        }
      }
    },
    {
      "name": "BuildAddressSpace-001",
      "type": "Microsoft.Resources/deployments",
      "apiVersion": "2016-09-01",
      "dependsOn": [ ],
      "properties": {
        "mode": "Incremental",
        "templateLink": {
          "uri": "[concat(variables('templateUri'), '/addressSpace.json', parameters('SasToken'))]",
          "contentVersion": "2017.09.01.0"
        },
        "parameters": {
          "AddressPrefixes": {
            "value": "10.0.0.0/8"
          }
        }
      }
    },
    {
      "name": "BuildAddressSpace-002",
      "type": "Microsoft.Resources/deployments",
      "apiVersion": "2016-09-01",
      "dependsOn": [ ],
      "properties": {
        "mode": "Incremental",
        "templateLink": {
          "uri": "[concat(variables('templateUri'), '/addressSpace.json', parameters('SasToken'))]",
          "contentVersion": "2017.09.01.0"
        },
        "parameters": {
          "AddressPrefixes": {
            "value": "172.16.0.0/16"
          }
        }
      }
    },
    {
      "name": "BuildLocalNetworkGateway-001",
      "type": "Microsoft.Resources/deployments",
      "apiVersion": "2016-09-01",
      "dependsOn": [ ],
      "properties": {
        "mode": "Incremental",
        "templateLink": {
          "uri": "[concat(variables('templateUri'), '/localNetworkGateways.json', parameters('SasToken'))]",
          "contentVersion": "2017.09.01.0"
        },
        "parameters": {
          "bgpSettings": {
            "value": "[reference('BuildBgpSettings-001').outputs.bgpSettings.value]"
          },
          "gatewayIpAddress": {
            "value": "1.2.3.4"
          },
          "localNetworkAddressSpace": {
            "value": "[createArray(reference('BuildAddressSpace-001').outputs.addressPrefixes.value,reference('BuildAddressSpace-002').outputs.addressPrefixes.value)]"
          },
          "name": {
            "value": "test-lng"
          }
        }
      }
    }
  ],
  "outputs": {
    "localNetworkGateways": {
      "type": "object",
      "value": "[reference('BuildLocalNetworkGateway-001').outputs.localNetworkGateway.value]"
    }
  }
}

About

A collection of flexible ARM templates for building localNetworkGateways in Azure

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published