Fundamentals of Azure

Fundamentals of Azure

Microsoft Azure Essentials

Michael Collier Robin Shahan

PUBLISHED BY Microsoft Press A division of Microsoft Corporation One Microsoft Way Redmond, Washington 98052-6399 Copyright ? 2015 Microsoft Corporation. All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher. ISBN: 978-0-7356-9722-5 Microsoft Press books are available through booksellers and distributors worldwide. If you need support related to this book, email Microsoft Press Book Support at mspinput@. Please tell us what you think of this book at . This book is provided "as-is" and expresses the authors' views and opinions. The views, opinions, and information expressed in this book, including URL and other Internet website references, may change without notice. Unless otherwise noted, the companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted in examples herein are fictitious. No association with any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred. Microsoft and the trademarks listed at on the "Trademarks" webpage are trademarks of the Microsoft group of companies. All other marks are property of their respective owners. Acquisitions, Developmental, and Project Editor: Devon Musgrave Editorial Production: nSight, Inc. Copyeditor: Teresa Horton Cover: Twist Creative

1

To my wife, Sonja, and son, Aidan; I could not have written this book without your immense support and patience.

--Michael S. Collier I dedicate this book to my friend Carol Schultz, who passed away earlier this year. She always believed in me.

--Robin E. Shahan

2

Table of Contents

Foreword ..................................................................................................................................................................11 Introduction ............................................................................................................................................................12

Who should read this ebook......................................................................................................................12 Assumptions ...............................................................................................................................................12

This ebook might not be for you if.........................................................................................................13 Organization of this ebook.........................................................................................................................13 Conventions and features in this ebook ...............................................................................................14 System requirements.....................................................................................................................................14 Acknowledgments .......................................................................................................................................... 15 Errata, updates, & support ..........................................................................................................................16 Free ebooks from Microsoft Press ...........................................................................................................16 We want to hear from you .........................................................................................................................16 Stay in touch.....................................................................................................................................................16 Chapter 1 Getting started with Azure ..........................................................................................................17 What is Azure? .................................................................................................................................................17

Overview of cloud computing ............................................................................................................17 Comparison of on-premises versus Azure ...............................................................................18

Cloud offering............................................................................................................................................19 SaaS: Software as a Service.............................................................................................................19 PaaS: Platform as a Service.............................................................................................................19 IaaS: Infrastructure as a Service ....................................................................................................19

Azure services ............................................................................................................................................20 Introduction to portals .................................................................................................................................20

Azure Preview Portal...............................................................................................................................21 Blades and journeys ..........................................................................................................................22

3

Customizing the Startboard ..........................................................................................................27 Azure Management Portal ...................................................................................................................28 Subscription management and billing...................................................................................................32 Available subscriptions...........................................................................................................................32 Share administrative privileges for your Azure subscription ..................................................33

Add administrative privileges in the Azure Preview Portal...............................................34 Add a co-administrator in Azure Management Portal .......................................................38 Pricing calculator......................................................................................................................................39 Billing ............................................................................................................................................................41 Chapter 2 Azure Websites and Azure Cloud Services............................................................................46 Creating and configuring websites .........................................................................................................46 What is Azure Websites? .......................................................................................................................46 Creating a new website..........................................................................................................................47 Using the portal..................................................................................................................................47 Websites gallery..................................................................................................................................51 Configure and scale a website......................................................................................................53 Configuration....................................................................................................................................... 53 Scaling ....................................................................................................................................................59 Deploying and monitoring websites ......................................................................................................61 Options for creating websites .............................................................................................................61 Notepad or an HTML editor ..........................................................................................................61 WebMatrix ............................................................................................................................................62 Visual Studio ........................................................................................................................................62 Publishing a website from Visual Studio ........................................................................................63 Monitoring a website .............................................................................................................................65 PaaS Cloud Services.......................................................................................................................................66 Creating a cloud service ........................................................................................................................66

4

