Implementing Azure Solutions Eliminate the pain point of implementation Florian Klaffenbach Jan-Henrik Damaschke Oliver Michalski BIRMINGHAM - MUMBAI Implementing Azure Solutions Copyright © 2017 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: May 2017 Production reference: 2170517 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-78646-785-0 www.packtpub.com Credits Authors Copy Editor Florian Klaffenbach Madhusudan Uchil Jan-Henrik Damaschke Oliver Michalski Reviewers Project Coordinator Sebastian Durandeu Virginia Dias Rafael dos Santos Commissioning Editor Proofreader Pratik Shah Safis Editing Acquisition Editor Indexer Prachi Bisht Pratik Shirodkar Content Development Editor Graphics Amedh Gemraram Pohad Kirk D'Penha Technical Editor Production Coordinator Vishal Kamal Mewada Shantanu Zagade About the Authors Florian Klaffenbach started in 2004 with his IT carrier as 1st and 2nd Level IT Support Technician and IT Salesman Trainee for a B2B online shop. After that, he changed to a small company working as IT Project Manager, planning, implementing, and integration from industrial plants and laundries into enterprise IT. After spending some years, he changed his path to Dell Germany. There he started from scratch as an Enterprise Technical Support Analyst and later worked on a project to start Dell Technical Communities and support over social Media in Europe and outside of the U.S. Currently he is working as a Solutions Architect and Consultant for Microsoft Infrastructure and Cloud and is specialized in Microsoft Hyper-V, Fileservices, System Center Virtual Machine Manager, and Microsoft Azure IaaS at msg services ag. In addition to his job, he is active as a Microsoft Blogger and Lecturer. He blogs for example on his own page Datacenter-Flo.de or Azure Community Germany. Together with a very good friend, he founded the Windows Server User Group Berlin to create network of Microsoft ITPros in Berlin. Florian maintains a very tight network for many vendors such as Cisco, Dell, or Microsoft and Communities. This helps him to grow his experience and to get the best solution for his customers. Since 2016, he is also Co-Chairman of the Azure Community Germany. In April 2016, Microsoft awarded Florian Microsoft Most Valuable Professional for Cloud and Datacenter Management. With that few lines, I want to thank all people, especially my family and friends who supported me while writing the book. Most of them didn’t see me for a long time because I was spending most of my spare time for preparing the next chapter or testing new features which I wanted to mention within the book. I also want to thank the guys from Microsoft and the coauthors Jan-Henrik and Oliver who support with reviewing and clearing some open questions and misunderstandings. Hopefully you as reader enjoy the reading the book as much as I writing it. Jan-Henrik Damaschke is an IT Consultant for Security, Network, and Infrastructure from Germany. He was MVP awarded in the categories of Enterprise Security, PowerShell, and AzureStack. PKI implementation and management is one of his core competencies as well as cloud-related security. He writes articles on security-related topics and is involved in many community events as a speaker as well as an organizer. He is passionate about sharing knowledge with others. For this purpose, he is member of the Microsoft Student Partner program and is engaged on forums and on other platforms. Currently, he is writing a book on Azure infrastructure solutions. Oliver Michalski started in 1999 with his IT carrier as a Web Developer. Now, he is a Senior Software Engineer for Microsoft .NET and an SOA Architect. He also works as an Independent Enterprise Consultant in the field Microsoft Azure. When he started in 2011 with Microsoft Azure, there was no Azure Community on the German market. Therefore, Oliver founded the Azure Community Germany (ACD). Oliver is Chairman of the Azure Community Germany, and since April 2016 he has been a Microsoft Most Valuable Professional for Microsoft Azure. About the Reviewers Sebastian Durandeu is a senior software engineer with a primary focus on building applications and services for the Cloud using Microsoft technologies. He works at Southworks, a high-end software development company that helps businesses leverage the latest technologies. There he has worked closely with several Microsoft divisions helping the developer community adopt emerging technologies using recommended practices. Sebastian currently lives in Buenos Aires, Argentina where he is an active contributor in the developer community. He shares his knowledge via his Twitter (@sebadurandeu) and GitHub accounts (sdurandeu). Rafael dos Santos Christian, Geysla’s husband, Ted’s father, Entrepreneur, Developer, Cloud specialist. 10 years experience developing and architecting web based solutions. I would like to thank Lucas Romao for the support and mentoring on learning Microsoft Azure. I also would like to thank all the SDK Team at ITIX, you guys are amazing and I love work with you guys. www.PacktPub.com For support files and downloads related to your book, please visit www.PacktPub.com. Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details. At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks. https://www.packtpub.com/mapt Get the most in-demand software skills with Mapt. Mapt gives you full access to all Packt books and video courses, as well as industry-leading tools to help you plan your personal development and advance your career. Why subscribe? Fully searchable across every book published by Packt Copy and paste, print, and bookmark content On demand and accessible via a web browser Customer Feedback Thanks for purchasing this Packt book. At Packt, quality is at the heart of our editorial process. To help us improve, please leave us an honest review on this book's Amazon page at https://www.amazon.com/dp/1786467852. If you'd like to join our team of regular reviewers, you can e-mail us at [email protected]. We award our regular reviewers with free eBooks and videos in exchange for their valuable feedback. Help us be relentless in improving our products! Table of Contents Preface 1 Chapter 1: Getting Started with Azure Implementation 6 Service models 7 Deployment models 8 Cloud characteristics 10 Microsoft Azure 11 Azure services overview 11 Azure basics 13 Azure Resource Manager 14 Resources 14 Azure regions 15 Azure Portal 15 Azure automation 15 Azure Automation tools 16 REST APIs 16 Summary 17 Chapter 2: Azure Resource Manager and Tools 18 Understanding the Azure resource manager 19 Functionalities provided by the Azure resource manager 19 Working with the Azure resource manager 20 Creating an Azure resource group 21 Adding a resource to an Azure resource group 24 First approach - adding a storage account to your Azure resource group 24 Second approach - adding a storage account to your Azure resource group 27 Third approach - adding a storage account to your Azure resource group 29 Tagging in the Azure resource manager 38 Locking Azure resources 44 Azure resource locks 44 Working with ARM templates 47 Exporting a deployment as an ARM template (for IT pros) 48 Example 1: exporting a resource group to an ARM template 49 Example 2: exporting a resource (from the deployment history) to an ARM template 51 Example 3: exporting a resource (classic) to an ARM template 53