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

Connecting to a Microsoft Azure virtual machine with a Microsoft Azure Cloud Service


In Chapter 3, Managing Azure Virtual Machines with PowerShell, we created a new Microsoft Azure virtual machine. In that example, the virtual machine was named PSAuto2012R2, and the cloud service was named PSAutomation2012R2. We will use the following steps to manage this cloud service and connect to the virtual machine with RDP:

  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 create and manage cloud services. If not connected to Azure, refer to the Connecting to a Microsoft Azure subscription section in Chapter 1, Getting Started with Azure and PowerShell. In addition, we should have an Azure virtual machine up-and-running. Refer to Chapter 3, Managing Azure Virtual Machines with PowerShell, for more detail on how to create a new virtual machine.

  2. Use the Get-AzureService cmdlet (PS C:\> Get-AzureService) to...