Mastering Network Infrastructure in Azure: Architecting Connectivity

Shannmuka Buddabathini
6 min readJan 1, 2024

--

In this article, we will explore various aspects of designing network connectivity in Azure. We’ll delve into different connectivity options available for virtual networks and learn how to architect them effectively.

Understanding Connectivity Options

Imagine we have two main components: our on-premise network and our Azure virtual network. Within the Azure virtual network, we have subnets containing virtual machines. Additionally, there’s a gateway subnet with a VPN gateway for connecting to our on-premise environment.

Two main components

Now, let’s break down the different types of connectivity within Azure:

Connectivity Within a Virtual Network: This encompasses communication among Azure resources residing within the same virtual network. By default, resources within a virtual network can seamlessly communicate with each other.

Connectivity Within a Virtual Network

Connectivity to Resources in Other Virtual Networks: To extend connectivity to resources in different virtual networks, we employ methods such as virtual network peering and VNet-to-VNet connections through VPN gateways. This empowers resources in one virtual network to interact with those in another.

Connectivity to Resources in Other Virtual Networks

Connectivity to On-Premises: For establishing connectivity between our on-premise environment and Azure, we rely on VPN gateways. This connection can take the form of a site-to-site or point-to-site connection, catering to remote users who require access to Azure resources.

Connectivity to On-Premises

Outbound Connectivity to the Internet: In forthcoming sections, we will delve into the art of controlling outbound traffic, managing communication between virtual networks, and orchestrating interactions between resources and subnets within a virtual network. These considerations are pivotal in designing an effective network architecture in Azure.

Outbound Connectivity to the Internet

Designing Network Topology

Now, let’s embark on a journey to design our network architecture. Three primary topology patterns merit our attention:

Single-Network Approach: Within this pattern, all resources are deployed within a single Azure Virtual Network. Segmentation or subnetting is employed for isolating workloads. Resources within the same virtual network can communicate effortlessly without additional configuration.

Single-Network Approach

Multiple Peered Networks: Workloads are dispersed across multiple virtual networks, and these networks can communicate through virtual network peering. This pattern shines in scenarios demanding low-latency connections, such as database failover and high-volume transactions.

Multiple Peered Networks

Hub-Spoke Architecture: Widely embraced at the enterprise level, this architecture revolves around a central hub that manages traffic from spokes. Hubs and spokes are interconnected through VNet peering or VPN gateways. For cross-region communication, hubs can be paired across regions, a common feature in enterprise-grade architectures.

Hub-spoke network topology

Designing Outbound Connectivity

The management of outbound connectivity is of paramount importance. We have three main options to consider:

  1. Azure Firewall: This tool enables the routing of all outbound traffic through a firewall using user-defined routes. This option offers precise control over outbound connectivity.
  2. Azure Load Balancer: When creating an Azure Load Balancer, you can configure outbound rules to dictate how outbound traffic flows through the load balancer to its destination.
  3. NAT Gateway: The NAT gateway provides a secure and efficient approach to managing outbound traffic. It allows resources in a subnet to establish outbound connections through the gateway. Importantly, the destination sees only the NAT gateway’s IP address, bolstering security and scalability.

Managing Routing

Efficient routing in Azure is facilitated through route tables. Two key route types come into play:

System Routes:

  • When you create an Azure Virtual Network, Azure automatically incorporates system routes into the route table for that network. These system routes are integral for facilitating seamless communication among resources residing within the same virtual network, and they do so without necessitating additional configurations on your part.
  • Furthermore, system routes play a pivotal role in enabling resources within your virtual network to communicate with the vast expanse of the internet. This inherent capability ensures that your virtual machines can access internet resources and services as needed. Unlike some other cloud platforms, Azure streamlines this aspect of network management by providing these system routes by default when you create a virtual network.
  • In addition to these functions, when you establish peering connections between your virtual networks, the address space of the peered network is automatically incorporated into the route table. This allows resources within your virtual network to seamlessly communicate with resources in the peered network.
System Routes

User-Defined Routes (UDRs):

  • Azure offers the flexibility to customize and override the default system routes by associating a user-defined route table with your virtual network. With user-defined routes, you gain control over the next hop for specific types of traffic. By defining your own routes, you can direct traffic to take specific paths within your network, effectively customizing the routing logic to meet your unique requirements.
  • For instance, if you want all outbound traffic from your virtual network to pass through an Azure Firewall before reaching the internet, user-defined routes enable you to set up this routing configuration. You can specify that internet-bound traffic must be routed through the Azure Firewall, ensuring that connectivity from your virtual network to Azure is contingent on the firewall’s rules. This level of granular control is made possible through the utilization of user-defined routes.
  • Overall, the ability to manage routing in Azure Virtual Networks is a fundamental component of designing effective network connectivity. System routes provide essential connectivity by default, while user-defined routes empower you to customize your network’s routing behavior to suit your specific needs and configurations. Understanding and effectively utilizing these routing mechanisms will enhance your network’s performance, security, and overall functionality.
User-Defined Routes (UDRs)

In scenarios where fine-grained control is needed, UDRs take precedence over system routes. The routing hierarchy follows UDRs as the highest priority, followed by BGP routes and, finally, system routes. It’s worth noting that BGP routes are usually introduced when connecting on-premise networks to Azure.

Conclusion

In summary, mastering network infrastructure in Azure involves a holistic understanding of connectivity options, strategic network topology design, thoughtful outbound connectivity planning, and effective route management. By carefully considering these elements, you can craft a robust and efficient network architecture tailored to your unique requirements.

Ready to take your application delivery strategy to the next level? In our upcoming article, “Crafting Your Application Delivery Strategy: Selecting the Ideal Load Balancer,” you’ll be guided through the process of choosing the perfect load balancing solution. This critical decision can significantly impact your network’s performance and reliability. Don’t miss out on expert insights to ensure your applications run smoothly and efficiently. Stay tuned for our next installment in the series!

--

--

Shannmuka Buddabathini

💡 Cloud Innovator | 🏁 Chess Tactician | Merging Tech with Strategy!