Publishing a cloud service ....................................................................................................................69 Scaling and monitoring a cloud service..........................................................................................72 SCALE options............................................................................................................................................72 Monitoring ..................................................................................................................................................74 Miscellaneous points.....................................................................................................................................77 Configuration in the portal ..................................................................................................................77 Production and staging slots in the portal ....................................................................................77 Worker roles ...............................................................................................................................................77 Chapter 3 Azure Virtual Machines .................................................................................................................78 What is Azure Virtual Machines?..............................................................................................................78 VM status.....................................................................................................................................................79 IP address ....................................................................................................................................................80 Billing............................................................................................................................................................. 80 Create and configure virtual machines..................................................................................................80 Create a virtual machine with the Azure Preview Portal..........................................................81 Connect to a virtual machine ..............................................................................................................84 Configure disks ................................................................................................................................................84 Caching......................................................................................................................................................... 85 Attach a disk...............................................................................................................................................85 Formatting disks .......................................................................................................................................87 Disk performance .....................................................................................................................................89 Endpoints ..................................................................................................................................................... 89 Virtual machine management...................................................................................................................91 Availability set............................................................................................................................................92 Service level agreement.........................................................................................................................93 Scalability ..................................................................................................................................................... 94 Image capture............................................................................................................................................97

5

Chapter 4 Azure Storage ................................................................................................................................ 101 Blob storage................................................................................................................................................... 101 Azure Files (preview) .................................................................................................................................. 102 Table storage................................................................................................................................................. 103 Queues............................................................................................................................................................. 104 Redundancy ................................................................................................................................................... 106 Creating and managing storage ........................................................................................................... 107 Create a storage account ................................................................................................................... 107 Create a container and add blobs .................................................................................................. 112 Create a table and add records ....................................................................................................... 116

Chapter 5 Azure Virtual Networks .............................................................................................................. 119 What is a virtual network ......................................................................................................................... 119 Overview ................................................................................................................................................... 119 Definitions ................................................................................................................................................ 120 Virtual network address spaces ................................................................................................. 120 Subnets................................................................................................................................................ 120 DNS servers........................................................................................................................................ 121 Creating a virtual network ....................................................................................................................... 121 Quick Create............................................................................................................................................ 122 Custom Create ........................................................................................................................................ 122 Using a network configuration file ....................................................................................................... 125 Export the network configuration file........................................................................................... 125 Import the network configuration file .......................................................................................... 126 What ifs ..................................................................................................................................................... 127 What if you add a network? ............................................................................................................. 127 What if you remove a network? ...................................................................................................... 127 What if you change a network? ...................................................................................................... 128

6

Cross-premises connection options ..................................................................................................... 129 Site-to-site connectivity...................................................................................................................... 129 Point-to-site connectivity .................................................................................................................. 129 Comparing site-to-site and point-to-site connectivity.......................................................... 130 Private site-to-site connectivity (ExpressRoute)........................................................................ 130

Point-to-site network................................................................................................................................. 131 Overview of setup process................................................................................................................. 131 Configuring point-to-site VPN ........................................................................................................ 132 Create a virtual network ............................................................................................................... 132 Deploy a virtual machine into the virtual network............................................................ 133 Create the VPN gateway.............................................................................................................. 136 Create an authentication certificate for your virtual network ...................................... 137 Upload the self-signed root certificate .................................................................................. 140 Install the client certificate (.pfx) to authenticate the virtual network ...................... 140 Install the client VPN package ................................................................................................... 141 Connect to the virtual network through the VPN client................................................. 141 Connect to the VM using the internal IP address .............................................................. 143 Test the VPN connection ............................................................................................................. 145

Chapter 6 Databases ........................................................................................................................................ 146 Azure SQL Database ................................................................................................................................... 146 Administration ........................................................................................................................................ 149 Firewall settings ............................................................................................................................... 149 Connect using SQL Server Management Studio ................................................................ 153 Billing.......................................................................................................................................................... 154 Business continuity ............................................................................................................................... 154 Database Copy ................................................................................................................................. 158 Import and Export .......................................................................................................................... 158

7

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download