Azure Networking Cookbook
eBook - ePub

Azure Networking Cookbook

Practical recipes for secure network infrastructure, global application delivery, and accessible connectivity in Azure, 2nd Edition

Mustafa Toroman

  1. 298 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Azure Networking Cookbook

Practical recipes for secure network infrastructure, global application delivery, and accessible connectivity in Azure, 2nd Edition

Mustafa Toroman

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

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.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Azure Networking Cookbook est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Azure Networking Cookbook par Mustafa Toroman en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Computer Science et Computer Networking. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2020
ISBN
9781800564817
Édition
2

1. Azure Virtual Network

In this very first chapter, we will learn about the basics of Azure networking, including creating Azure virtual networks and designing address spaces and subnets. This will lay the foundation for all future recipes that will be covered in this chapter.
We will cover the following recipes in this chapter:
  • Creating a virtual network in the Azure portal
  • Creating a virtual network with PowerShell
  • Adding a subnet in the Azure portal
  • Adding a subnet with PowerShell
  • Changing the address space size
  • Changing the subnet size

Technical requirements

For this chapter, the following is required:
  • An Azure subscription
  • Azure PowerShell
The code samples can be found at https://github.com/PacktPublishing/Azure-Networking-Cookbook-Second-Edition/tree/master/Chapter01.

Creating a virtual network in the Azure portal

Azure Virtual Network represents your local network in the cloud. It enables other Azure resources to communicate over a secure private network without exposing endpoints over the internet.

Getting ready

Before you start, open a web browser and go to the Azure portal at https://portal.azure.com.

How to do it


In order to create a new virtual network using the Azure portal, take the following steps:
  1. In the Azure portal, select Create a resource and choose Virtual network under Networking (or search for virtual network in the search bar). A new pane will open, where we need to provide information for the virtual network. First, select the Subscription option we want to use and the Resource group option for where the virtual network will be deployed. Then, include a name and select a region (of the Azure datacenter) for where the virtual network will be deployed. An example is shown in Figure 1.1:
    Creating a virtual network in the Basics pane
    Figure 1.1: Creating an Azure virtual network
  2. In the next pane, we first need to define the address space and define the Subnet name and Subnet address range values for the first subnet. After the address space is defined, as shown in Figure 1.2, we will receive a message stating that This virtual network doesn't have any subnets. Therefore, we need to select the Add subnet option:
    Configuring a virtual network address space and subnet
    Figure 1.2: Configuring a virtual network address space and subnet
  3. In the Add subnet pane, we need to define Subnet name and Subnet address range. Optionally, we can add service endpoints we want to connect to the virtual network. Service endpoints allow us to connect to Azure services in a secure way, over Azure backbone infrastructure, without needing a public IP address. An example is shown in Figure 1.3:
    Adding a subnet by providing various information in the Add subnet pane
    Figure 1.3: Adding a subnet
  4. After we have added the first subnet, in our case, FrontEnd, we can add more subnets to the virtual network or proceed to the Security section, as shown in Figure 1.4:
    Adding the FrontEnd subnet in the IP Addresses pane
    Figure 1.4: Adding the FrontEnd subnet
  5. In the Security section, we can choose whether we want to enable Bastion Host, DDoS protection, and Firewall. If any of these options are enabled, we need to provide additional information for that service. Afterward, we can optionally add tags, or skip that and create the service. An example is shown in Figure 1.5:
    Toggling security options in the Security pane
    Figure 1.5: Toggling security options
  6. Creating a virtual network usually does not take much time and should be completed in under two minutes. Once the deployment is finished, we can start using the virtual network.

How it works


We deploy virtual networks to Resource group under Subscription in the Azure datacenter that we choose. Region and Subscription are important parameters; we will only be able to attach Azure resources to this virtual network if they are in the same subscription and region as the Azure datacenter. The address space option defines the number of IP addresses that will be available for our network. It uses the Classless Inter-Domain Routing (CIDR) format and the largest range we can choose is /8. In the portal, we need to create an initial subnet and define the subnet address range. The smallest subnet allowed is /29 and the largest is /8 (however, this cannot be larger than the virtual network range). For reference, the range 10.0.0.0/8 (in CIDR format) will create an address range of 167772115 IP addresses (from 10.0.0.0 to 10.255.255.255) and 10.0.0.0/29 will create a range of 8 IP addresses (from 10.0.0.0 to 10.0.0.7).

Creating a virtual network with PowerShell

PowerShell is a command-line shell and scripting language based on .NET Framework. It's often used by system administrators to automate tasks and manage operating systems. Azure PowerShell Az is a PowerShell module that allows us to automate and manage Azure resources. Az is also very often used to automate deployment tasks and can also be used to deploy a new Azure virtual network.

Getting ready

Before we start, we need to make sure that we have the latest Az modules installed. To install Az modules, we need to run this command in the PowerShell console:
Install-Module -Name Az -AllowClobber -Scope CurrentUser
For more information, you can visit https://docs.microsoft.com/powershell/azure/install-az-ps?view=azps-4.5.0.
Before we start, we need to connect to the Azure subscription from a PowerShell console. Here's the command to do this:
Connect-AzAccountAzAccount
This will open a pop-up window where we need to input the credentials for the Azure subscription.
Afterward, we need to create a resource group where our virtual network will be deployed:
New-AzResourceGroup -name 'Packt-Networking-Script' -Location 'westeurope'
The output should be similar to that shown in Figure 1.6:
Output displaying the connection to an Azure subscription from PowerShell
Figure 1.6: Connecting to an Azure subscription from PowerShell

How to do it


D...

Table des matiĂšres

  1. Azure Networking Cookbook, Second Edition
  2. Preface
  3. 1. Azure Virtual Network
  4. 2. Virtual machine networking
  5. 3. Network Security Groups
  6. 4. Managing IP addresses
  7. 5. Local and virtual network gateways
  8. 6. DNS and routing
  9. 7. Azure Firewall
  10. 8. Creating hybrid connections
  11. 9. Connecting to resources securely
  12. 10. Load balancers
  13. 11. Traffic Manager
  14. 12. Azure Application Gateway and Azure WAF
  15. 13. Azure Front Door and Azure CDN
  16. Index
Normes de citation pour Azure Networking Cookbook

APA 6 Citation

Toroman, M. (2020). Azure Networking Cookbook (2nd ed.). Packt Publishing. Retrieved from https://www.perlego.com/book/2059682/azure-networking-cookbook-practical-recipes-for-secure-network-infrastructure-global-application-delivery-and-accessible-connectivity-in-azure-2nd-edition-pdf (Original work published 2020)

Chicago Citation

Toroman, Mustafa. (2020) 2020. Azure Networking Cookbook. 2nd ed. Packt Publishing. https://www.perlego.com/book/2059682/azure-networking-cookbook-practical-recipes-for-secure-network-infrastructure-global-application-delivery-and-accessible-connectivity-in-azure-2nd-edition-pdf.

Harvard Citation

Toroman, M. (2020) Azure Networking Cookbook. 2nd edn. Packt Publishing. Available at: https://www.perlego.com/book/2059682/azure-networking-cookbook-practical-recipes-for-secure-network-infrastructure-global-application-delivery-and-accessible-connectivity-in-azure-2nd-edition-pdf (Accessed: 15 October 2022).

MLA 7 Citation

Toroman, Mustafa. Azure Networking Cookbook. 2nd ed. Packt Publishing, 2020. Web. 15 Oct. 2022.