Book Image

Automating Microsoft Azure with PowerShell

By : John Chapman, Aman Dhally
Book Image

Automating Microsoft Azure with PowerShell

By: John Chapman, Aman Dhally

Overview of this book

<p>This book is a one-stop guide on managing Microsoft Azure services using PowerShell. Administrators and developers will learn how to use PowerShell to create and manage Azure websites, virtual machines, SQL databases, and so on.</p> <p>Starting with an introduction to Windows PowerShell, this book will assist you in connecting to Microsoft Azure with PowerShell. Next, the book covers how to create and manage Azure storage accounts, including file, blob, and table storage. Moving on, this book covers creating and managing Azure virtual machines, SQL databases, websites, virtual networks, traffic manager, cloud services, and Active Directory. Finally, this book covers how to automate complex tasks using Azure automation runbooks.</p>
Table of Contents (19 chapters)
Automating Microsoft Azure with PowerShell
Credits
About the Author
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Creating and managing an Azure Virtual Network


To create a new Azure Virtual Network, we must first create a network configuration file. After we have created a configuration file, we can create the virtual network. Then, we create new virtual machines in the virtual network.

Creating an Azure Virtual Network configuration file

An Azure Virtual Network file provides details about the virtual network. It is in XML format and can include the elements shown in the following table:

Element name

Required

Description

DnsServer

No

This specifies the Domain Name Servers for the virtual network (up to nine). If no DNS servers are provided, the default Azure DNS servers will be used.

LocalNetworkSite

No

This specifies information about local (on-premise) network sites associated with the virtual network (up to 10).

VPNGatewayAddress

No

This specifies the VPN tunnels used between local (on-premise) network sites and the virtual network.

AddressPrefix (LocalNetworkSite)

No

This specifies...