Book Image

Hands-On Networking with Azure

By : Mohamed Waly
Book Image

Hands-On Networking with Azure

By: Mohamed Waly

Overview of this book

Microsoft Azure networking is one of the most valuable and important offerings in Azure. No matter what solution you are building for the cloud, you'll fi nd a compelling use for it. This book will get you up to speed quickly on Microsoft Azure Networking by teaching you how to use different networking services. By reading this book, you will develop a strong networking foundation for Azure virtual machines and for expanding your on-premise environment to Azure. Hands-On Networking with Azure starts with an introduction to Microsoft Azure networking and creating Azure Virtual Networks with subnets of different types within them. The book helps you understand the architecture of Azure networks. You will then learn the best practices for designing both Windows- and Linux-based Azure VM networks. You will also learn to expand your networks into Azure and how to use Azure DNS. Moreover, you will master best practices for dealing with Azure Load Balancer and the solutions they offer in different scenarios. Finally, we will demonstrate how the Azure Application Gateway works, offering various layer-7 load balancing capabilities for applications. By the end of this book, you will be able to architect your networking solutions for Azure.
Table of Contents (15 chapters)
Title Page
Dedication
Packt Upsell
Contributors
Preface
Index

Automating the tasks


Let's automate the manual tasks that have been implemented so far.

Creating an Azure DNS zone using PowerShell

Creating an Azure DNS zone using PowerShell is pretty easy, you only need to run the following cmdlet:

New-AzureRmDnsZone -Name Gamezakhana.com -ResourceGroupName PacktPub

Creating an Azure DNS zone using Azure CLI 2.0

Like PowerShell, you can create an Azure DNS zone using Azure CLI 2.0 with only one command:

az network dns zone create --resource-group PacktPub --name Gamezakhana.com

Creating an Azure DNS record using PowerShell

To create an Azure DNS record using PowerShell, you need to create the RecordConfig and store it within a variable by running the following cmdlet:

$RecordConfig = New-AzureRmDnsRecordConfig -IPv4Address "192.168.1.55"

Then, you can create the record by running the following cmdlet:

New-AzureRmDnsRecordSet -Name www -RecordType A -ZoneName Gamezakhana.com -ResourceGroupName PacktPub -Ttl 3600 -DnsRecords $RecordConfig

Remember that the TTL is expressed...