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 Microsoft Azure websites for load balancing


In the Creating and configuring a new Microsoft Azure website section of Chapter 5, Deploying and Managing Azure Websites with PowerShell, we covered how to create a new Microsoft Azure website. We will use that method to create two new Azure websites with the following steps:

  1. Open Microsoft Azure PowerShell from the Start menu and connect it to an Azure subscription.

    Note

    We must first be connected to Azure in order to work with Microsoft Azure websites. If not connected to Azure, refer to the Connecting to a Microsoft Azure subscription section in Chapter 1, Getting Started with Azure and PowerShell.

  2. Use the New-AzureWebsite cmdlet to create a new Microsoft Azure website:

    PS C:\> New-AzureWebsite –Name psautoprimary –Location "West US"
    

    Note

    In this example, we will use West US as the data center location for the new website. To retrieve a full list of available locations to choose from, use the Get-AzureLocation cmdlet. For example, Get...