Вы находитесь на странице: 1из 336

MCT USE ONLY. STUDENT USE PROHIBITED

OFFICIAL

MICROSOFT

L EARNING

PRODUCT

MCT USE ONLY. STUDENT USE PROHIBITED OFFICIAL MICROSOFT L EARNING PRODUCT 20532A Developing Microsoft Azure™ Solutions

20532A

Developing Microsoft Azure™ Solutions

MCT USE ONLY. STUDENT USE PROHIBITED

ii Developing Microsoft Azure™ Solutions

Information in this document, including URL and other Internet Web site references, is subject to change without notice. Unless otherwise noted, the example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious, and no association with any real company, organization, product, domain name, e-mail address, logo, person, place or event is intended or should be inferred. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation.

Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property.

The names of manufacturers, products, or URLs are provided for informational purposes only and Microsoft makes no representations and warranties, either expressed, implied, or statutory, regarding these manufacturers or the use of the products with any Microsoft technologies. The inclusion of a manufacturer or product does not imply endorsement of Microsoft of the manufacturer or product. Links may be provided to third party sites. Such sites are not under the control of Microsoft and Microsoft is not responsible for the contents of any linked site or any link contained in a linked site, or any changes or updates to such sites. Microsoft is not responsible for webcasting or any other form of transmission received from any linked site. Microsoft is providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement of Microsoft of the site or the products contained therein.

© 2014 Microsoft Corporation. All rights reserved.

Microsoft and the trademarks listed at http://www.microsoft.com/about/legal/en/us/IntellectualProperty/Trademarks/EN-US.aspx are trademarks of the Microsoft group of companies. All other trademarks are property of their respective owners.

Product Number: 20532A

Part Number (if applicable): X19-76909

Released: 09/2014

MCT USE ONLY. STUDENT USE PROHIBITED

MICROSOFT LICENSE TERMS MICROSOFT INSTRUCTOR-LED COURSEWARE

These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its

affiliates) and you. Please read them. They apply to your use of the content accompanying this agreement which

includes the media on which you received it, if any. These license terms also apply to Trainer Content and any

updates and supplements for the Licensed Content unless other terms accompany those items. If so, those terms

apply.

BY ACCESSING, DOWNLOADING OR USING THE LICENSED CONTENT, YOU ACCEPT THESE TERMS.

IF YOU DO NOT ACCEPT THEM, DO NOT ACCESS, DOWNLOAD OR USE THE LICENSED CONTENT.

If you comply with these license terms, you have the rights below for each license you acquire.

1.

DEFINITIONS.

a. “Authorized Learning Center” means a Microsoft IT Academy Program Member, Microsoft Learning Competency Member, or such other entity as Microsoft may designate from time to time.

b. “Authorized Training Session” means the instructor-led training class using Microsoft Instructor-Led Courseware conducted by a Trainer at or through an Authorized Learning Center.

c. “Classroom Device” means one (1) dedicated, secure computer that an Authorized Learning Center owns

or controls that is located at an Authorized Learning Center’s training facilities that meets or exceeds the

hardware level specified for the particular Microsoft Instructor-Led Courseware.

d. “End User” means an individual who is (i) duly enrolled in and attending an Authorized Training Session

or Private Training Session, (ii) an employee of a MPN Member, or (iii) a Microsoft full-time employee.

e. “Licensed Content” means the content accompanying this agreement which may include the Microsoft

Instructor-Led Courseware or Trainer Content.

f. “Microsoft Certified Trainer” or “MCT” means an individual who is (i) engaged to teach a training session

to End Users on behalf of an Authorized Learning Center or MPN Member, and (ii) currently certified as a

Microsoft Certified Trainer under the Microsoft Certification Program.

g. “Microsoft Instructor-Led Courseware” means the Microsoft-branded instructor-led training course that

educates IT professionals and developers on Microsoft technologies. A Microsoft Instructor-Led

Courseware title may be branded as MOC, Microsoft Dynamics or Microsoft Business Group courseware.

h. “Microsoft IT Academy Program Member” means an active member of the Microsoft IT Academy Program.

i. “Microsoft Learning Competency Member” means an active member of the Microsoft Partner Network program in good standing that currently holds the Learning Competency status.

j. “MOC” means the “Official Microsoft Learning Product” instructor-led courseware known as Microsoft Official Course that educates IT professionals and developers on Microsoft technologies.

k. “MPN Member” means an active Microsoft Partner Network program member in good standing.

MCT USE ONLY. STUDENT USE PROHIBITED

l. “Personal Device” means one (1) personal computer, device, workstation or other digital electronic device

that you personally own or control that meets or exceeds the hardware level specified for the particular

Microsoft Instructor-Led Courseware.

m. “Private Training Session” means the instructor-led training classes provided by MPN Members for

corporate customers to teach a predefined learning objective using Microsoft Instructor-Led Courseware.

These classes are not advertised or promoted to the general public and class attendance is restricted to

individuals employed by or contracted by the corporate customer.

n. “Trainer” means (i) an academically accredited educator engaged by a Microsoft IT Academy Program

Member to teach an Authorized Training Session, and/or (ii) a MCT.

o. “Trainer Content” means the trainer version of the Microsoft Instructor-Led Courseware and additional

supplemental content designated solely for Trainers’ use to teach a training session using the Microsoft

Instructor-Led Courseware. Trainer Content may include Microsoft PowerPoint presentations, trainer

preparation guide, train the trainer materials, Microsoft One Note packs, classroom setup guide and Pre-

release course feedback form. To clarify, Trainer Content does not include any software, virtual hard disks or virtual machines.

2.

2.1

USE RIGHTS. The Licensed Content is licensed not sold. The Licensed Content is licensed on a one copy

per user basis, such that you must acquire a license for each individual that accesses or uses the Licensed

Content.

Below are five separate sets of use rights. Only one set of rights apply to you.

a. If you are a Microsoft IT Academy Program Member:

i. Each license acquired on behalf of yourself may only be used to review one (1) copy of the Microsoft

Instructor-Led Courseware in the form provided to you. If the Microsoft Instructor-Led Courseware is

in digital format, you may install one (1) copy on up to three (3) Personal Devices. You may not install the Microsoft Instructor-Led Courseware on a device you do not own or control.

ii. For each license you acquire on behalf of an End User or Trainer, you may either:

1. distribute one (1) hard copy version of the Microsoft Instructor-Led Courseware to one (1) End

User who is enrolled in the Authorized Training Session, and only immediately prior to the

commencement of the Authorized Training Session that is the subject matter of the Microsoft

Instructor-Led Courseware being provided, or

2. provide one (1) End User with the unique redemption code and instructions on how they can

access one (1) digital version of the Microsoft Instructor-Led Courseware, or

3. provide one (1) Trainer with the unique redemption code and instructions on how they can access one (1) Trainer Content,

provided you comply with the following:

iii. you will only provide access to the Licensed Content to those individuals who have acquired a valid

license to the Licensed Content,

iv. you will ensure each End User attending an Authorized Training Session has their own valid licensed

copy of the Microsoft Instructor-Led Courseware that is the subject of the Authorized Training Session,

v. you will ensure that each End User provided with the hard-copy version of the Microsoft Instructor-

Led Courseware will be presented with a copy of this agreement and each End User will agree that

their use of the Microsoft Instructor-Led Courseware will be subject to the terms in this agreement

prior to providing them with the Microsoft Instructor-Led Courseware. Each individual will be required

to denote their acceptance of this agreement in a manner that is enforceable under local law prior to

their accessing the Microsoft Instructor-Led Courseware,

vi. you will ensure that each Trainer teaching an Authorized Training Session has their own valid licensed copy of the Trainer Content that is the subject of the Authorized Training Session,

MCT USE ONLY. STUDENT USE PROHIBITED

vii. you will only use qualified Trainers who have in-depth knowledge of and experience with the

Microsoft technology that is the subject of the Microsoft Instructor-Led Courseware being taught for

all your Authorized Training Sessions,

viii. you will only deliver a maximum of 15 hours of training per week for each Authorized Training Session that uses a MOC title, and

ix. you acknowledge that Trainers that are not MCTs will not have access to all of the trainer resources

for the Microsoft Instructor-Led Courseware.

b. If you are a Microsoft Learning Competency Member:

i. Each license acquired on behalf of yourself may only be used to review one (1) copy of the Microsoft

Instructor-Led Courseware in the form provided to you. If the Microsoft Instructor-Led Courseware is

in digital format, you may install one (1) copy on up to three (3) Personal Devices. You may not install the Microsoft Instructor-Led Courseware on a device you do not own or control.

ii. For each license you acquire on behalf of an End User or Trainer, you may either:

1. distribute one (1) hard copy version of the Microsoft Instructor-Led Courseware to one (1) End

User attending the Authorized Training Session and only immediately prior to the

commencement of the Authorized Training Session that is the subject matter of the Microsoft

Instructor-Led Courseware provided, or

2. provide one (1) End User attending the Authorized Training Session with the unique redemption

code and instructions on how they can access one (1) digital version of the Microsoft Instructor-

Led Courseware, or

3. you will provide one (1) Trainer with the unique redemption code and instructions on how they

can access one (1) Trainer Content, provided you comply with the following:

iii. you will only provide access to the Licensed Content to those individuals who have acquired a valid

license to the Licensed Content,

iv. you will ensure that each End User attending an Authorized Training Session has their own valid licensed copy of the Microsoft Instructor-Led Courseware that is the subject of the Authorized Training Session,

v. you will ensure that each End User provided with a hard-copy version of the Microsoft Instructor-Led

Courseware will be presented with a copy of this agreement and each End User will agree that their

use of the Microsoft Instructor-Led Courseware will be subject to the terms in this agreement prior to

providing them with the Microsoft Instructor-Led Courseware. Each individual will be required to

denote their acceptance of this agreement in a manner that is enforceable under local law prior to

their accessing the Microsoft Instructor-Led Courseware,

vi. you will ensure that each Trainer teaching an Authorized Training Session has their own valid licensed copy of the Trainer Content that is the subject of the Authorized Training Session,

vii. you will only use qualified Trainers who hold the applicable Microsoft Certification credential that is

the subject of the Microsoft Instructor-Led Courseware being taught for your Authorized Training Sessions,

