You are previewing Automating Microsoft Azure with PowerShell.
O'Reilly logo
Automating Microsoft Azure with PowerShell

Book Description

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

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.

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

  • Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

    Table of Contents

    1. Automating Microsoft Azure with PowerShell
      1. Table of Contents
      2. Automating Microsoft Azure with PowerShell
      3. Credits
      4. About the Author
      5. About the Author
      6. Acknowledgments
      7. About the Reviewers
      8. www.PacktPub.com
        1. Support files, eBooks, discount offers, and more
          1. Why subscribe?
          2. Free access for Packt account holders
          3. Instant updates on new Packt books
      9. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      10. 1. Getting Started with Azure and PowerShell
        1. Introducing Windows PowerShell
        2. Connecting to Microsoft Azure using PowerShell
          1. Microsoft Azure subscriptions
          2. Software prerequisites
            1. Windows PowerShell 3.0 or newer
            2. Microsoft Azure PowerShell
          3. Connecting to a Microsoft Azure subscription
          4. Connecting to Azure using Azure Active Directory credentials
          5. Connecting to Azure using a publish settings file
        3. Creating a Microsoft Azure website using PowerShell
        4. Summary
      11. 2. Managing Azure Storage with PowerShell
        1. Creating a Microsoft Azure storage account
        2. Azure File storage versus Azure Blob storage
          1. Azure File storage
          2. Azure Blob storage
        3. Getting the Azure storage account keys
        4. Using Azure File storage
        5. Using Azure Blog storage
        6. Using Azure Table storage
        7. Using Azure Queue storage
        8. Using Microsoft Azure storage to back up files
        9. Summary
      12. 3. Managing Azure Virtual Machines with PowerShell
        1. Virtual machines in Microsoft Azure
        2. Creating a Microsoft Azure virtual machine
          1. Selecting a virtual machine image
          2. Creating a virtual machine
        3. Managing Microsoft Azure virtual machines
          1. Listing the instances of Microsoft Azure virtual machines
          2. Managing the state of Microsoft Azure virtual machine instances
          3. Creating a snapshot of a Microsoft Azure virtual machine instance
          4. Creating a new virtual disk and assigning it to a Microsoft Azure virtual machine instance
          5. Removing a Microsoft Azure virtual machine instance
        4. Summary
      13. 4. Managing Azure SQL Databases with PowerShell
        1. Creating and connecting to Microsoft Azure SQL Database Servers
          1. Provisioning a new Microsoft Azure SQL Database Server
          2. Configuring a firewall rule for a Microsoft Azure SQL Database server
          3. Connecting to a Microsoft Azure SQL Database Server with PowerShell
        2. Creating and managing Microsoft Azure SQL Databases
          1. Creating a new Microsoft Azure SQL Database
          2. Executing queries with a Microsoft Azure SQL Database
          3. Exporting and importing a Microsoft Azure SQL Database
          4. Removing a Microsoft Azure SQL Database
        3. Summary
      14. 5. Deploying and Managing Azure Websites with PowerShell
        1. Creating and configuring a new Microsoft Azure website
        2. Deploying Microsoft Azure website content
          1. Deploying from a source control system
          2. Deploying from Visual Studio or WebMatrix
          3. Other deployment methods
        3. Managing Microsoft Azure websites
        4. Summary
      15. 6. Managing Azure Virtual Networks with PowerShell
        1. Creating and managing an Azure Virtual Network
          1. Creating an Azure Virtual Network configuration file
          2. Creating an Azure Virtual Network
          3. Creating virtual machines in an Azure Virtual Network
          4. Backing up an Azure Virtual Network configuration
          5. Removing an Azure Virtual Network configuration
        2. Summary
      16. 7. Managing Azure Traffic Manager with PowerShell
        1. Creating Microsoft Azure websites for load balancing
        2. Creating and managing Microsoft Azure Traffic Manager profiles
        3. Summary
      17. 8. Managing Azure Cloud Services with PowerShell
        1. Connecting to a Microsoft Azure virtual machine with a Microsoft Azure Cloud Service
        2. Creating and managing Microsoft Azure Cloud Services
        3. Summary
      18. 9. Managing Azure Active Directory with PowerShell
        1. Connecting to Azure Active Directory
          1. Creating an administrator account
          2. Connecting to Azure Active Directory
        2. Creating a new Azure Active Directory domain
        3. Configuring an Azure Active Directory domain
        4. Managing Azure Active Directory users and groups
        5. Using PowerShell to bulk import users and groups into Azure Active Directory
        6. Summary
      19. 10. Automating Azure with PowerShell
        1. Creating a Microsoft Azure Automation account
        2. Creating and managing runbooks in Microsoft Azure
        3. Summary
      20. Index