Microsoft Azure Infrastructure as a Service (IaaS) Introduction to Microsoft Azure Virtual Machines – ARM
Enviado por Stiven Cuéllar Mejía • 22 de Diciembre de 2017 • Tutorial • 4.181 Palabras (17 Páginas) • 600 Visitas
WorkshopPLUS
Microsoft Azure Infrastructure as a Service (IaaS)
Introduction to Microsoft Azure Virtual Machines – ARM
Student Lab Manual
V1.8, June 1, 2016
Information in this document is subject to change without notice. The example companies, organizations, products, people, and events depicted herein are fictitious. No association with any real company, organization, product, person 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, trademarked, 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.
© 2010 Microsoft Corporation. All rights reserved.
Microsoft, MS-DOS, MS, Windows, Windows NT, MSDN, Active Directory, BizTalk, SQL Server, SharePoint, Outlook, PowerPoint, FrontPage, Visual Basic, Visual C++, Visual J++, Visual InterDev, Visual SourceSafe, Visual C#, Visual J#, and Visual Studio are either registered trademarks or trademarks of Microsoft Corporation in the U.S.A. and/or other countries.
Other product and company names herein may be the trademarks of their respective owners.
Contents
Introduction to Microsoft Azure Virtual Machines 4
Prerequisites 5
Task 1 – Create a Storage Account and Resource Group 5
Task 2 – Create a Virtual Network 7
Task 3: Creating Virtual Machine for IIS 12
Task 4 – Create an IaaS SQL Server Virtual Machine 17
Task 5: Configuring the IIS Virtual Machines 23
Task 6: Setting Inbound Security rules for the IIS Machine 27
Task 7: Configuring the SQL Server 2012 Instance 29
Installing the AdventureWorks Database 30
Task 8: Deploying the MVC4 Application 32
Task 9: Setting up the IIS machines DNS address 35
Task 10: Verification 37
Appendix A – Troubleshooting Tips 38
Introduction to Microsoft Azure Virtual Machines
In this lab, you will create 2 virtual machines. One of the virtual machines will be an IIS server and the other machine with have SQL Server 2012 installed to serve as the application database. These machines will be connected via a Microsoft Azure virtual network.
You'll learn how to:
- Create an Azure Storage Account
- Configure an IIS Web Server and connect it to a SQL Server running in a virtual machine through a simple virtual network
- Configure a SQL Server virtual machine
- Deploy the sample Web application to the IaaS IIS virtual machine
Prerequisites
The following is required to complete this hands-on lab:
- Microsoft Azure PowerShell
- Install the SQL Server PowerShell extensions on the database VM (link)
- A Microsoft Azure subscription
Task 1 – Create a Storage Account and Resource Group
We will need a storage account in order to have a place to put our virtual machine .vhd blob files. Although while creating a virtual machine, you have the option to create a storage account, we want to first create our storage account manually so that we can create a resource group to hold all the applications resources in. Creating the storage account up front gives us more flexible options.
- Log in to the Azure portal at https://portal.azure.com.
- From within the Azure Portal, click on the +New, Data + Storage and then Storage account.
[pic 1]
- On the Create storage account blade, enter a unique storage account name (unique in all of Azure). Note all the settings that you need to select or change in the screenshot below. Click the Create button to complete the storage account creation.
Name – Unique storage account name Deployment model – pick Resource Manager Account kind – select General purpose Performance – choose Standard Replication – Choose LRS Subscription – pick your subscription Resource Group – create a new resource group or pick an existing one Location – pick your region where you want this storage account created | [pic 2] |
Task 2 – Create a Virtual Network
- Click on the Browse button in the Azure portal and then select Resource Groups.
[pic 3]
- Select the name of the resource group you created in the previous task. This will open up the resource group blade.
- For ease of finding your resource group again later, we will first pin the resource group to the Home page. Click the Pin button at the top of the resource group. Now, the next time you click on the Home menu item (left side of the portal window), you can find your resource group on a tile.
[pic 4]
- Click on the Add button in the resource group blade.
- Type in ‘Virtual Network’ in the Everything window and then find Virtual network and select it.
[pic 5]
- In the virtual network blade, select Resource Manager as the deployment type and then select the create button.
[pic 6]
| [pic 7] |
- When the virtual network has finished the creation process, if you do not see the named virtual network appear in your resource group, refresh your browser. Then, click on the virtual network name and the virtual network blade should open. Click on the All settings link and then then Subnets menu item. NOTE: If the virtual network blade is not shown, click on the new virtual network in your resource group to be able to see it.
[pic 8]
- Now click on the Subnet button on the Subnets blade and enter the name DBSubnet for the new subnet name. This is the subnet we will put the SQL Server machine in. Finally, select the OK button in the Add subnet blade.
[pic 9]
- Close all the blades and go all the way back to the Home screen. From there, you can find the tile for your resource group and click on it. You should see your resource group blade appear with your virtual network and storage account in it.
Task 3: Creating Virtual Machine for IIS
In this task, you will learn how to create a Virtual Machine in Microsoft Azure portal https://portal.azure.com . Then, you will configure the machine for Internet Information Server, adding roles to use later on in this lab.
...