Automating Microsoft Azure with Powershell

Automating Microsoft Azure with Powershell

Language: English

Pages: 176

ISBN: 178439887X

Format: PDF / Kindle (mobi) / ePub

Automate Microsoft Azure tasks using Windows PowerShell to take full control of your Microsoft Azure deployments

About This Book

  • Deploy and manage virtual machines, virtual networks, and an online database for application provisioning, maintenance, and high availability of your data
  • Upload your movies, data, and disk images to the cloud with just a single line of PowerShell code
  • A pragmatic guide full of hands-on examples on managing Microsoft Azure using PowerShell

Who This Book Is For

This book is designed to help administrators and developers better automate Azure management tasks. No prior knowledge of PowerShell is required.

What You Will Learn

  • Connect to Microsoft Azure with PowerShell
  • Manage storage blobs, tables, and queues with PowerShell
  • Create virtual machines with PowerShell
  • Query SQL databases with PowerShell
  • Deploy websites and cloud services with PowerShell
  • Create virtual networks and traffic manager profiles with PowerShell
  • Perform Active Directory management tasks with PowerShell
  • Automate complex tasks using automation runbooks

In Detail

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.

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.














net//. In our example, the URL is https://, as shown in the following screenshot: For more information about Microsoft Azure Blob storage and the cmdlets used in this section, refer to the following resources: • How to use Blob storage from .NET ( documentation/articles/storage-dotnet-how-to-use-blobs/) • The Set-Content cmdlet ( 3. Save the file as an XML file, for instance, C:\Files\VNetConfig.xml. In this example, the configuration file creates a new virtual network called PSAutomation with as the DNS server, as the address space, and a subnet with

instances created by the application deployment: PS C:\> Get-AzureRole –ServiceName psautomation – InstanceDetails [ 96 ] Chapter 8 5. Use the Remove-AzureDeployment cmdlet to retract the deployment of the cloud service application: PS C:\> Remove-AzureDeployment –ServiceName psautomation –Slot Production 6. Use the Get-AzureRole cmdlet to verify that the deployment and the instances have been removed: PS C:\> Get-AzureRole –ServiceName psautomation 7. Use the Remove-AzureService cmdlet

in detail to maximize your learning. 2. Extensive code samples showing how to use advanced features of Windows Azure blobs, tables, and queues. 3. Understand remote management of Azure services using the Windows Azure Service Management REST API. Please check for information on our titles Windows Azure Programming Patterns for Start-ups ISBN: 978-1-84968-560-3 Paperback: 292 pages A step-by-step guide to create easy solutions to build your business using Windows Azure

higher) and Microsoft Exchange Server (the 2007 version and higher), provide modules and snap-ins that make cmdlets specific to these products available in a PowerShell session. The following screenshot shows what the PowerShell Command Prompt looks like. The default color scheme for PowerShell windows is gray text on a dark blue background; for clarity, however, when printed or viewed in black and white, the screenshots used in this book use black text on a white background. [2] Chapter 1

Download sample