viii. you will only use qualified MCTs who also hold the applicable Microsoft Certification credential that is

the subject of the MOC title being taught for all your Authorized Training Sessions using MOC,

ix. you will only provide access to the Microsoft Instructor-Led Courseware to End Users, and

x. you will only provide access to the Trainer Content to Trainers.

MCT USE ONLY. STUDENT USE PROHIBITED

c. If you are a MPN Member:

i. Each license acquired on behalf of yourself may only be used to review one (1) copy of the Microsoft

Instructor-Led Courseware in the form provided to you. If the Microsoft Instructor-Led Courseware is

in digital format, you may install one (1) copy on up to three (3) Personal Devices. You may not install the Microsoft Instructor-Led Courseware on a device you do not own or control.

ii. For each license you acquire on behalf of an End User or Trainer, you may either:

1. distribute one (1) hard copy version of the Microsoft Instructor-Led Courseware to one (1) End

User attending the Private Training Session, and only immediately prior to the commencement

of the Private Training Session that is the subject matter of the Microsoft Instructor-Led Courseware being provided, or

2. provide one (1) End User who is attending the Private Training Session with the unique redemption code and instructions on how they can access one (1) digital version of the Microsoft Instructor-Led Courseware, or

3. you will provide one (1) Trainer who is teaching the Private Training Session with the unique

redemption code and instructions on how they can access one (1) Trainer Content, provided you comply with the following:

iii. you will only provide access to the Licensed Content to those individuals who have acquired a valid

license to the Licensed Content,

iv. you will ensure that each End User attending an Private Training Session has their own valid licensed

copy of the Microsoft Instructor-Led Courseware that is the subject of the Private Training Session,

v. you will ensure that each End User provided with a hard copy version of the Microsoft Instructor-Led

Courseware will be presented with a copy of this agreement and each End User will agree that their

use of the Microsoft Instructor-Led Courseware will be subject to the terms in this agreement prior to

providing them with the Microsoft Instructor-Led Courseware. Each individual will be required to

denote their acceptance of this agreement in a manner that is enforceable under local law prior to

their accessing the Microsoft Instructor-Led Courseware,

vi. you will ensure that each Trainer teaching an Private Training Session has their own valid licensed

copy of the Trainer Content that is the subject of the Private Training Session,

vii. you will only use qualified Trainers who hold the applicable Microsoft Certification credential that is

the subject of the Microsoft Instructor-Led Courseware being taught for all your Private Training Sessions,

viii. you will only use qualified MCTs who hold the applicable Microsoft Certification credential that is the

subject of the MOC title being taught for all your Private Training Sessions using MOC,

ix. you will only provide access to the Microsoft Instructor-Led Courseware to End Users, and

x. you will only provide access to the Trainer Content to Trainers.

d. If you are an End User:

For each license you acquire, you may use the Microsoft Instructor-Led Courseware solely for your

personal training use. If the Microsoft Instructor-Led Courseware is in digital format, you may access the

Microsoft Instructor-Led Courseware online using the unique redemption code provided to you by the

training provider and install and use one (1) copy of the Microsoft Instructor-Led Courseware on up to

three (3) Personal Devices. You may also print one (1) copy of the Microsoft Instructor-Led Courseware.

You may not install the Microsoft Instructor-Led Courseware on a device you do not own or control.

e. If you are a Trainer.

i. For each license you acquire, you may install and use one (1) copy of the Trainer Content in the form provided to you on one (1) Personal Device solely to prepare and deliver an Authorized

Training Session or Private Training Session, and install one (1) additional copy on another Personal

Device as a backup copy, which may be used only to reinstall the Trainer Content. You may not install or use a copy of the Trainer Content on a device you do not own or control. You may also

print one (1) copy of the Trainer Content solely to prepare for and deliver an Authorized Training

Session or Private Training Session.

MCT USE ONLY. STUDENT USE PROHIBITED

ii. You may customize the written portions of the Trainer Content that are logically associated with

instruction of a training session in accordance with the most recent version of the MCT agreement.

If you elect to exercise the foregoing rights, you agree to comply with the following: (i) customizations may only be used for teaching Authorized Training Sessions and Private Training Sessions, and (ii) all customizations will comply with this agreement. For clarity, any use of

customize refers only to changing the order of slides and content, and/or not using all the slides or

content, it does not mean changing or modifying any slide or content.

2.2 Separation of Components. The Licensed Content is licensed as a single unit and you may not

separate their components and install them on different devices.

2.3

not distribute any Licensed Content or any portion thereof (including any permitted modifications) to any third parties without the express written permission of Microsoft.

Redistribution of Licensed Content. Except as expressly provided in the use rights above, you may

2.4

third party, licenses to you under this agreement. Notices, if any, for the third party code ntent are included

for your information only.

Third Party Notices. The Licensed Content may include third party code tent that Microsoft, not the

2.5 Additional Terms. Some Licensed Content may contain components with additional terms,

conditions, and licenses regarding its use. Any non-conflicting terms in those conditions and licenses also apply to your use of that respective component and supplements the terms described in this agreement.

3. LICENSED CONTENT BASED ON PRE-RELEASE TECHNOLOGY. If the Licensed Content’s subject

matter is based on a pre-release version of Microsoft technology (“Pre-release”), then in addition to the

other provisions in this agreement, these terms also apply:

a. Pre-Release Licensed Content. This Licensed Content subject matter is on the Pre-release version of

the Microsoft technology. The technology may not work the way a final version of the technology will and we may change the technology for the final version. We also may not release a final version.

Licensed Content based on the final version of the technology may not contain the same information as

the Licensed Content based on the Pre-release version. Microsoft is under no obligation to provide you

with any further content, including any Licensed Content based on the final version of the technology.

b. Feedback. If you agree to give feedback about the Licensed Content to Microsoft, either directly or through its third party designee, you give to Microsoft without charge, the right to use, share and commercialize your feedback in any way and for any purpose. You also give to third parties, without

charge, any patent rights needed for their products, technologies and services to use or interface with

any specific parts of a Microsoft technology, Microsoft product, or service that includes the feedback. You will not give feedback that is subject to a license that requires Microsoft to license its technology, technologies, or products to third parties because we include your feedback in them. These rights survive this agreement.

c. Pre-release Term. If you are an Microsoft IT Academy Program Member, Microsoft Learning

Competency Member, MPN Member or Trainer, you will cease using all copies of the Licensed Content on

the Pre-release technology upon (i) the date which Microsoft informs you is the end date for using the

Licensed Content on the Pre-release technology, or (ii) sixty (60) days after the commercial release of the

technology that is the subject of the Licensed Content, whichever is earliest (“Pre-release term”).

Upon expiration or termination of the Pre-release term, you will irretrievably delete and destroy all copies

of the Licensed Content in your possession or under your control.

MCT USE ONLY. STUDENT USE PROHIBITED

4.

5.

6.

7.

8.

9.

10.

11.

SCOPE OF LICENSE. The Licensed Content is licensed, not sold. This agreement only gives you some

rights to use the Licensed Content. Microsoft reserves all other rights. Unless applicable law gives you more

rights despite this limitation, you may use the Licensed Content only as expressly permitted in this

agreement. In doing so, you must comply with any technical limitations in the Licensed Content that only

allows you to use it in certain ways. Except as expressly permitted in this agreement, you may not:

access or allow any individual to access the Licensed Content if they have not acquired a valid license

for the Licensed Content,

alter, remove or obscure any copyright or other protective notices (including watermarks), branding

or identifications contained in the Licensed Content,

modify or create a derivative work of any Licensed Content,

publicly display, or make the Licensed Content available for others to access or use,

copy, print, install, sell, publish, transmit, lend, adapt, reuse, link to or post, make available or distribute the Licensed Content to any third party,

work around any technical limitations in the Licensed Content, or

reverse engineer, decompile, remove or otherwise thwart any protections or disassemble the Licensed Content except and only to the extent that applicable law expressly permits, despite this limitation.

RESERVATION OF RIGHTS AND OWNERSHIP. Microsoft reserves all rights not expressly granted to

you in this agreement. The Licensed Content is protected by copyright and other intellectual property laws

and treaties. Microsoft or its suppliers own the title, copyright, and other intellectual property rights in the

Licensed Content.

EXPORT RESTRICTIONS. The Licensed Content is subject to United States export laws and regulations.

You must comply with all domestic and international export laws and regulations that apply to the Licensed

Content. These laws include restrictions on destinations, end users and end use. For additional information,

see www.microsoft.com/exporting.

SUPPORT SERVICES. Because the Licensed Content is “as is”, we may not provide support services for it.

TERMINATION. Without prejudice to any other rights, Microsoft may terminate this agreement if you fail

to comply with the terms and conditions of this agreement. Upon termination of this agreement for any reason, you will immediately stop all use of and delete and destroy all copies of the Licensed Content in your possession or under your control.

LINKS TO THIRD PARTY SITES. You may link to third party sites through the use of the Licensed

Content. The third party sites are not under the control of Microsoft, and Microsoft is not responsible for

the contents of any third party sites, any links contained in third party sites, or any changes or updates to

third party sites. Microsoft is not responsible for webcasting or any other form of transmission received from any third party sites. Microsoft is providing these links to third party sites to you only as a

convenience, and the inclusion of any link does not imply an endorsement by Microsoft of the third party

site.

ENTIRE AGREEMENT. This agreement, and any additional terms for the Trainer Content, updates and

supplements are the entire agreement for the Licensed Content, updates and supplements.

a.

APPLICABLE LAW.

United States. If you acquired the Licensed Content in the United States, Washington state law governs

the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws

principles. The laws of the state where you live govern all other claims, including claims under state consumer protection laws, unfair competition laws, and in tort.

MCT USE ONLY. STUDENT USE PROHIBITED

b.

Outside the United States. If you acquired the Licensed Content in any other country, the laws of that

country apply.

12. LEGAL EFFECT. This agreement describes certain legal rights. You may have other rights under the laws

of your country. You may also have rights with respect to the party from whom you acquired the Licensed

Content. This agreement does not change your rights under the laws of your country if the laws of your

country do not permit it to do so.

