Automating Microsoft Azure Infrastructure Services

Book description

Get valuable tips and techniques for automating your cloud deployments with Azure PowerShell cmdlets, and learn how to provision Azure services on the fly. In this hands-on guide, Microsoft cloud technology expert Michael Washam shows you how to automate various management tasks and deploy solutions that are both complex and at scale.

By combining the native automation capabilities of PowerShell with Azure Infrastructure Services, these powerful cmdlets enable you to create and configure virtual machines with ease. You’ll learn how to take advantage of these technologies to build complete virtual networks. If you have experience with PowerShell and Azure, you’re ready to get started.

  • Install and authenticate cmdlets to set up your environment
  • Create and update virtual machines with Azure platform images
  • Manage network endpoints, access control lists, and IP addresses
  • Use cmdlets to manage and configure virtual machine storage
  • Automate Azure virtual networks with hybrid technologies such as site-to-site, point-to-site, and ExpressRoute
  • Dive into advanced virtual machine provisioning capabilities and management techniques
  • Learn tips and tricks for deleting or moving virtual machines within (or out of) your subscription

Table of contents

  1. Foreword
  2. Preface
    1. Who This Book Is For
    2. What This Book Is About
    3. Overview of Chapters
    4. Conventions Used in This Book
    5. Using Code Examples
    6. Safari® Books Online
    7. How to Contact Us
    8. Acknowledgments
  3. 1. Introduction
    1. Why Use the Microsoft Azure PowerShell Cmdlets?
    2. Comparing Deployment Methods
      1. Deploying an Application in a Traditional Data Center
      2. Deploying an Application in the Cloud (Without Automation)
      3. Deploying an Application in the Cloud (with Automation)
    3. History
    4. Open Source
    5. Summary
  4. 2. Getting Started with Azure PowerShell
    1. Installation
    2. Setting Up Your Environment
      1. Authenticating to Microsoft Azure
        1. Authenticating with a certificate
        2. About the .publishsettings file
        3. Importing the .publishsettings file
        4. Using Microsoft Azure AD to authenticate with PowerShell
      2. Managing Subscriptions
        1. Get-AzureSubscription
        2. Select-AzureSubscription
        3. Set-AzureSubscription
    3. Executing Scripts in This Book
    4. Summary
  5. 3. Virtual Machines
    1. Creating Virtual Machines with PowerShell
      1. Virtual Machine Location and Storage
      2. Selecting the Virtual Machine Platform Image
      3. Virtual Machine Size
      4. Cloud Services and Virtual Machines
      5. Creating a Virtual Machine with New-AzureQuickVM
      6. Creating a Virtual Machine Configuration with New-AzureVMConfig
      7. Specifying the Initial Provisioning Configuration
      8. Adding Storage with Add-AzureDataDisk
      9. Creating Network Endpoints at Provisioning
      10. Creating a Virtual Machine with New-AzureVM
      11. How New-AzureVM Works
    2. Querying Virtual Machines with Get-AzureVM
    3. Changing a Virtual Machine Configuration
    4. Stopping and Starting Virtual Machines
    5. Summary
  6. 4. Virtual Machine Networking
    1. Automating the Network
    2. Handling External Traffic
    3. Port Forwarding
    4. Load Balancing
    5. Health Probes
      1. TCP Health Probes
      2. HTTP Health Probes
      3. Health Probe Time-outs
    6. Updating Endpoints
    7. Access Control
      1. Adding and Updating Access Control Lists
    8. Reserved IP Addresses
    9. Public IP Addresses
    10. Summary
  7. 5. Virtual Machine Storage
    1. Storage Management
    2. Uploading and Downloading VHDs
      1. Uploading a VHD
      2. Creating a Local VHD with Windows
      3. Validating the Disk
      4. Downloading a VHD
      5. Save-AzureVHD Tips
    3. Disks and Images
      1. What Is an Image?
      2. What Is a Disk?
    4. Managing Images
      1. Viewing Image Properties
      2. Capturing a Generalized Image
        1. Creating the virtual machine
        2. Customizing the virtual machine
        3. Running Sysprep on the virtual machine
        4. Capturing the virtual machine image
        5. Provisioning a virtual machine from your own image
      3. Updating a Virtual Machine Image
      4. Deleting a Virtual Machine Image
      5. OS Images and VM Images
    5. Managing Disks
      1. OS Disks
      2. Data Disks
      3. Viewing Disk Properties
      4. Specifying Disk Locations at VM Creation
      5. Specifying Cache
    6. Custom Images, Disks, and Storage Accounts
    7. Managing Storage with PowerShell
      1. Storage Account Geo-Replication
      2. Authenticating Access to Storage
      3. Setting the Public Access Policy for a Container
      4. Managing Blob Data
      5. Asynchronous Blob Copy
    8. Summary
  8. 6. Virtual Networks
    1. Understanding Virtual Network Configuration
    2. Dynamically Adding a Virtual Network
    3. Updating a Virtual Network Configuration
      1. Deleting a virtual network
      2. Adding or removing DNS
      3. Adding or removing subnets and local network sites
    4. Removing the Network Configuration
    5. Provisioning into a Virtual Network
    6. Understanding IP Address Assignment
    7. Specifying Static IP Addresses
    8. Moving Virtual Machines to Different Subnets
    9. Hybrid Network Connectivity
      1. Gateway Management
      2. Creating and Automating Gateways
    10. Using the Internal Load Balancer
      1. Intranet workloads
      2. N-tier workloads
      3. Validating the internal load balancer
      4. Updating internal load-balanced endpoints
      5. There can be only one
      6. Adding an internal load balancer to an existing deployment
      7. Removing an internal load balancer from an existing deployment
      8. Viewing the internal load-balancer configuration on an existing deployment
    11. ExpressRoute
    12. Summary
  9. 7. Advanced Virtual Machines
    1. Virtual Machine Provisioning
    2. Provisioning Linux Virtual Machines
    3. Availability Sets
      1. Provisioning Virtual Machines in an Availability Set
      2. Adding Existing Virtual Machines to an Availability Set
    4. Specifying the Time Zone
    5. Configuring Windows Update
    6. Deploying Certificates
    7. Managing Access Control Options
    8. Domain Join
    9. Using PowerShell Remoting
      1. Configuring a Secure Connection
      2. Invoking PowerShell Commands
      3. Multiple Hops Using Remote PowerShell
    10. Virtual Machine Agent and Extensions
      1. Virtual Machine Extensions
      2. BgInfo Extension
      3. Access Extension
      4. Custom Script Extension
    11. Deleting Virtual Machines
      1. Deleting a Single Virtual Machine
      2. Deleting Multiple Virtual Machines
    12. Importing and Exporting Virtual Machine Configurations
    13. Summary and Conclusion
  10. Index
  11. Colophon
  12. Copyright

Product information

  • Title: Automating Microsoft Azure Infrastructure Services
  • Author(s): Michael Washam
  • Release date: October 2014
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9781491944851