0%

Find out how you can leverage virtual machines and load balancers to facilitate secure and efficient networking

Key Features

  • Discover the latest networking features and additions in Microsoft Azure with this updated guide
  • Upgrade your cloud networking skills by learning how to plan, implement, configure, and secure your infrastructure network
  • Provide a fault-tolerant environment for your apps using Azure networking services

Book Description

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.

What you will learn

  • Get to grips with building Azure networking services
  • Understand how to create and work on hybrid connections
  • Configure and manage Azure networking services
  • Explore ways to design high availability network solutions in Azure
  • Discover how to monitor and troubleshoot Azure network resources
  • Work with different methods to connect local networks to Azure virtual networks

Who this book is for

This cookbook is for cloud architects, cloud solution providers, and anyone who deals with networking on Azure. A basic understanding of Azure will help you to make the most of this book.

Table of Contents

  1. Azure Networking Cookbook, Second Edition
  2. Preface
    1. About Azure Networking Cookbook, Second Edition
    2. About the author
    3. About the reviewers
    4. Learning objectives
    5. Audience
    6. Approach
    7. To get the most out of this book
    8. Hardware requirements
    9. Software requirements
    10. Conventions
    11. Download Resources
  3. 1. Azure Virtual Network
    1. Technical requirements
    2. Creating a virtual network in the Azure portal
    3. Getting ready
    4. How to do it…
    5. How it works…
    6. Creating a virtual network with PowerShell
    7. Getting ready
    8. How to do it…
    9. How it works…
    10. Adding a subnet in the Azure portal
    11. Getting ready
    12. How to do it…
    13. How it works…
    14. Adding a subnet with PowerShell
    15. Getting ready
    16. How to do it…
    17. How it works…
    18. There's more…
    19. Changing the address space size
    20. Getting ready
    21. How to do it…
    22. How it works…
    23. Changing the subnet size
    24. Getting ready
    25. How to do it…
    26. How it works…
  4. 2. Virtual machine networking
    1. Technical requirements
    2. Creating Azure VMs
    3. Getting ready
    4. How to do it...
    5. How it works...
    6. There's more...
    7. Viewing VM network settings
    8. Getting ready
    9. How to do it...
    10. How it works...
    11. Creating a new NIC
    12. Getting ready
    13. How to do it...
    14. How it works...
    15. Attaching an NIC to a VM
    16. Getting ready
    17. How to do it...
    18. How it works...
    19. Detaching an NIC from a VM
    20. Getting ready
    21. How to do it...
    22. How it works...
  5. 3. Network Security Groups
    1. Technical requirements
    2. Creating a new NSG in the Azure portal
    3. Getting ready
    4. How to do it...
    5. How it works...
    6. Creating a new NSG with PowerShell
    7. Getting ready
    8. How to do it...
    9. How it works...
    10. Creating a new allow rule in an NSG
    11. Getting ready
    12. How to do it...
    13. How it works...
    14. Creating a new deny rule in an NSG
    15. Getting ready
    16. How to do it...
    17. How it works...
    18. Creating a new NSG rule with PowerShell
    19. Getting ready
    20. How to do it...
    21. How it works...
    22. There's more...
    23. Assigning an NSG to a subnet
    24. Getting ready
    25. How to do it...
    26. How it works...
    27. Assigning an NSG to a network interface
    28. Getting ready
    29. How to do it...
    30. How it works...
    31. Assigning an NSG to a subnet with PowerShell
    32. Getting ready
    33. How to do it...
    34. How it works...
    35. Creating an Application Security Group (ASG)
    36. Getting ready
    37. How to do it...
    38. How it works...
    39. Associating an ASG with a VM
    40. Getting ready
    41. How to do it...
    42. How it works...
    43. Creating rules with an NSG and an ASG
    44. Getting ready
    45. How to do it...
    46. How it works...
  6. 4. Managing IP addresses
    1. Technical requirements
    2. Creating a new public IP address in the Azure portal
    3. Getting ready
    4. How to do it...
    5. How it works...
    6. Creating a new public IP address with PowerShell
    7. Getting ready
    8. How to do it...
    9. How it works...
    10. Assigning a public IP address
    11. Getting ready
    12. How to do it...
    13. How it works...
    14. Unassigning a public IP address
    15. Getting ready
    16. How to do it...
    17. How it works...
    18. Creating a reservation for a public IP address
    19. Getting ready
    20. How to do it...
    21. How it works...
    22. Removing a reservation for a public IP address
    23. Getting ready
    24. How to do it...
    25. How it works...
    26. Creating a reservation for a private IP address
    27. Getting ready
    28. How to do it...
    29. How it works...
    30. Changing a reservation for a private IP address
    31. Getting ready
    32. How to do it...
    33. How it works...
    34. Removing a reservation for a private IP address
    35. Getting ready
    36. How to do it...
    37. How it works...
    38. Adding multiple IP addresses to an NIC
    39. Getting ready
    40. How to do it...
    41. How it works...
    42. Creating a public IP prefix
    43. How to do it...
    44. How it works...
  7. 5. Local and virtual network gateways
    1. Technical requirements
    2. Creating a local network gateway in the Azure portal
    3. Getting ready
    4. How to do it…
    5. How it works…
    6. Creating a local network gateway with PowerShell
    7. Getting ready
    8. How to do it…
    9. How it works…
    10. Creating a virtual network gateway in the Azure portal
    11. Getting ready
    12. How to do it…
    13. How it works…
    14. Creating a virtual network gateway with PowerShell
    15. Getting ready
    16. How to do it…
    17. How it works…
    18. Modifying the local network gateway settings
    19. Getting ready
    20. How to do it…
    21. How it works…
  8. 6. DNS and routing
    1. Technical requirements
    2. Creating an Azure DNS zone
    3. Getting ready
    4. How to do it...
    5. How it works...
    6. Creating an Azure Private DNS zone
    7. Getting ready
    8. How to do it...
    9. How it works...
    10. Integrating a virtual network with a private DNS zone
    11. Getting ready
    12. How to do it...
    13. How it works...
    14. Creating a new record set in Azure DNS
    15. Getting ready
    16. How to do it...
    17. How it works...
    18. Creating a route table
    19. Getting ready
    20. How to do it...
    21. How it works...
    22. Changing a route table
    23. Getting ready
    24. How to do it...
    25. How it works...
    26. Associating a route table with a subnet
    27. Getting ready
    28. How to do it...
    29. How it works...
    30. Dissociating a route table from a subnet
    31. Getting ready
    32. How to do it...
    33. How it works...
    34. Creating a new route
    35. Getting ready
    36. How to do it...
    37. How it works...
    38. Changing a route
    39. Getting ready
    40. How to do it...
    41. How it works...
    42. Deleting a route
    43. Getting ready
    44. How to do it...
    45. How it works...
  9. 7. Azure Firewall
    1. Technical requirements
    2. Creating a new firewall
    3. Getting ready
    4. How to do it...
    5. How it works...
    6. Creating a new firewall with PowerShell
    7. How to do it...
    8. How it works...
    9. Configuring a new allow rule
    10. Getting ready
    11. How to do it...
    12. How it works...
    13. Configuring a new deny rule
    14. Getting ready
    15. How to do it...
    16. How it works...
    17. Configuring a route table
    18. Getting ready
    19. How to do it...
    20. How it works...
    21. Enabling diagnostic logs for Azure Firewall
    22. Getting ready
    23. How to do it...
    24. How it works...
    25. Configuring Azure Firewall in forced tunneling mode
    26. Getting ready
    27. How to do it...
    28. How it works...
    29. Creating an IP group
    30. Getting ready
    31. How to do it...
    32. How it works...
    33. Configuring Azure Firewall DNS settings
    34. Getting ready
    35. How to do it...
    36. How it works...
  10. 8. Creating hybrid connections
    1. Technical requirements
    2. Creating a Site-to-Site connection
    3. Getting ready
    4. How to do it...
    5. How it works...
    6. Downloading the VPN device configuration from Azure
    7. Getting ready
    8. How to do it...
    9. How it works...
    10. Creating a Point-to-Site connection
    11. Getting ready
    12. How to do it...
    13. How it works...
    14. Creating a VNet-to-VNet connection
    15. Getting ready
    16. How to do it...
    17. How it works…
    18. Connecting VNets using network peering
    19. Getting ready
    20. How to do it...
    21. How it works...
  11. 9. Connecting to resources securely
    1. Technical requirements
    2. Creating an Azure Bastion instance
    3. Getting ready
    4. How to do it…
    5. How it works…
    6. Connecting to a virtual machine with Azure Bastion
    7. Getting ready
    8. How to do it…
    9. How it works…
    10. Creating a virtual WAN
    11. Getting ready
    12. How to do it…
    13. How it works…
    14. Creating a hub (in Virtual WAN)
    15. Getting ready
    16. How to do it…
    17. How it works…
    18. Adding a Site-to-Site connection (in a virtual hub)
    19. Getting ready
    20. How to do it…
    21. How it works…
    22. Adding a virtual network connection (in a virtual hub)
    23. Getting ready
    24. How to do it…
    25. How it works…
    26. Creating a Private Link endpoint
    27. Getting ready
    28. How to do it…
    29. How it works…
    30. Creating a Private Link service
    31. Getting ready
    32. How to do it…
    33. How it works…
  12. 10. Load balancers
    1. Technical requirements
    2. Creating an internal load balancer
    3. Getting ready
    4. How to do it...
    5. How it works...
    6. Creating a public load balancer
    7. Getting ready
    8. How to do it...
    9. How it works...
    10. Creating a backend pool
    11. Getting ready
    12. How to do it...
    13. How it works...
    14. See also
    15. Creating health probes
    16. Getting ready
    17. How to do it...
    18. How it works...
    19. Creating load balancer rules
    20. Getting ready
    21. How to do it...
    22. How it works...
    23. Creating inbound NAT rules
    24. Getting ready
    25. How to do it...
    26. How it works...
    27. Creating explicit outbound rules
    28. Getting ready
    29. How to do it...
    30. How it works...
  13. 11. Traffic Manager
    1. Technical requirements
    2. Creating a new Traffic Manager profile
    3. Getting ready
    4. How to do it…
    5. How it works…
    6. Adding an endpoint
    7. Getting ready
    8. How to do it…
    9. How it works…
    10. Configuring distributed traffic
    11. Getting ready
    12. How to do it…
    13. How it works…
    14. Configuring traffic based on priority
    15. Getting ready
    16. How to do it…
    17. How it works…
    18. Configuring traffic based on geographical location
    19. Getting ready
    20. How to do it…
    21. How it works…
    22. Managing endpoints
    23. Getting ready
    24. How to do it…
    25. How it works…
    26. Managing profiles
    27. Getting ready
    28. How to do it…
    29. How it works…
    30. Configuring Traffic Manager with load balancers
    31. Getting ready
    32. How to do it…
    33. How it works…
  14. 12. Azure Application Gateway and Azure WAF
    1. Technical requirements
    2. Creating a new application gateway
    3. Getting ready
    4. How to do it...
    5. How it works...
    6. Configuring the backend pools
    7. Getting ready
    8. How to do it...
    9. How it works...
    10. Configuring HTTP settings
    11. Getting ready
    12. How to do it...
    13. How it works...
    14. Configuring listeners
    15. Getting ready
    16. How to do it...
    17. How it works...
    18. Configuring rules
    19. Getting ready
    20. How to do it...
    21. How it works...
    22. Configuring probes
    23. Getting ready
    24. How to do it...
    25. How it works...
    26. Configuring a Web Application Firewall (WAF)
    27. Getting ready
    28. How to do it...
    29. How it works...
    30. Customizing WAF rules
    31. Getting ready
    32. How to do it...
    33. How it works...
    34. Creating a WAF policy
    35. Getting ready
    36. How to do it...
    37. How it works...
  15. 13. Azure Front Door and Azure CDN
    1. Technical requirements
    2. Creating an Azure Front Door instance
    3. Getting ready
    4. How to do it…
    5. How it works…
    6. Creating an Azure CDN profile
    7. Getting ready
    8. How to do it…
    9. How it works…
  16. Index
3.145.130.31