13. DISCLAIMER OF WARRANTY. THE LICENSED CONTENT IS LICENSED "AS-IS" AND "AS AVAILABLE." YOU BEAR THE RISK OF USING IT. MICROSOFT AND ITS RESPECTIVE AFFILIATES GIVES NO EXPRESS WARRANTIES, GUARANTEES, OR CONDITIONS. YOU MAY

HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR LOCAL LAWS WHICH THIS AGREEMENT

CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT AND

ITS RESPECTIVE AFFILIATES EXCLUDES ANY IMPLIED WARRANTIES OF MERCHANTABILITY,

FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.

14. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM

MICROSOFT, ITS RESPECTIVE AFFILIATES AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP

TO US$5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES.

This limitation applies to

o

anything related to the Licensed Content, services, content (including code) on third party Internet

sites or third-party programs; and

claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence,

or other tort to the extent permitted by applicable law.

o

It also applies even if Microsoft knew or should have known about the possibility of the damages. The

above limitation or exclusion may not apply to you because your country may not allow the exclusion or

limitation of incidental, consequential or other damages.

Please note: As this Licensed Content is distributed in Quebec, Canada, some of the clauses in this

agreement are provided below in French.

Remarque : Ce le contenu sous licence étant distribué au Québec, Canada, certaines des clauses dans ce contrat sont fournies ci-dessous en français.

EXONÉRATION DE GARANTIE. Le contenu sous licence visé par une licence est offert « tel quel ». Toute

utilisation de ce contenu sous licence est à votre seule risque et péril. Microsoft n’accorde aucune autre garantie

expresse. Vous pouvez bénéficier de droits additionnels en vertu du droit local sur la protection dues consommateurs, que ce contrat ne peut modifier. La ou elles sont permises par le droit locale, les garanties

implicites de qualité marchande, d’adéquation à un usage particulier et d’absence de contrefaçon sont exclues.

LIMITATION DES DOMMAGES-INTÉRÊTS ET EXCLUSION DE RESPONSABILITÉ POUR LES

DOMMAGES. Vous pouvez obtenir de Microsoft et de ses fournisseurs une indemnisation en cas de dommages

directs uniquement à hauteur de 5,00 $ US. Vous ne pouvez prétendre à aucune indemnisation pour les autres

dommages, y compris les dommages spéciaux, indirects ou accessoires et pertes de bénéfices. Cette limitation concerne:

tout ce qui est relié au le contenu sous licence, aux services ou au contenu (y compris le code)

figurant sur des sites Internet tiers ou dans des programmes tiers; et.

les réclamations au titre de violation de contrat ou de garantie, ou au titre de responsabilité stricte, de négligence ou d’une autre faute dans la limite autorisée par la loi en vigueur.

MCT USE ONLY. STUDENT USE PROHIBITED

Elle s’applique également, même si Microsoft connaissait ou devrait connaître l’éventualité d’un tel dommage. Si

votre pays n’autorise pas l’exclusion ou la limitation de responsabilité pour les dommages indirects, accessoires

ou de quelque nature que ce soit, il se peut que la limitation ou l’exclusion ci-dessus ne s’appliquera pas à votre

égard.

EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous pourriez avoir d’autres droits

prévus par les lois de votre pays. Le présent contrat ne modifie pas les droits que vous confèrent les lois de votre

pays si celles-ci ne le permettent pas.

Revised July 2013

Developing Microsoft Azure™ Solutions xi MCT USE ONLY. STUDENT USE PROHIBITED
Developing Microsoft Azure™ Solutions
xi
MCT USE ONLY. STUDENT USE PROHIBITED

MCT USE ONLY. STUDENT USE PROHIBITED

xii Developing Microsoft Azure™ Solutions

Acknowledgments

Microsoft Learning wants to acknowledge and thank the following for their contribution toward developing this title. Their effort at various stages in the development has ensured that you have a good classroom experience.

Sidney Andrews – Lead Content Developer

Sidney Andrews is an Azure™ consultant and XAML subject matter expert with SeeSharpRun.NET. As a Microsoft Certified Trainer, Sidney has offered training in various developer courses and delivered exam prep sessions at Microsoft conferences. As a consultant, Sidney has designed and implemented multiple complex web solutions based on the ASP.NET stack and the Azure™ service offerings.

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

xiii

Contents

Module 1: Overview of the Microsoft Azure Platform

Lesson 1: Azure Services Lesson 2: Management Portals

1-2

1-5

Module 2: Establishing a Development Environment using Azure Virtual Machines

Lesson 1: Constructing Azure Virtual Machines Lesson 2: Azure Virtual Machine Workloads Lesson 3: Migrating Azure Virtual Machine Instances Lab: Creating an Azure Virtual Machine for Development & Testing

Module 3: Managing Infrastructure in Azure

Lesson 1: Azure Virtual Networks Lesson 2: Highly Available Azure Virtual Machines Lesson 3: Virtual Machine Configuration Management Lesson 4: Customizing Azure Virtual Machine Networking Lab: Managing Multiple Virtual Machines in a Virtual Network

2-2

2-4

2-5

2-7

3-2

3-3

3-4

3-6

3-8

Module 4: Web Infrastructure in the Azure Platform

Lesson 1: Azure Web Sites Lesson 2: Hosting Web Applications in Azure Lesson 3: Configuring an Azure Web Site Lesson 4: Publishing an Azure Web Site Lesson 5: Monitoring an Azure Web Site Lab: Creating an ASP.NET Web Site Using Azure Web Sites

4-2

4-4

4-6

4-8

4-10

4-13

Module 5: Designing Cloud Applications for Resiliency

Lesson 1: Application Design Practices for Highly Available Applications Lesson 2: Building High Performance Applications using ASP.NET Lesson 3: Common Cloud Application Patterns Lesson 4: Application Analysis Lesson 5: Caching Application Data

5-2

5-4

5-6

5-8

5-10

Module 6: Processing Background Logic using Azure

Lesson 1: Understanding Cloud Services Lesson 2: Cloud Service Web Roles Lesson 3: Customizing Cloud Service Configurations Lesson 4: Updating and Managing Azure Cloud Service Deployments Lesson 5: Cloud Service Worker Roles Lesson 6: Cloud Service Worker Role Processing Lesson 7: Caching Data using Roles Lesson 8: Analyzing Applications in Cloud Service Role Instances Lab: Creating a Background Process Using Azure Worker Roles

6-3

6-5

6-7

6-9

6-11

6-13

6-15

6-17

6-19

MCT USE ONLY. STUDENT USE PROHIBITED

xiv Developing Microsoft Azure™ Solutions

Module 7: Storing Tabular Data in Azure

Lesson 1: Azure SQL Databases Overview Lesson 2: Managing SQL Databases in Azure Lesson 3: Using Azure SQL Databases with SQL Server Data Tools Lesson 4: Migrating Data to Azure SQL Databases Lesson 5: Replication and Recovery of Azure SQL Database Instances Lab A: Storing Event Data in Azure SQL Databases Lesson 6: Azure Storage Overview Lesson 7: Azure Storage Tables Overview Lesson 8: Table Entity Transactions Lab B: Storing Event Registration Data in Azure Storage Tables

Module 8: Storing Files and Media in Azure

Lesson 1: Azure Storage Blobs Lesson 2: Controlling Access to Storage Blobs & Containers Lesson 3: Monitoring Storage Blobs Lesson 4: Configuring Azure Storage Accounts Lesson 5: Azure Files Lesson 6: Uploading and Migrating Storage Data Lab: Storing Generated Documents in Azure Storage Blobs

Module 9: Storing Data in Queues using Azure

Lesson 1: Queue Mechanisms in Azure Lesson 2: Azure Storage Queues Overview Lesson 3: Handling Storage Queue Messages Lesson 4: Azure Service Bus Lesson 5: Azure Service Bus Queues Lesson 6: Azure Service Bus Relay Lesson 7: Azure Service Bus Notification Hubs Lab: Using Queues and Service Bus to Manage Communication in Azure

7-3

7-5

7-7

7-9

7-11

7-13

7-17

7-19

7-21

7-25

8-2

8-4

8-6

8-8

8-9

8-10

8-12

9-2

9-3

9-5

9-6

9-8

9-10

9-12

9-14

Module 10: Automating Integration with Azure Resources

Lesson 1: Azure SDK Client Libraries Lesson 2: Scripting Azure Service Management using PowerShell Lesson 3: Azure REST Interface Lesson 4: Azure Resource Manager Lab: Automating the Creation of a Test Environment using PowerShell

10-2

10-3

10-6

10-7

10-10

Module 11: Implementing Security in Web Applications using Azure

Lesson 1: Azure Active Directory Lesson 2: Azure AD Directories Lesson 3: Azure AD Access Control Service Lesson 4: Azure AD Multi-Factor Authentication Lab: Integrating Azure Active Directory with the Events Administration Portal

11-2

11-4

11-6

11-7

11-8

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

xv

Module 12: Deploying Web Applications to Azure

Lesson 1: Deployment Strategies for Web Applications Lesson 2: Deploying Azure Web Sites Lesson 3: Deploying Azure Cloud Services Lesson 4: Continuous Integration Lesson 5: Monitoring Cloud Applications Lab: Deploying the Events Web Application to Azure

Lab Answer Keys

Module 2 Lab: Creating an Azure Virtual Machine for Development & Testing Module 3 Lab: Managing Multiple Virtual Machines in a Virtual Network Module 4 Lab: Creating an ASP.NET Web Site Using Azure Web Sites Module 6 Lab: Creating a Background Process Using Azure Worker Roles Module 7 Lab A: Storing Event Data in Azure SQL Databases Module 7 Lab B: Storing Event Registration Data in Azure Storage Tables Module 8 Lab: Storing Generated Documents in Azure Storage Blobs Module 9 Lab: Using Queues and Service Bus to Manage Communication in Azure Module 10 Lab: Automating the Creation of a Test Environment using PowerShell Module 11 Lab: Integrating Azure Active Directory with the Events Administration Portal Module 12 Lab: Deploying the Events Web Application to Azure

12-2

12-4

12-6

12-8

12-9

12-11

L2-1

L3-1

L4-1

L6-1

L7-1

L7-7

L8-1

L9-1

L10-1

L11-1

L12-1

MCT USE ONLY. STUDENT USE PROHIBITED

