Who This Book Is For

This book is for the IT professional or developer who has been tasked with deploying workloads in Azure. At some point in your project(s), either you will be required to use PowerShell or the temptation to finally dive into automation will pull you in this direction. This book does assume that the reader has some experience with PowerShell or scripting in general and has previous experience with Microsoft Azure. Of course, there are plenty of resources on the Internet and other books from this publisher that can help guide you on the way if you lack experience in either topic.

What This Book Is About

This book is about automating and configuring Microsoft Azure Virtual Machines and Virtual Networks by using the Azure PowerShell cmdlets.

Overview of Chapters

Conventions Used in This Book

The following typographical conventions are used in this book:

Indicates new terms, URLs, email addresses, filenames, and file extensions.
Constant width
Used for program listings, as well as within paragraphs to refer to program elements such as variable or function names, databases, data types, environment variables, statements, and keywords.
Constant width bold
Shows commands or other text that should be typed literally by the user.
Constant width italic
Shows text that should be replaced with user-supplied values or by values determined by context.


This icon signifies a tip, suggestion, or general note.


This icon indicates a warning or caution.

Using Code Examples

This book is here to help you get your job done. In general, if example code is offered with this book, you may use it in your programs and documentation. You do not need to contact us for permission unless you’re reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing a CD-ROM of examples from O’Reilly books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your product’s documentation does require permission.

We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. For example: “Automating Microsoft Azure Infrastructure Services by Michael Washam (O’Reilly). Copyright 2015 Opsgility, LLC, 978-1-491-94489-9.”

If you feel your use of code examples falls outside fair use or the permission given above, feel free to contact us at .

Safari® Books Online


Safari Books Online is an on-demand digital library that delivers expert content in both book and video form from the world’s leading authors in technology and business.

Technology professionals, software developers, web designers, and business and creative professionals use Safari Books Online as their primary resource for research, problem solving, learning, and certification training.

Safari Books Online offers a range of product mixes and pricing programs for organizations, government agencies, and individuals. Subscribers have access to thousands of books, training videos, and prepublication manuscripts in one fully searchable database from publishers like O’Reilly Media, Prentice Hall Professional, Addison-Wesley Professional, Microsoft Press, Sams, Que, Peachpit Press, Focal Press, Cisco Press, John Wiley & Sons, Syngress, Morgan Kaufmann, IBM Redbooks, Packt, Adobe Press, FT Press, Apress, Manning, New Riders, McGraw-Hill, Jones & Bartlett, Course Technology, and dozens more. For more information about Safari Books Online, please visit us online.

How to Contact Us

Please address comments and questions concerning this book to the publisher:

O’Reilly Media, Inc.
1005 Gravenstein Highway North
Sebastopol, CA 95472
800-998-9938 (in the United States or Canada)
707-829-0515 (international or local)
707-829-0104 (fax)

We have a web page for this book, where we list errata, examples, and any additional information. You can access this page at

To comment or ask technical questions about this book, send email to .

For more information about our books, courses, conferences, and news, see our website at

Find us on Facebook:

Follow us on Twitter:

Watch us on YouTube:


Writing this book has been a fantastic experience. I have learned so much about what it takes to make a coherent piece of writing (at least I hope I did), and I owe a lot to the people who pushed me through this with encouragement and just incredible hard work.

First of all, I would like to thank my wife for encouraging me to do this, and also for her and my children putting up with me during its completion.

Second, I would like to thank my editors at O’Reilly, Rachel Roumeliotis and Allyson MacDonald, for taking on this project and helping me through it.

Finally, I would like to thank my technical reviewers, who walked through the book multiple times with a fine-tooth comb and gave incredibly useful feedback:

It has been fantastic working with all three of you, and I hope we can do this again!

Get Automating Microsoft Azure Infrastructure Services now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.