Code Monkey home page Code Monkey logo

vnetpeerings's Introduction

Part 5 - vNet Peerings

The Azure 3 Tier Network

This part 5 of a 5 part series of templates to deploy a glorified 3 tier Azure network

  1. https://github.com/marckean/Azure-T1-Network
    • Resource Group based template
    • Most un-trusted tier, as it has access to the internet
    • The Azure Firewall is deployed - you could use two IaaS based NVAs and a couple of load balancers, however the Azure Firewall is PaaS, it's already highly available and scalable.

  1. https://github.com/marckean/Azure-T2-Network
    • Resource Group based template
    • Mid tier, best for applications. Deploy distributed applications to their own vNet with any number of subnets
    • BGP route propagation is allowed on the UDRs so that on-prem advertisements will ensure traffic destined to on-prem will route back via the ExpressRoute gateway in the Tier 3 network, then over the ExpressRoute circuit back to on-prem
    • A default route of 0.0.0.0/0 captures all other traffic sending this to the Azure Firewall for packet inspection and final control

  1. https://github.com/marckean/Azure-T3-Network
    • Resource Group based template
    • This is known as the hub/transit vNet, which has the connection/s back to on-prem
    • Currently there is one ExpressRoute gateway deployed, however you can configure ExpressRoute and Site-to-Site VPN coexistence for HA as a backup to ExpressRoute.

  1. https://github.com/marckean/Azure-T3plus-Network
    • Resource Group based template
    • This is the the most trusted and most isolated network as there's no UDRs to forward traffic to anywhere, there's access back to on-prem with the vNet peer settings Use Remote Gateways and Allow Gateway Transit turned on

  1. https://github.com/marckean/vNetPeerings
    • Subscription based template
    • All the peers, plus peer settings for all the vNets e.g. Use Remote Gateways and Allow Gateway Transit

See the deployment note below for more details about deployment, either as is or customised.

Template Description
Resource Group deployments deploy to resource groups and use schema: https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#

Subscription deployments deploy to subscriptions and use schema: https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#

For the serious security concious, this 3 tier network topology is one way to achieve super tight network security within Azure. In brief:

  • the T1 vNet can't talk directly with the T3 Transit Hub vNet
  • the T3 Transit Hub vNet can't talk directly with the T1 vNet

This 5 part deployment deploys the below Azure based network components only including the ExpressRoute gateway, but not the non-network components shown e.g. VMs, NICs, Load Balancers or ExpressRoute circuit itself - these are here to show what it could ultimately look like or be used for after the fact.

Deployment note

While you can deploy this fully functional deployment customised to suit your needs exactly, you can also deploy this environment as is to have a play and have a look at what it looks like in Azure. As part of this fully functional deployment - to ensure everything remains in-tact and works - it's recommended that the first four templates are deployed in the same order as above, however it's mandatory that the last one vNetPeerings is deployed last, as it is required that all vNets are deployed in order for peers to be created successfully.

This 5 part series of templates is fully functional with no over-lapping address ranges, UDRs have all the correct next hop IP addresses and all the template parameters are correctly set. In order to deploy this successfully, be sure to deploy the templates to following resource groups:

  • Azure-T1-Network | Resource Group T1_01
  • Azure-T2-Network | Resource Group T2_01
  • Azure-T3-Network | Resource Group T3_01
  • Azure-T3plus-Network | Resource Group T3plus_01
  • vNetPeerings | Resource Group Any Resource Group

This vNet Peerings repo is to be deployed last and fills in all the relevant peers for the vNets.

Custom Deployment

If you want to deploy a customised version of this deployment in a separate environment e.g. production, you can safely modify these templates to suit your own environment and it's super easy, all you need to do is edit the parameters for each template at the time of deployment.

For this vNet Peerings repo, as there's so many parameters with this template, it would be easier to edit the parameters in the Edit Template section in the the portal. It also doesn't matter which Resource Group or Subscription you choose here, as this is specified in the template parameters and the template deploys across both subscriptions & resource groups.

Note that as this template can deploy across Resource Groups and across Subscriptions, if you're using just the one subscription, simply fill in the same subscription ID throughout the peerArray parameter array for both existingLocalVirtualNetworkSubscriptionID and existingRemoteVirtualNetworkSubscriptionID.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.