xvi Developing Microsoft Azure™ Solutions

MCT USE ONLY. STUDENT USE PROHIBITED

About This Course

xvii

About This Course

This section provides a brief description of the course, audience, suggested prerequisites, and course objectives.

Course Description

Note: This first release (‘A’) MOC version of course 20532A has been developed on pre-release software. Microsoft Learning will release a ‘B’ version of this course with enhanced PowerPoint slides, copy-edited content, and Course Companion content on Microsoft Learning site.

This course is intended for students who have experience building vertically scaled applications. Students

will also have experience with the Microsoft Azure platform and a basic understanding of the services offered.

This course offers students the opportunity to take an existing ASP.NET MVC application and expand its functionality as part of moving it to Azure. This course focuses on the considerations necessary when building a highly available solution in the cloud. This course also prepares the students for the 70-532:

Developing Microsoft Azure Solutions certification exam.

Audience

The candidates targeted by this training have basic experience in implementing and monitoring Microsoft

Azure solutions. Candidates are also proficient with the development tools, techniques and approaches used to build application solutions.

Student Prerequisites

In addition to their professional experience, students must have experience working with the Azure platform. They will also have a general understanding of ASP.NET and C# concepts for the lab scenario. Candidates experience can include:

Compare services available in the Azure platform

Configure and deploy ASP.NET web applications

Creating Azure WebSites from the gallery

Deploying and monitoring Azure WebSites

Creating and configuring Azure Virtual Machines

Describe the relationship between Cloud Services and Virtual Machines

Deploy existing Cloud Service packages

Create and manage a Storage account

Manage blobs and containers in a Storage account

Create, configure and connect to a SQL Databases instance

Identify the implications of importing a SQL Standalone database

Manage users, groups and subscriptions in an Azure Active Directory instance

Create a virtual network

MCT USE ONLY. STUDENT USE PROHIBITED

xviii About This Course

Implement a point to site network

Course Objectives

After completing this course, students will be able to:

Compare the services available in the Azure platform.

Configure and deploy ASP.NET web applications.

Creating Azure WebSites from the gallery.

Deploying and monitoring Azure WebSites.

Creating and configuring Azure Virtual Machines.

Describe the relationship between Cloud Services and Virtual Machines.

Deploy existing Cloud Service packages.

Create and manage a Storage account.

Manage blobs and containers in a Storage account.

Create, configure and connect to a SQL Databases instance.

Identify the implications of importing a SQL Standalone database.

Manage users, groups and subscriptions in an Azure Active Directory instance.

Create a virtual network.

Implement a point to site network.

Course Outline

The course outline is as follows:

Module 1, "Overview of the Microsoft Azure Platform" Module 2, "Establishing a Development Environment using Azure Virtual Machines" Module 3, "Managing Infrastructure in Azure" Module 4, "Web Infrastructure in the Azure Platform" Module 5, "Designing Cloud Applications for Resiliency" Module 6, "Processing Background Logic using Azure" Module 7, "Storing Tabular Data in Azure" Module 8, "Storing Files and Media in Azure" Module 9, "Storing Data in Queues using Azure" Module 10, "Automating Integration with Azure Resources" Module 11, "Implementing Security in Web Applications using Azure" Module 12, "Deploying Web Applications to Azure"

Course Materials

The following materials are included with your kit:

MCT USE ONLY. STUDENT USE PROHIBITED

About This Course

xix

Course Handbook:

a succinct classroom learning guide that provides the critical technical

information in a crisp, tightly-focused format, which is essential for an effective in-class learning

experience.

Lessons: guide you through the learning objectives and provide the key points that are critical to

the success of the in-class learning experience.

Labs: provide a real-world, hands-on platform for you to apply the knowledge and skills learned

in the module.

Module Reviews and Takeaways: provide on-the-job reference material to boost knowledge and skills retention.

Lab Answer Keys: provide step-by-step lab solution guidance.

Course Companion Content: searchable, easy-to-browse digital content with integrated premium online resources that supplement the Course Handbook. : searchable, easy-to-browse digital content with integrated premium online resources that supplement the Course Handbook.

Modules: include companion content, such as questions and answers, detailed demo steps and additional reading links, for each lesson. Additionally, they include Lab Review questions and answers and Module Reviews and Takeaways sections, which contain the review questions and answers, best practices, common issues and troubleshooting tips with answers, and real-world issues and scenarios with answers.

Resources: include well-categorized additional resources that give you immediate access to the

most current premium content on TechNet, MSDN®, or Microsoft® Press®.

Note: For this version of the Courseware on Prerelease Software, Companion Content is not available. However, the Companion Content will be published when the next (B) version of this course is released, and students who have taken this course will be able to download the Companion Content at that time from the http://www.microsoft.com/learning/companionmoc site. Please check with your instructor when the ‘B’ version of this course is scheduled to release to learn when you can access Companion Content for this course.

Student Course files: includes the Allfiles.exe, a self-extracting executable file that contains all required files for the labs includes the Allfiles.exe, a self-extracting executable file that contains all required files for the labs and demonstrations.

Note: The Student Allfiles for this version of course is available on http://www.microsoft.com/learning/companionmoc/ site

Course evaluation: at the end of the course, you will have the opportunity to complete an online evaluation to provide feedback on the course, training facility, and instructor.

To provide additional comments or feedback on the course, send an email to support@mscourseware.com. To inquire about the Microsoft Certification Program, send an email to mcphelp@microsoft.com.

MCT USE ONLY. STUDENT USE PROHIBITED

xx About This Course

Virtual Machine Environment

This section provides the information for setting up the classroom environment to support the business scenario of the course.

Virtual Machine Configuration

This course is not shipped with virtual machine. Lab steps will be performed directly on Azure. Students will require Azure accounts to be able to complete the Labs.

Course Files

The files associated with the labs in this course are available on http://www.microsoft.com/learning/companionmoc/ site

Classroom Setup

This course requires a classroom with a minimum of one computer for the instructor and one for each student. This course requires that the instructor and student computers have internet access. Students will require Azure accounts to be able to complete the Labs.

Course Hardware Level

To ensure a satisfactory student experience, Microsoft Learning requires a minimum equipment configuration for trainer and student computers in all Microsoft Certified Partner for Learning Solutions (CPLS) classrooms in which Official Microsoft Learning Product courseware is taught.

Hardware Level 6

Processor: 64 bit Intel Virtualization Technology (Intel VT) or AMD Virtualization (AMD-V) processor

(2.8 Ghz dual core or better recommended)

Hard Disk: Dual 120 GB hard disks 7200 RPM SATA or better (striped)

RAM: 4 GB RAM expandable to 8GB or higher

DVD/CD: DVD; dual layer recommended.

Network Adapter

Sound Card with amplified speakers

Monitor: Super VGA monitor (17 inch/43 cm)

In addition, the instructor computer must be connected to a projection display device that supports SVGA

1024 x 768 pixels, 16 bit colors.

MCT USE ONLY. STUDENT USE PROHIBITED

1-1

Module 1

Overview of the Microsoft Azure™ Platform

Contents:

Module Overview

Lesson 1: Azure Services

Lesson 2: Management Portals

Module Review and Takeaways

Module Overview

1-1

1-2

1-5

1-8

Microsoft Azure provides a collection of services that can be used as building blocks for your cloud applications. Lesson 1, “Azure Services”, provides a recap of services you may have worked with when using the Azure platform in the past. Lesson 2, “Management Portals”, describes the two current portals available for managing Azure subscriptions and services. Lesson 3, “Lab Overview”, provides a walkthrough of the lab application that you will be working on throughout the course.

Objectives

After completing this module, you will be able to:

Describe some of the common Azure services

Describe the differences between the current and Ibiza management portals.

MCT USE ONLY. STUDENT USE PROHIBITED

1-2

Overview of the Microsoft Azure™ Platform

Lesson 1

Azure Services

This lesson describes some of the common services and features that are available in Azure and used by many entry-level Azure developers and IT pros.

Lesson Objectives

After completing this lesson, you will be able to:

Describe the following common Azure services

o

Web Sites

o

Virtual Machines

o

Cloud Services

o

Storage

o

SQL Databases

o

Virtual Networks

Services Overview

Web Sites

o Cloud Services o Storage o SQL Databases o Virtual Networks Services Overview Web Sites
o Cloud Services o Storage o SQL Databases o Virtual Networks Services Overview Web Sites

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

1-3

Virtual Machines

Cloud Services

Storage

MCT USE ONLY. STUDENT USE PROHIBITED Developing Microsoft Azure™ Solutions 1-3 Virtual Machines Cloud Services Storage
MCT USE ONLY. STUDENT USE PROHIBITED Developing Microsoft Azure™ Solutions 1-3 Virtual Machines Cloud Services Storage
MCT USE ONLY. STUDENT USE PROHIBITED Developing Microsoft Azure™ Solutions 1-3 Virtual Machines Cloud Services Storage

MCT USE ONLY. STUDENT USE PROHIBITED

1-4

Overview of the Microsoft Azure™ Platform

SQL Databases

Virtual Networks

App Services

ONLY. STUDENT USE PROHIBITED 1-4 Overview of the Microsoft Azure™ Platform SQL Databases Virtual Networks App
ONLY. STUDENT USE PROHIBITED 1-4 Overview of the Microsoft Azure™ Platform SQL Databases Virtual Networks App
ONLY. STUDENT USE PROHIBITED 1-4 Overview of the Microsoft Azure™ Platform SQL Databases Virtual Networks App

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

1-5

Lesson 2

Management Portals

As the Azure platform has grown, there have been many iterations of the services available and web applications used to manage the services.

This lesson will describe the three latest iterations of the Management Portal used for configuring

instances of Azure services. This lesson will also provide a walkthrough of how to switch between the two

Azure Management Portals when you require functionality that is not available in the Preview Portal.

Lesson Objectives

After completing this lesson, you will be able to:

Describe the current Azure Management Portal.

Describe the Azure Preview Portal (Ibiza).

Switch between the different portals.

History of Azure Management Portals

Azure Management Portal

Portal (Ibiza). • Switch between the different portals. History of Azure Management Portals Azure Management Portal
Portal (Ibiza). • Switch between the different portals. History of Azure Management Portals Azure Management Portal

