Azure's networking services enable organizations to manage their networks effectively. With the Azure Networking Cookbook, you'll see how Azure paves the way for an enterprise to achieve reliable performance and secure connectivity.
This updated second edition will take you through the latest networking features in Azure. The book starts with an introduction to Azure networking, covering basics such as creating Azure virtual networks, designing address spaces, and creating subnets. You'll create and manage network security groups, application security groups, and IP addresses in Azure using easy-to-follow recipes. As you progress through the book, you'll explore various aspects such as DNS and routing, load balancers, Traffic Manager, and site-to-site, point-to-site, and VNet-to-VNet connections. This cookbook covers all the functions crucial to understanding cloud networking practices and being able to plan, implement, and secure your network infrastructure with Azure. You'll not only upscale your current environment but also get well-versed with monitoring, diagnosing, and ensuring secure connectivity. The book will help you grasp best practices as you learn how to create a robust environment.
By the end of this Azure cookbook, you'll have gained hands-on experience developing cost-effective solutions that can facilitate efficient connectivity in your organization.
Author(s): Mustafa Toroman
Edition: 2
Publisher: Packt Publishing
Year: 2020
Language: English
Pages: 298
Cover
FM
Table of Contents
Preface
Chapter 1: Azure Virtual Network
Technical requirements
Creating a virtual network in the Azure portal
Getting ready
How to do it…
How it works…
Creating a virtual network with PowerShell
Getting ready
How to do it…
How it works…
Adding a subnet in the Azure portal
Getting ready
How to do it…
How it works…
Adding a subnet with PowerShell
Getting ready
How to do it…
How it works…
There's more…
Changing the address space size
Getting ready
How to do it…
How it works…
Changing the subnet size
Getting ready
How to do it…
How it works…
Chapter 2: Virtual machine networking
Technical requirements
Creating Azure VMs
Getting ready
How to do it...
How it works...
There's more...
Viewing VM network settings
Getting ready
How to do it...
How it works...
Creating a new NIC
Getting ready
How to do it...
How it works...
Attaching an NIC to a VM
Getting ready
How to do it...
How it works...
Detaching an NIC from a VM
Getting ready
How to do it...
How it works...
Chapter 3: Network Security Groups
Technical requirements
Creating a new NSG in the Azure portal
Getting ready
How to do it...
How it works...
Creating a new NSG with PowerShell
Getting ready
How to do it...
How it works...
Creating a new allow rule in an NSG
Getting ready
How to do it...
How it works...
Creating a new deny rule in an NSG
Getting ready
How to do it...
How it works...
Creating a new NSG rule with PowerShell
Getting ready
How to do it...
How it works...
There's more...
Assigning an NSG to a subnet
Getting ready
How to do it...
How it works...
Assigning an NSG to a network interface
Getting ready
How to do it...
How it works...
Assigning an NSG to a subnet with PowerShell
Getting ready
How to do it...
How it works...
Creating an Application Security Group (ASG)
Getting ready
How to do it...
How it works...
Associating an ASG with a VM
Getting ready
How to do it...
How it works...
Creating rules with an NSG and an ASG
Getting ready
How to do it...
How it works...
Chapter 4: Managing IP addresses
Technical requirements
Creating a new public IP address in the Azure portal
Getting ready
How to do it...
How it works...
Creating a new public IP address with PowerShell
Getting ready
How to do it...
How it works...
Assigning a public IP address
Getting ready
How to do it...
How it works...
Unassigning a public IP address
Getting ready
How to do it...
How it works...
Creating a reservation for a public IP address
Getting ready
How to do it...
How it works...
Removing a reservation for a public IP address
Getting ready
How to do it...
How it works...
Creating a reservation for a private IP address
Getting ready
How to do it...
How it works...
Changing a reservation for a private IP address
Getting ready
How to do it...
How it works...
Removing a reservation for a private IP address
Getting ready
How to do it...
How it works...
Adding multiple IP addresses to an NIC
Getting ready
How to do it...
How it works...
Creating a public IP prefix
How to do it...
How it works...
Chapter 5: Local and virtual network gateways
Technical requirements
Creating a local network gateway in the Azure portal
Getting ready
How to do it…
How it works…
Creating a local network gateway with PowerShell
Getting ready
How to do it…
How it works…
Creating a virtual network gateway in the Azure portal
Getting ready
How to do it…
How it works…
Creating a virtual network gateway with PowerShell
Getting ready
How to do it…
How it works…
Modifying the local network gateway settings
Getting ready
How to do it…
How it works…
Chapter 6: DNS and routing
Technical requirements
Creating an Azure DNS zone
Getting ready
How to do it...
How it works...
Creating an Azure Private DNS zone
Getting ready
How to do it...
How it works...
Integrating a virtual network with a private DNS zone
Getting ready
How to do it...
How it works...
Creating a new record set in Azure DNS
Getting ready
How to do it...
How it works...
Creating a route table
Getting ready
How to do it...
How it works...
Changing a route table
Getting ready
How to do it...
How it works...
Associating a route table with a subnet
Getting ready
How to do it...
How it works...
Dissociating a route table from a subnet
Getting ready
How to do it...
How it works...
Creating a new route
Getting ready
How to do it...
How it works...
Changing a route
Getting ready
How to do it...
How it works...
Deleting a route
Getting ready
How to do it...
How it works...
Chapter 7: Azure Firewall
Technical requirements
Creating a new firewall
Getting ready
How to do it...
How it works...
Creating a new firewall with PowerShell
How to do it...
How it works...
Configuring a new allow rule
Getting ready
How to do it...
How it works...
Configuring a new deny rule
Getting ready
How to do it...
How it works...
Configuring a route table
Getting ready
How to do it...
How it works...
Enabling diagnostic logs for Azure Firewall
Getting ready
How to do it...
How it works...
Configuring Azure Firewall in forced tunneling mode
Getting ready
How to do it...
How it works...
Creating an IP group
Getting ready
How to do it...
How it works...
Configuring Azure Firewall DNS settings
Getting ready
How to do it...
How it works...
Chapter 8: Creating hybrid connections
Technical requirements
Creating a Site-to-Site connection
Getting ready
How to do it...
How it works...
Downloading the VPN device configuration from Azure
Getting ready
How to do it...
How it works...
Creating a Point-to-Site connection
Getting ready
How to do it...
How it works...
Creating a VNet-to-VNet connection
Getting ready
How to do it...
How it works…
Connecting VNets using network peering
Getting ready
How to do it...
How it works...
Chapter 9: Connecting to resources securely
Technical requirements
Creating an Azure Bastion instance
Getting ready
How to do it…
How it works…
Connecting to a virtual machine with Azure Bastion
Getting ready
How to do it…
How it works…
Creating a virtual WAN
Getting ready
How to do it…
How it works…
Creating a hub (in Virtual WAN)
Getting ready
How to do it…
How it works…
Adding a Site-to-Site connection (in a virtual hub)
Getting ready
How to do it…
How it works…
Adding a virtual network connection (in a virtual hub)
Getting ready
How to do it…
How it works…
Creating a Private Link endpoint
Getting ready
How to do it…
How it works…
Creating a Private Link service
Getting ready
How to do it…
How it works…
Chapter 10: Load balancers
Technical requirements
Creating an internal load balancer
Getting ready
How to do it...
How it works...
Creating a public load balancer
Getting ready
How to do it...
How it works...
Creating a backend pool
Getting ready
How to do it...
How it works...
See also
Creating health probes
Getting ready
How to do it...
How it works...
Creating load balancer rules
Getting ready
How to do it...
How it works...
Creating inbound NAT rules
Getting ready
How to do it...
How it works...
Creating explicit outbound rules
Getting ready
How to do it...
How it works...
Chapter 11: Traffic Manager
Technical requirements
Creating a new Traffic Manager profile
Getting ready
How to do it…
How it works…
Adding an endpoint
Getting ready
How to do it…
How it works…
Configuring distributed traffic
Getting ready
How to do it…
How it works…
Configuring traffic based on priority
Getting ready
How to do it…
How it works…
Configuring traffic based on geographical location
Getting ready
How to do it…
How it works…
Managing endpoints
Getting ready
How to do it…
How it works…
Managing profiles
Getting ready
How to do it…
How it works…
Configuring Traffic Manager with load balancers
Getting ready
How to do it…
How it works…
Chapter 12: Azure Application Gateway and Azure WAF
Technical requirements
Creating a new application gateway
Getting ready
How to do it...
How it works...
Configuring the backend pools
Getting ready
How to do it...
How it works...
Configuring HTTP settings
Getting ready
How to do it...
How it works...
Configuring listeners
Getting ready
How to do it...
How it works...
Configuring rules
Getting ready
How to do it...
How it works...
Configuring probes
Getting ready
How to do it...
How it works...
Configuring a Web Application Firewall (WAF)
Getting ready
How to do it...
How it works...
Customizing WAF rules
Getting ready
How to do it...
How it works...
Creating a WAF policy
Getting ready
How to do it...
How it works...
Chapter 13: Azure Front Door and Azure CDN
Technical requirements
Creating an Azure Front Door instance
Getting ready
How to do it…
How it works…
Creating an Azure CDN profile
Getting ready
How to do it…
How it works…
Index