MCT USE ONLY. STUDENT USE PROHIBITED

1-6

Overview of the Microsoft Azure™ Platform

Azure Preview Portal (Ibiza)

the Microsoft Azure™ Platform Azure Preview Portal (Ibiza) Demonstration: Using the Azure Preview Portal For this

Demonstration: Using the Azure Preview Portal

For this demo, you will use the available host machine. Before you begin this lab, you must complete the following steps:

1. Verify that you received credentials to log into the Azure portal from you training provider, these credentials and the Azure account will be used throughout the labs of this course.

Demonstration Steps

1. Open the Azure Preview Portal (https://portal.azure.com).

2. View the Customization mode for the Startboard.

3. Close the Customization mode for the Startboard.

4. Open the New panel and click the Everything link.

5. In the Gallery blade, select the Virtual Machines group, and the Create option for Ubuntu Server to begin a new Journey.

6. In the Create VM (Ubuntu Server) journey, view the journey part for creating an associated Virtual Network.

7. Close the Create VM blade to view the warning dialog for losing changes in a journey or part.

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

1-7

Portal URLs

Developing Microsoft Azure™ Solutions 1-7 Portal URLs Demonstration: Switching Between the Portals For this demo,

Demonstration: Switching Between the Portals

For this demo, you will use the available host machine. Before you begin this lab, you must complete the

following steps:

Verify that you received credentials to log into the Azure portal from you training provider, these

credentials and the Azure account will be used throughout the labs of this course.

Demonstration Steps

1. Open the Azure Management Portal (https://manage.windowsazure.com).

2. Login using your Microsoft Account credentials associated with your Azure account.

3. Create a Web Site instance using the Quick Create options and these details:

o

Url: Pick a unique name for the website

o

Web Hosting Plan: Create new hosting plan

o

Region: Pick the region closest to you

4. Switch to the new Preview Portal.

5. View the details for the Website created in the previous steps.

6. Browse to your new Website.

Note: The placeholder page shows a message indicating that your website has been successfully created. This placeholder page will appear until you upload a web application to your new website.

has been successfully created. This placeholder page will appear until you upload a web application to

MCT USE ONLY. STUDENT USE PROHIBITED

1-8

Overview of the Microsoft Azure™ Platform

Module Review and Takeaways

In this module you have learned about Azure as a platform and its capabilities. You also got to preview the tools and features that we use to manage an Azure subscription.

and features that we use to manage an Azure subscription. Best Practice: Many of the services

Best Practice: Many of the services covered in this module are pre-requisites for the course. If there are any services mentioned that you have never worked with, please take time to review these services before completing the subsequent modules. This will ensure that you are prepared for the later modules in this course.

Review Question(s)

Question: You are building an iOS and Android application. Your application will need a back-end web service and you have decided to host the service in Azure. What services can you use to accomplish this task?

MCT USE ONLY. STUDENT USE PROHIBITED

2-1

Module 2

Establishing a Development Environment using Azure™ Virtual Machines

Contents:

Module Overview

2-1

Lesson 1: Constructing Azure Virtual Machines

2-2

Lesson 2: Azure Virtual Machine Workloads

2-4

Lesson 3: Migrating Azure Virtual Machine Instances

2-5

Lab: Creating an Azure Virtual Machine for Development & Testing

2-7

Module Review and Takeaways

2-11

Module Overview

While many of the Azure services use virtualized machines, sometimes your application has a unique enough need that you would like a Virtual Machine (VM) that is completely unmanaged. As part of its

Infrastructure as a Service (IaaS) offerings, Azure provides networking, backup and virtualization services.

Lesson 1, “Azure Virtual Machines”, introduces the Virtual Machines service and described the options for

creating a virtual machine. Lesson 2, “Azure Virtual Machine Workloads”, details the types of workloads that can be deployed to a Virtual Machine. Lesson 3, “Migrating Azure Virtual Machine Instances”, discusses the options for migrating VMs to and from Azure.

Objectives

After completing this module, you will be able to:

Describe the Virtual Machines service in Azure.

Deploy a Linux or Microsoft workload to a Virtual Machine.

Ingress VHDs to Azure.

Monitor Virtual Machine endpoints.

MCT USE ONLY. STUDENT USE PROHIBITED

2-2

Establishing a Development Environment using Azure™ Virtual Machines

Lesson 1

Constructing Azure Virtual Machines

Virtual Machines in Azure provides quick compute that can be scaled out and completely customized. With a large collection of templates provided in the Management Portal, it is very easy to get started with a popular server OS.

This lesson will describe the Virtual Machine service in Azure and detail some of its unique features.

Lesson Objectives

After completing this lesson, you will be able to:

Describe the Azure Virtual Machines service.

Describe the pre-built and custom image options.

Virtual Machines Overview

• Describe the pre-built and custom image options. Virtual Machines Overview Using Images to Construct Virtual

Using Images to Construct Virtual Machines

• Describe the pre-built and custom image options. Virtual Machines Overview Using Images to Construct Virtual

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

2-3

Capturing a VM Image

VM Depot

Azure™ Solutions 2-3 Capturing a VM Image VM Depot Demonstration: Create a Virtual Machine in Azure
Azure™ Solutions 2-3 Capturing a VM Image VM Depot Demonstration: Create a Virtual Machine in Azure

Demonstration: Create a Virtual Machine in Azure

Demonstration Steps

1. Log into the Azure Preview Portal (https://portal.azure.com).

2. Click Get Started.

3. View the list of Virtual Machines for your subscription.

4. Create a Virtual Machine with the following details:

o

Host Name: vm20532[Your Name Here]

o

User Name: testuser

o

Password: TestPa$$w0rd

o

Pricing Tier: A2 Standard

5. Connect to the newly created Virtual Machine using Remote Desktop.

MCT USE ONLY. STUDENT USE PROHIBITED

2-4

Establishing a Development Environment using Azure™ Virtual Machines

Lesson 2

Azure Virtual Machine Workloads

Your existing application workloads can be deployed to Azure Virtual Machines whether they run on Windows or Linux.

This lesson will describe some of the considerations for deploying application workloads to Virtual Machines in Azure.

Lesson Objectives

After completing this lesson, you will be able to describe the considerations when deploying Windows or Linux workloads to Azure.

Windows Workloads

Linux Workloads

able to describe the considerations when deploying Windows or Linux workloads to Azure. Windows Workloads Linux
able to describe the considerations when deploying Windows or Linux workloads to Azure. Windows Workloads Linux

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

2-5

Lesson 3

Migrating Azure Virtual Machine Instances

Azure provides infrastructure options that makes it easy to either extend your existing data center or

create a new environment in the cloud. With Networking, Backup, Recovery and Virtual Machines; Azure

has the services necessary to deploy your existing complex production applications.

This lesson describes the various methods of migrating your Virtual Machines to Azure.

Lesson Objectives

After completing this lesson, you will be able to:

Migrate VMs to Azure.

Describe the Azure Backup service.

Describe the Hyper-V Recovery Manager service.

Migrating Virtual Machines to Azure

Migrating Linux VMs to Azure

• Describe the Hyper-V Recovery Manager service. Migrating Virtual Machines to Azure Migrating Linux VMs to
• Describe the Hyper-V Recovery Manager service. Migrating Virtual Machines to Azure Migrating Linux VMs to

MCT USE ONLY. STUDENT USE PROHIBITED

2-6

Establishing a Development Environment using Azure™ Virtual Machines

Backup & Recovery Manager

USE PROHIBITED 2-6 Establishing a Development Environment using Azure™ Virtual Machines Backup & Recovery Manager

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

2-7

Lab: Creating an Azure Virtual Machine for Development & Testing

Scenario

Before you begin the process

Objectives

After you complete this lab, you will be able to:

Create an Affinity Group in your Azure subscription

Create a Virtual Network

Create a Storage instance

Create a Virtual Machine

Manage the Virtual Machine drives

Install development software on a Virtual Machine

Estimated Time: 90 minutes

For this demo, you will use the available host machine. Before you begin this lab, you must complete the

following steps:

1. Verify that you received credentials to log into the Azure portal from you training provider, these credentials and the Azure account will be used throughout the labs of this course.

Exercise 1: Create a Logical Network using Azure

Scenario

You need to create a Virtual Network to use for your new Virtual Machine.

The main tasks for this exercise are as follows:

1. Login to the Azure Preview Portal

2. Create a Virtual Network

Task 1: Login to the Azure Preview Portal

1. Log into the Azure Preview Portal (https://portal.azure.com).

2. Click Get Started.

Task 2: Create a Virtual Network

1. View the list of Virtual Networks for your subscription.

2. Use the Azure Management Portal (https://manage.windowsazure.com) to create your Virtual Network.

) to create your Virtual Network . Note: Creating Virtual Networks is not available in the

Note: Creating Virtual Networks is not available in the Preview Portal yet.

3. Create a Virtual Network with the following details:

o

Name: Net20532A

o

Location: Select the region that is closest to your location

o

Address Space: 10.---.---.---

MCT USE ONLY. STUDENT USE PROHIBITED

2-8

Establishing a Development Environment using Azure™ Virtual Machines

o

Maximum VM Count: 4096 [CIDR: /20]

o

DNS Server: None

4. Return to the Azure Preview Portal.

Results: After completing this exercise, you will have a new Virtual Network in Azure.

Exercise 2: Create a Development Virtual Machine using Azure

Scenario

You need a new storage account that you will use when creating your Virtual Machine. The main tasks for this exercise are as follows:

1. Create a Storage Account 2. Create a Virtual Machine

Task 1: Create a Storage Account

1. View the list of Storage instances for your subscription.

2. Create a Storage instance with the following details:

o

Name: stor20532[Your Name Here]

o

Location: Select the region that is closest to your location

3. Pricing Tier (Replication): Locally Redundant (L1 LRS)

Task 2: Create a Virtual Machine

1. View the list of Virtual Machines for your subscription.

2. Create a Virtual Machine with the following details:

o

Host Name: vm20532a[Your Name Here]

o

User Name: testuser

o

Password: TestPa$$w0rd

o

Pricing Tier: A3 Standard

o

Virtual Network: Net20532A

o

Storage Account: stor20532[Your Name Here]

3. Add a second disk to the Virtual Machine with the following settings:

o

Disk File Name: vm20532a-AllFiles.vhd

o

Size (GB): 6

o

Storage Account: stor20532[Your Name Here]

o

Storage Container: vhds

4. Connect to the newly created Virtual Machine using Remote Desktop.

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

2-9

Results: After completing this exercise, you will have a new Virtual Machine stored in a new Storage account.

Exercise 3: Configure the Virtual Machine for Development

Scenario

Now that you have a new Virtual Machine, you have decided to install Visual Studio 2013 Ultimate with Update 3 applied and the Azure SDK for .NET 2.4.

The main tasks for this exercise are as follows:

1. Create an AllFiles drive

2. Install Visual Studio 2013 Ultimate Update 3

3. Install Azure SDK for .NET 2.4

Task 1: Create an AllFiles drive

1. If Server Manager is not already open, open Server Manager.

2. Disable the Internet Explorer Enhanced Security Configuration.

3. Format the new empty drive partition using these settings:

o

Drive Letter: F

o

Volume Label: AllFiles

o

Partition Style: MBR (Master Boot Record)

4. Download the 20532A AllFiles compressed folder from the Companion MOC website (http://www.microsoft.com/learning/companionmoc).

5. Extract the AllFiles content to the F: drive

6. Extract target: Allfiles (F):\

Task 2: Install Visual Studio 2013 Ultimate Update 3

1. Download and run the Visual Studio 2013 Ultimate installation executable.

2. Install the Visual Studio 2013 Ultimate Trial.

3. Reconnect to the Virtual Machine.

4. Launch Visual Studio 2013 Ultimate for the first time.

5. Close Visual Studio 2013 Ultimate.

Task 3: Install Azure SDK for .NET 2.4

1. Download and run the Azure SDK for .NET 2.4 launcher for Web Platform Installer.

2. In Web Platform Installer, install the Windows Azure SDK for .NET (VS 2013) – 2.4 package.

3. Open Visual Studio 2013.

4. Open the Azure node of the Server Explorer pane.

5. Import your Azure subscription.

MCT USE ONLY. STUDENT USE PROHIBITED

2-10

Establishing a Development Environment using Azure™ Virtual Machines

Results: After completing this exercise, your development Virtual Machine will have Visual Studio and the Azure SDK installed.

Exercise 4: Create an Image from the Virtual Machine

Scenario

You now need to create a generalized image from your development Virtual Machine so that you can create new duplicate VMs easily in the future.

The main tasks for this exercise are as follows:

1. Use the System Preperation Tool with the Azure Virtual Machine

2. Capture a Virtual Machine Image

Task 1: Use the System Preperation Tool with the Azure Virtual Machine

1. Open a Command Prompt window as an administrator.

2. Change the directory to %windir%\system32\sysprep.

3. Run the System Preperation Tool (sysprep.exe) and select the following options:

o

System Cleanup Action: Enter System Out-of-Box Experience (OOBE)

o

Generalize: Yes

o

Shutdown Options: Shutdown

o Generalize: Yes o Shutdown Options: Shutdown Note: You will be disconnected from the Virtual Machine

Note: You will be disconnected from the Virtual Machine once SysPrep is completed. The VM will shutdown and this will close your RDP connection.

Task 2: Capture a Virtual Machine Image

1. Log into the Azure Management Portal (https://manage.windowsazure.com).

2. View the list of Virtual Machines for your subscription.

3. Capture an image from your running Virtual Machine using the following options:

o

Image Name: vm20532Template

o

Image Description: Template for 20532 VM

4. I have run Sysprep on the virtual machine: Yes

Results: After completing this exercise, you will have a custom image in Azure that can be used to create new Virtual Machines.

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

2-11

Module Review and Takeaways

In this module, you were introduced to the Infrastructure as a Service (IaaS) offerings in Azure. With Virtual Networks, Virtual Machines, Backup and Recovery, there are a lot of building blocks that can be used when designing a network of VMs or extending an existing data center.

MCT USE ONLY. STUDENT USE PROHIBITED

2-12

Establishing a Development Environment using Azure™ Virtual Machines

MCT USE ONLY. STUDENT USE PROHIBITED

3-1

Module 3

Managing Infrastructure in Azure™

Contents:

Module Overview

Lesson 1: Azure Virtual Networks

Lesson 2: Highly Available Azure Virtual Machines

Lesson 3: Virtual Machine Configuration Management

Lesson 4: Customizing Azure Virtual Machine Networking

Lab: Managing Multiple Virtual Machines in a Virtual Network

Lesson 5: Using Remote Desktop Protocol (RDP) to Connect to a Virtual Machine3-14

Module Review and Takeaways

3-1

3-2

3-3

3-4

3-6

3-8

3-15

Module Overview

Creating Virtual Machines is simply the beginning of the options and functionality you will use with Azure’s infrastructure services. For developer operations (DevOps) tasks, you will need to be able to deploy VMs, manage configurations and networks along with customizing both your infrastructure compute instances and their network connectivity to meet your outbound connection requirements. Lesson 1, “Azure Virtual Networks”, reviews the VNET offering available in Azure. Lesson 2, “Highly Available Azure Virtual Machines”, reviews the options and features that must be considered when designing your Virtual Machine instances for high availability scenarios. Lesson 3, “Virtual Machine Configuration Management”, showcases common methods of reliably managing and duplicating configuration for VMs. Lesson 4, “Customizing Azure Virtual Machine Networking”, reviews the options for managing inbound/outbound connection rules for your VM.

Objectives

After completing this module, you will be able to:

Create a Virtual Network

Describe options for allowing anonymous and private access to a VM and its port

Customize the networking rules for a VM

MCT USE ONLY. STUDENT USE PROHIBITED

3-2

Managing Infrastructure in Azure™

Lesson 1

Azure Virtual Networks

Virtual Networks in Azure provides a method of logically grouping related service instances such as Cloud Services and Virtual Machines. These services can then communicate privately without the need to create an anonymous, publically accessible endpoint.

This lesson will describe the Virtual Network offering in Azure.

Lesson Objectives

After completing this lesson, you will be able to:

Describe the Virtual Network service

Add a service instance to a Virtual Network

Customizing Virtual Network Configuration using XML

instance to a Virtual Network Customizing Virtual Network Configuration using XML Deploying Services to a Virtual

Deploying Services to a Virtual Network

instance to a Virtual Network Customizing Virtual Network Configuration using XML Deploying Services to a Virtual

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

3-3

Lesson 2

Highly Available Azure Virtual Machines

Horizontal or vertical scaling can be used with Virtual Machines and load balancing for a High Availability

scenario. Availability Sets also affect the availability of your VMs during faults or upgrades.

This lesson will describe the considerations for designing your Virtual Machine collections for high availability scenarios.

Lesson Objectives

After completing this lesson, you will be able to:

Scale Virtual Machine instances horizontally or vertically.

Describe how fault and upgrade domains affect VM availability.

Scaling Virtual Machines

Availability Sets

vertically. • Describe how fault and upgrade domains affect VM availability. Scaling Virtual Machines Availability Sets
vertically. • Describe how fault and upgrade domains affect VM availability. Scaling Virtual Machines Availability Sets

MCT USE ONLY. STUDENT USE PROHIBITED

3-4

Managing Infrastructure in Azure™

Lesson 3

Virtual Machine Configuration Management

Although each Virtual Machine can be configured manually, automating the configuration of a VM can lead to repeatable, efficient, and testable deployment scenarios. Automating configuration can also ensure that newly scaled instances of a VM match the other instances.

This lesson will discuss some of the most common methods of configuration management.

Lesson Objectives

After completing this lesson, you will be able to:

Explain how PowerShell Desired State Configuration can be used for Virtual Machine configuration management.

Describe the VM Agent service in Azure Virtual Machines.

Describe the Configuration Management tools.

PowerShell Desired State Configuration

Azure Virtual Machines. • Describe the Configuration Management tools. PowerShell Desired State Configuration VM Agent

VM Agent

Azure Virtual Machines. • Describe the Configuration Management tools. PowerShell Desired State Configuration VM Agent

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

3-5

Configuration Management Tools

MCT USE ONLY. STUDENT USE PROHIBITED Developing Microsoft Azure™ Solutions 3-5 Configuration Management Tools

MCT USE ONLY. STUDENT USE PROHIBITED

3-6

Managing Infrastructure in Azure™

Lesson 4

Customizing Azure Virtual Machine Networking

While Azure Virtual Machines can be useful right away after their creation, additional configuration may need to be performed before interfacing these instances with external resources or other VMs.

This lesson will describe the methods used for customizing the network connectivity of an Azure Virtual Machine.

Lesson Objectives

After completing this lesson, you will be able to:

Use Custom Endpoints to expose public ports for a Virtual Machine.

Customize the Access Control List for a Virtual Machine/Cloud Service.

Modify Windows Firewall in a Virtual Machine.

View the Public VIP for a Virtual Machine.

Custom Endpoints

Access Control List

Firewall in a Virtual Machine. • View the Public VIP for a Virtual Machine. Custom Endpoints
Firewall in a Virtual Machine. • View the Public VIP for a Virtual Machine. Custom Endpoints

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

3-7

Firewall Rules

Public VIP

MCT USE ONLY. STUDENT USE PROHIBITED Developing Microsoft Azure™ Solutions 3-7 Firewall Rules Public VIP
MCT USE ONLY. STUDENT USE PROHIBITED Developing Microsoft Azure™ Solutions 3-7 Firewall Rules Public VIP

MCT USE ONLY. STUDENT USE PROHIBITED

3-8

Managing Infrastructure in Azure™

Lab: Managing Multiple Virtual Machines in a Virtual Network

Scenario

To best replicate your existing production systems, you have decided to create a Virtual Network and host another Virtual Machine in the Virtual Network. This new Virtual Machine will contain a SQL database that you will use for your test application.

Objectives

After you complete this lab, you will be able to:

Create a Virtual Network

Create a Virtual Machine using a custom image

Create a Virtual Machine using a standard image

Add a new Virtual Machine to a Virtual Network

Create an endpoint for a Virtual Machine

Estimated Time: 45 minutes

For this lab, you will use the available host machine. Before you begin this lab, you must complete the following steps:

1. Prior to starting this lab, you must have completed the lab in Module 2.

2. Verify that you received credentials to log into the Azure portal from you training provider, these credentials and the Azure account will be used throughout the labs of this course.

Exercise 1: Create the Database Virtual Machine

Scenario

For your test application, you need a new Virtual Machine with SQL Server 2014 installed. You also need to configure this Virtual Machine so that it can be accessed by other Virtual Machines on the same network.

The main tasks for this exercise are as follows:

1. Login to the Azure Preview Portal

2. Create the SQL Server 2014 Standard Virtual Machine

3. Add a Rule to the Windows Firewall for SQL Server

4. Enable Mixed Mode Authentication for SQL Server

Task 1: Login to the Azure Preview Portal

1. Log into the Azure Preview Portal (https://portal.azure.com).

2. Click Get Started.

Task 2: Create the SQL Server 2014 Standard Virtual Machine

1. Create a SQL Server 2014 Standard Virtual Machine with the following details:

o

Host Name: db20532a[Your Name Here]

o

User Name: testuser

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

3-9

o

Password: TestPa$$w0rd

o

Pricing Tier: A2 Standard

o

Virtual Network: Net20532A

o

Storage Account: stor20532[Your Name Here]

2. Record the Internal IP address of the SQL Server Virtual Machine.

3. Connect to the newly created Virtual Machine using Remote Desktop.

Task 3: Add a Rule to the Windows Firewall for SQL Server

1. Open the Windows Firewall with Advanced Security application.

2. Create a new Inbound Rule with the following details:

o

Rule Type: Port

o

Port Type: TCP

o

Local Ports: 1433

o

Action: Allow the connection

o

Apply for Domain: Yes

o

Apply for Private: Yes

3. Apply for Public: Yes

Task 4: Enable Mixed Mode Authentication for SQL Server

1. Open the SQL Server 2014 Management Studio application.

2. Connect to your local SQL Server instance using the following details:

o

Server type: Database Engine

o

Server name: .

o

Authentication: Windows Authentication

3. Enable SQL Server and Windows Authentication Mode in the SQL Server Settings menu.

4. Restart the SQL Server instance.

5. Add a new Login to the SQL Server instance with the following details:

o

Login name: dbuser

o

Login type: SQL Server authentication

o

Password: TestPa$$word

o

Enforce password policy: No

o

Enforce password expiration: No

o

User must change password at next login: No

o

Server Roles: public, sysadmin

6. Create a new database with the name Contoso.Test.

7. Close the Remote Desktop application.

MCT USE ONLY. STUDENT USE PROHIBITED

3-10

Managing Infrastructure in Azure™

Results: After completing this exercise, your will have a new Virtual Machine with SQL installed that can use Mixed Mode authentication when accessed by an external Virtual Machine.

Exercise 2: Create the Application Virtual Machines

Scenario

You will re-create your development environment by using the image created in Module 2.

The main tasks for this exercise are as follows:

1. Switch to the Azure Management Portal

2. Create the Application Virtual Machine from an Existing Image

Task 1: Switch to the Azure Management Portal

1. Switch back to the Internet Explorer application and the Azure Preview Portal.

2. Open the Azure Management Portal (https://manage.windowsazure.com).

Task 2: Create the Application Virtual Machine from an Existing Image

1. Create a new Virtual Machine with the following details:

o

Image: vm20532Template

o

Host Name: vm20532a[Your Name Here]

o

User Name: testuser

o

Password: TestPa$$w0rd

o

Pricing Tier: A2 Standard

2. Virtual Network: Net20532A

Results: After completing this exercise, you will have a new Virtual Machine created from your development image.

Exercise 3: Connect the Test Application to the SQL Server Virtual Machine

Scenario

You have a test ASP.NET application that can verify whether or not you can access a SQL Server instance. You will debug this application in your development Virtual Machine to verify that you can access your SQL Server instance on the private network.

The main tasks for this exercise are as follows:

1. Login to the Azure Preview Portal

2. Retrieve your SQL Server Virtual Machine’s Internal IP Address

3. Connect to the Application Virtual Machine

4. Repair the Azure SDK for .NET Storage Emulator Installation

5. Debug the Contoso.Events Database Test Web Application

Task 1: Login to the Azure Preview Portal

1. Switch back to the Azure Preview Portal tab in the Internet Explorer window.

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

3-11

Task 2: Retrieve your SQL Server Virtual Machine’s Internal IP Address

1. View the list of Virtual Machine instances for your subscription

2. View the blade for your db20532a[Your Name Here] Virtual Machine.

3. Log the Internal IP Address for your Virtual Machine instance.

Task 3: Connect to the Application Virtual Machine

1. Use Remote Desktop to connect to your vm20532a[Your Name Here] Virtual Machine instance.

Task 4: Repair the Azure SDK for .NET Storage Emulator Installation

Repair the Azure SDK for .NET Storage Emulator Installation Note: When using SysPrep with your original

Note: When using SysPrep with your original application VM, the user that installed the Storage Emulator is removed. When you create a new VM from the template, you create a new user and this user does not have access to some of the files and applications that the old user could access. Because of this, you must repair the Storage Emulator Installation.

1. Download and run the WindowsAzureStorageEmulator.msi installer.

2. During the installation wizard, select the Repair option.

Task 5: Debug the Contoso.Events Database Test Web Application

1. Open the Contoso.Events solution from the following location:

o File location: Allfiles (E):\Mod03\Labfiles\Starter\Contoso.Events

Note: Since this is your first time starting Visual Studio with this sysprep image, you will Since this is your first time starting Visual Studio with this sysprep image, you will have to walk through the setup steps for Visual Studio again. Visual Studio detects that you are a “new user” using the product for the first time.

2.

a “new user” using the product for the first time. 2. Debug the web application and

Debug the web application and provide the SQL Server VM’s Internal IP Address to the IP Address

dialog on the home page to test that you can connect to the VM successfully in your Virtual Network.

Note: Even though you can successfully connect to your VM in the VNET, this does not necessarily

mean that the VM is accessible through the same ports to the outside world.

3. Close Internet Explorer.

Results: After completing this exercise, you will have used the Internal IP address of the Database Virtual

Machine in your Virtual Network to connect to SQL Server 2014.

Exercise 4: Modify the Application Virtual Machine into a Web Server

Scenario

You will now turn your development Virtual Machine into a web server by installing IIS and creating a custom Endpoint.

The main tasks for this exercise are as follows:

1. Install the Web Server Role and ASP.NET Hosting Functionality

MCT USE ONLY. STUDENT USE PROHIBITED

3-12

Managing Infrastructure in Azure™

2. Publish the Web Application to the Local IIS Instance

3. Login to the Azure Preview Portal

4. Create a HTTP Port 80 Endpoint for the Virtual Machine

5. Connect to the Publically Hosted Web Application

Task 1: Install the Web Server Role and ASP.NET Hosting Functionality

1. Open the Server Manager application.

2. Open the Add Roles and Features wizard.

3. Add the following Roles and Role Services:

o

Roles

Web Server (IIS)

o

Role Services

ASP.NET 4.5

4. Install the new Roles and Role Services immediately.

5. Close the Server Manager application.

Task 2: Publish the Web Application to the Local IIS Instance

1. Switch to the Visual Studio application that is still running.

2. Publish the Contoso.Events.Web project using the following details:

o

Profile name: localhost

o

Server: localhost

o

Site name: Default Web Site

o

Destination URL: http://localhost/

3. Verify that the http://localhost/ web application works the same as it did in the previous exercise by using the Internal IP Address for the SQL Server VM.

4. Close the Remote Desktop application.

Task 3: Login to the Azure Preview Portal

5. Switch back to the Azure Preview Portal.

Task 4: Create a HTTP Port 80 Endpoint for the Virtual Machine

1. View the list of Virtual Machine instances for your subscription

2. View the blade for your vm20532a[Your Name Here] Virtual Machine.

3. Add a new Endpoint to the VM with the following details:

o

Endpoint: HTTP

o

Protocol: TCP

o

Public Port: 80

o

Private Port: 80

o

Floating IP: Disabled

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

3-13

USE PROHIBITED Developing Microsoft Azure™ Solutions 3-13 Note: You can observe the Endpoints blade or the

Note: You can observe the Endpoints blade or the Notifications blade to determine when your Endpoint creation task is complete.

Task 5: Connect to the Publically Hosted Web Application

1. View the blade for your vm20532a[Your Name Here] Virtual Machine.

2. In Internet Explorer navigate to the Domain Name of your Virtual Machine instance.

3. Verify that the http://vm20532a[Your Name Here].cloudapp.net/ web application works the same

as it did in the previous exercise by using the Internal IP Address for the SQL Server VM.

4. Close the Internet Explorer application.

Results: After completing this exercise, you will have enabled IIS and the ASP.NET features on your Windows Server 2012 R2 Virtual Machine and created a custom HTTP Endpoint for port 80 to view your web server from any public browser.

Verify the correctness of the statement by placing a mark in the column to the right.

Statement

Answer

You can use SQL Server Management Studio to connect to your SQL Server VM with its current configuration from any machine?

MCT USE ONLY. STUDENT USE PROHIBITED

3-14

Managing Infrastructure in Azure™

Lesson 5

Using Remote Desktop Protocol (RDP) to Connect to a Virtual Machine

In future labs, you will need to use Remote Desktop Protocol (RDP) to connect to your Development Environment.

This lesson demonstrates how to use the RDP protocol to remotely connect to your Azure Virtual Machine so that you can complete future labs in this course.

Lesson Objectives

After completing this lesson, you will be able to:

Use an RDP file to connect to a Virtual Machine.

Use the domain name and custom Remote Desktop endpoint to connect to a Virtual Machine.

Demonstration: Connecting to a Virtual Machine using an Existing Endpoint

For this demo, you will use the available host machine. Before you begin this lab, you must complete the following steps:

Verify that you received credentials to log into the Azure portal from you training provider, these credentials and the Azure account will be used throughout the labs of this course.

Demonstration Steps

1. Log into the Azure Preview Portal (https://portal.azure.com).

2. View the blade for your Virtual Machine created in the previous lab.

o vm20532a[Your Name Here]

3. Record the Domain Name for your Virtual Machine

4. Record the Public Port value of the Remote Desktop standalone endpoint for your Virtual Machine.

5. Use the Remote Desktop Connection application to connect to your VM by manually entering the address in this format:

o [Domain Name]:[Public Port]

6. Close the Remote Desktop Connection application.

7. Return to the Microsoft Azure tab in your Internet Explorer window.

8. Download the RDP file for your Virtual Machine and save the file in any directory.

9. Use File Explorer to Double-click the RDP file you have just downloaded.

10. Close the Remote Desktop Connection application.

11. Return to the Microsoft Azure tab in your Internet Explorer window.

12. Connect to your VM by using the Connect button in the Virtual Machine’s blade.

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

3-15

Module Review and Takeaways

In this module, you observed how Virtual Machines can be connected to a Virtual Network and how the networking options can be customized for each Virtual Machine. Options for scaling and configuration management were also discussed for Virtual Machines in auto-scale and high availability scenarios.

Review Question(s)

Question: You are working with a small organization that does not have any on-site hardware. However, they would like their software developers to be able to VPN to their Azure Virtual Network when testing software features. Should you establish a point-to-site or site-to-site network connection?

MCT USE ONLY. STUDENT USE PROHIBITED

3-16

Managing Infrastructure in Azure™

MCT USE ONLY. STUDENT USE PROHIBITED

4-1

Module 4

Web Infrastructure in the Azure™ Platform

Contents:

Module Overview

Lesson 1: Azure Web Sites

Lesson 2: Hosting Web Applications in Azure

Lesson 3: Configuring an Azure Web Site

Lesson 4: Publishing an Azure Web Site

Lesson 5: Monitoring an Azure Web Site

Lab Overview

Lab: Creating an ASP.NET Web Site Using Azure Web Sites

Module Review and Takeaways

Module Overview

4-1

4-2

4-4

4-6

4-8

4-10

4-12

4-13

4-17

This module provides an overview of the Azure Web Sites service offering. Lesson 1, “Azure Web Sites”, describes the Web Sites service in Azure. Lesson 2, “Hosting Web Applications in Azure“, describes the behavior and lifecycle of an Azure Web Site. Lesson 3, “Configuring an Azure Web Site”, discusses the various configuration options available. Lesson 4, “Publishing an Azure Web Site”, goes into the publish

process. Lesson 5, “Monitoring an Azure Web Site”, lists the available options for metrics, monitoring and

diagnostics.

Objectives

After completing this module, you will be able to:

Create an Azure Web Sites instance.

Publish a simple ASP.NET web application to Azure Web Sites.

Monitor an Azure Web Site.

MCT USE ONLY. STUDENT USE PROHIBITED

4-2

Web Infrastructure in the Azure™ Platform

Lesson 1

Azure Web Sites

In many scenarios, a quick and easy way to deploy web applications to the Cloud is preferred over reengineering web applications as cloud projects. Azure Web Sites provides an offering that allows for rapid iteration and creation of a web application.

This lesson describes the Azure Web Sites service offering.

Lesson Objectives

After completing this lesson, you will be able to:

Describe the Azure Web Sites service

List the different tiers for a Web Site.

What are Web Sites in Azure?

Pre-built Web Site Templates

Web Sites service • List the different tiers for a Web Site. What are Web Sites
Web Sites service • List the different tiers for a Web Site. What are Web Sites

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

4-3

Free, Shared and Standard Web Sites

Advantages of Web Sites

Free, Shared and Standard Web Sites Advantages of Web Sites Demonstration: Create a Web Site using
Free, Shared and Standard Web Sites Advantages of Web Sites Demonstration: Create a Web Site using

Demonstration: Create a Web Site using the Preview Portal

Demonstration Steps

1. Log into the Azure Preview Portal (https://portal.azure.com)

2. Create a new Website + SQL instance (resource group) using a unique name and these details:

o

Resource Group: rg20532a

o

Url: Pick a unique name for the website

o

Database Name: rg20532adb

o

Server Name: Pick a unique name for the logical server

o

Server Admin Login: testuser

o

Password: TestPa$$w0rd

3. View the Blade for the newly created Website.

4. Browse to the new Website.

MCT USE ONLY. STUDENT USE PROHIBITED

4-4

Web Infrastructure in the Azure™ Platform

Lesson 2

Hosting Web Applications in Azure

One of the advantages of deploying a web application in Azure Web Sites is the familiar hosting model. Azure Web Sites make use of IIS and WebDeploy packages to host applications the same way as they are hosted on premise.

This lesson will describe the lifecycle of Azure Web Sites instances and how they are hosted.

Lesson Objectives

After completing this lesson, you will be able to:

Describe the relationship between IIS and Azure Web Sites.

Describe the lifecycle of a Web Site service instance.

Describe the differences between Standard tier Web Site instances and other tiers.

IIS and Azure Web Sites

Web Site Configuration

the differences between Standard tier Web Site instances and other tiers. IIS and Azure Web Sites
the differences between Standard tier Web Site instances and other tiers. IIS and Azure Web Sites

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

4-5

Web Hosting Plans

MCT USE ONLY. STUDENT USE PROHIBITED Developing Microsoft Azure™ Solutions 4-5 Web Hosting Plans

MCT USE ONLY. STUDENT USE PROHIBITED

4-6

Web Infrastructure in the Azure™ Platform

Lesson 3

Configuring an Azure Web Site

Azure Web Sites provide a lot of extra features that can be leveraged to expand your web application’s capabilities. By using the management portal, different Web Site features can be enabled and custom settings for the website can be modified without redeploying the web application.

This lesson lists the different configuration options available for an Azure Web Site.

Lesson Objectives

After completing this lesson, you will be able to:

Describe the Always On feature.

Describe how to use a custom domain with a Web Site.

Describe the Autoscale options for a Web Site.

Always On

Linked Resources

how to use a custom domain with a Web Site. • Describe the Autoscale options for
how to use a custom domain with a Web Site. • Describe the Autoscale options for

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

4-7

Domain Names

Developing Microsoft Azure™ Solutions 4-7 Domain Names Multi-site Hosting in a Standard Web Site Autoscaling a

Multi-site Hosting in a Standard Web Site

Developing Microsoft Azure™ Solutions 4-7 Domain Names Multi-site Hosting in a Standard Web Site Autoscaling a

Autoscaling a Web Site

Developing Microsoft Azure™ Solutions 4-7 Domain Names Multi-site Hosting in a Standard Web Site Autoscaling a

MCT USE ONLY. STUDENT USE PROHIBITED

4-8

Web Infrastructure in the Azure™ Platform

Lesson 4

Publishing an Azure Web Site

After developing a web application, WebDeploy can be leveraged to publish that web application to Azure. The Visual Studio publish wizard also allows for customization to be performed on the configuration settings and connection strings immediately prior to the actual publish action.

This lesson describes the publish process available through the Visual Studio 2013 publish wizard.

Lesson Objectives

After completing this lesson, you will be able to:

Describe how to publish using the Publish Wizard in Visual Studio 2013.

Describe how to transform configuration settings.

Describe the difference between the standard Release and Debug builds.

Right-click Publish using WebDeploy

Web.config Transformations

difference between the standard Release and Debug builds. Right-click Publish using WebDeploy Web.config Transformations
difference between the standard Release and Debug builds. Right-click Publish using WebDeploy Web.config Transformations

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

4-9

Release vs. Debug Builds

MCT USE ONLY. STUDENT USE PROHIBITED Developing Microsoft Azure™ Solutions 4-9 Release vs. Debug Builds

MCT USE ONLY. STUDENT USE PROHIBITED

4-10

Web Infrastructure in the Azure™ Platform

Lesson 5

Monitoring an Azure Web Site

After deploying a web application to a cloud platform, tracing and metrics become more critical than ever. Without the ability to remotely connect to a hosting virtual machine, logs become an important part of the forensic analysis process when there are issues with a web application.

This lesson describes the different options available for monitoring an Azure Web Site.

Lesson Objectives

After completing this lesson, you will be able to:

Describe the metrics available in the Management Portal.

Describe the Remote Debugging feature in Visual Studio 2013.

Discuss the storage options for diagnostics logs.

Web Site Metrics in the Management Portal

Remote Debugging

2013. • Discuss the storage options for diagnostics logs. Web Site Metrics in the Management Portal
2013. • Discuss the storage options for diagnostics logs. Web Site Metrics in the Management Portal

MCT USE ONLY. STUDENT USE PROHIBITED

Developing Microsoft Azure™ Solutions

4-11

Diagnostics

MCT USE ONLY. STUDENT USE PROHIBITED Developing Microsoft Azure™ Solutions 4-11 Diagnostics

MCT USE ONLY. STUDENT USE PROHIBITED

4-12

Web Infrastructure in the Azure™ Platform

Lesson 6

Lab Overview

Before working with the Contoso Events web applications, this lesson will introduce the application from a high-level. You will see the Administration web application and the Public-facing Web front-end for the Contoso Events web application.

Lesson Objectives

After completing this lesson, you will have an understanding of how the Contoso.Events web solution works.

Demonstration: Contoso Events Walkthrough

Demonstration Steps

1. Open the Contoso.Events solution from the following location:

o File location: Allfiles (E):\Mod04\Democode\Contoso.Events

2. Locate the Contoso.Events.Data.Generation project.

3. Debug the Contoso.Events.Data.Generation project to generate the SQL and Azure Storage Tables data.

4. Close Microsoft Visual Studio 2013.

5. Re-launch Microsoft Visual Studio 2013 as an Administrator.

6. Open the Contoso.Events solution:

o File location: Allfiles (E):\Mod04\ Democode\Contoso.Events

7. Start the Contoso.Events solution.

8. Debug the solution with the following startup projects:

o

Contoso.Events.Cloud: Start

o

Contoso.Events.Management: Start without debugging

9. After the Contoso Events (Contoso.Events.Cloud) website is open, use IIS Express to open the Contoso.Events.Administration website.

10. Select any Sales Conference event on the Contoso Events web site and register for that event using the following details:

o

Region: Western

o

AnnualSales: 45000

o

FirstName: Corrine

o

LastName: Horn

11. Locate the same event in the Events List on the Contoso Events Administration web site.

12. Generate a sign-in sheet for the event.

Download t