Azure PPE Lab Guide (Print Out)
Azure PPE Lab Guide (Print Out)
Guide
Contents
Lab 1: Create a Virtual Machine in Microsoft Azure....................................................5
Overview.................................................................................................................... 5
Objectives............................................................................................................... 5
System requirements.............................................................................................. 5
Exercise 1: Create a Virtual Machine using the Management Portal........................5
Task 1 Login....................................................................................................... 5
Task 2 Create a storage account to contain VHDs for the virtual machines.......6
Task 3 Show the QUICK CREATE virtual machine creation option......................7
Task 4 Create a virtual machine with the GALLERY virtual machine creation
option................................................................................................................... 8
Lab 1: Summary.................................................................................................... 11
Lab 2: Connecting Virtual Machines........................................................................11
Overview.................................................................................................................. 11
Objectives............................................................................................................. 11
System requirements............................................................................................ 11
Exercise 1: Create a virtual machine in an existing cloud service.........................11
Task 1 Create an Availability set for High availability......................................11
Exercise 2: Create a virtual machine in an existing cloud service.........................13
Task 1 Create virtual machine using the FROM GALLERY OPTION....................13
Exercise 3: Test network connectivity with Ping....................................................15
Task 1 Enable ICMP on demovm2 to validate connectivity...............................15
Lab 2: Summary.................................................................................................... 17
Lab 3: Configuring the Azure Load Balancer.............................................................17
Overview............................................................................................................... 17
Objectives............................................................................................................. 17
System requirements............................................................................................ 17
Exercise 1: Configure Web Servers........................................................................18
Task 1 Install and Configure IIS........................................................................18
Exercise 2: Configuring the Load Balancer...........................................................20
Task 1- Creating a Load Balanced Set................................................................20
Lab 8: Summary................................................................................................... 72
Lab 9: Websites with a SQL Backend........................................................................72
Overview.................................................................................................................. 72
Objectives............................................................................................................. 72
System requirements............................................................................................ 73
Exercise 1: Configure the Database..........................................................................73
Task 1 Create a SQL Server Virtual Machine....................................................73
Task 2 Create Orchard Database.....................................................................78
Exercise 2: Create a Microsoft Azure Website using Orchard CMS.........................82
Task 1 Create the Orchard Website..................................................................82
Lab 9: Summary................................................................................................... 85
Objectives
This lab will show how to:
Login to the Management Portal
Create a Virtual Machine
System requirements
You must have the following to complete this demo:
A reliable Internet connection
An active Microsoft Azure subscription
2.
3. From there you will be directed to the correct provider to login with your
password.
Task 2 Create a storage account to contain VHDs for the virtual machines.
1. Click on the +NEW link at the bottom-left corner of the screen.
5. Before proceeding wait for the storage account creation to complete. (as
seen below)
Click the NEW button at the bottom left of the management portal.
Review the options on the screen for Windows Server or Linux based
virtual machine in this view but do not actually create the virtual
machine.
a
DNS NAME: Unique host name. This value is also the name of the
cloud service container for the virtual machine. The virtual machine
created here will also be named the same as the cloud service.
Task 4 Create a virtual machine with the GALLERY virtual machine creation
option.
1
Click the NEW button at the bottom left of the management portal.
Highlight the virtual machine gallery option available. Select Windows Server 2012
R2 Datacenter and click the 'next arrow' button at the bottom right.
SIZE: Small
PASSWORD: demo@pass1
On the next screen, specify a unique name for your cloud service. Select
the same Microsoft Azure region that you created the storage account in in
task two. For now, keep availability set as none.
Lab 1: Summary
In this lab you have learned how to provision a Microsoft Azure Storage Account to
act as the underlying storage for Microsoft Azure Virtual Machines. You have also
walked through both the QUICK CREATE and GALLERY creation options of the
Microsoft Azure Management portal and created a virtual machine with Microsoft
Antimalware enabled.
Objectives
This demo will show how to:
Configure Availability Sets
Create a virtual machine in an existing cloud service
Enable ICMP on the virtual machines firewalls and demonstrate name resolution
and ping.
System requirements
You must have the following to complete this demo:
A reliable Internet connection
An active Microsoft Azure subscription
Completed Lab 1 Creating a Virtual Machine
6. Wait for the Availability set to be created before moving to the next exercise.
7. Enter the configuration for the virtual machine and click the next arrow to
continue.
a
SIZE: Small
PASSWORD: demo@pass1
8. Select the previously created cloud service from the CLOUD SERVICE
drop down. Select the same storage account and the availability set
created in the first exercise.
10.Click the Checkmark at the bottom of the screen to complete the virtual
machine creation. This will take some time.
Log into the first virtual machine demovm1 by highlighting the virtual
machine and clicking the CONNECT button.
11.Once prompted login with the credentials specified in the creation wizard.
12.Open a command prompt in demovm1, by pressing <Windows Key + R>
and typing in CMD then <enter>.
13.Type in ping demovm2. You should resolve an IP address, but there will
be no response from the server.
14.Log into the second virtual machine demovm2, by highlighting the virtual
machine and clicking the CONNECT button.
15.Once prompted, login with the credentials that you specified in this lab.
16.Once logged in, using Server Manager, click on Tools, Windows
Firewall with Advanced Security.
Lab 2: Summary
In this lab you learned how to provision a second virtual machine in an existing
cloud service and join it to an existing availability set. From there you learned how
to enable ICMP connectivity (which would apply to any other protocol) to allow
connectivity between the two virtual machines.
Objectives
This demo will show how to:
Configure load balancing between multiple virtual machines.
Testing and troubleshoot the load balancing probe using web logs.
System requirements
You must have the following to complete this demo:
A reliable Internet connection
An active Microsoft Azure subscription
Completed the labs in Module 1.
3. You will see a pop up for the download of RDP file at the bottom of the page,
click on the OPEN button.
4. Enter the credentials for the virtual machine Demovm1 and click ok.
5. Once logged in click the PowerShell Icon on the task bar then execute the
following PowerShell command.
Install-WindowsFeature "Web-Server" -IncludeAllSubFeature
IncludeManagementTools
6. While IIS is installing repeat steps 1-5 on demovm2.
7. Once IIS is installed on the servers navigate to the file iisstart.htm under the
folder c:\inetpub\wwwroot. This folder is automatically created when the
web-server role is installed.
8. Now you have to edit the default iisstart.htm file by right clicking then
select open with notepad.
9. Once notepad is open, add the server name (demovm1) followed by the
<br> tag, as shown in the below screenshot and save it. This change will
allow you to see which server the request is currently being served from.
10.Repeat Steps 7-9 on the demovm2 virtual machine as well. Make sure you
specify demovm2 as the server name in step 9.
5. In the next screen select HTTP under name field drop down menu.
6. Check the check box for CREATE A LOAD-BALANCED SET. Then click on
the right arrow button to continue to next screen.
7. Specify LBHTTP for the LOAD-BALANCED SET NAME, select HTTP in the
PROBE PROTOCOL dropdown and in the PROBE PATH field specify
/iisstart.htm. Click the check mark to continue.
11.In the Add ENDPOINT screen, select the radio button option ADD AN
ENDPOINT TO AN EXISTING LOAD-BALANCED SET. Select as LBHTTP
load balancer. Then click on the arrow mark at the bottom right corner to
continue.
12.Specify HTTP in the NAME field and click the check mark to complete the
endpoint addition.
2. Scroll down and copy the cloud services DNS NAME URL under quick
glance section.
3. Click on new tab in internet explorer and paste the URL in the address bar.
4. This will serve up the modified content from iisstart.htm. Note the server
name (could be demovm1 or demovm2).
5. Now keep pressing the F5 button in your browser until you see the server
name change to the second server in the load balanced set.
Task 2- View Web Logs to See the Load Balancer HTTP Probes
1. Select the demovm2 virtual machine that was created earlier.
2. Click on the connect button at the bottom and when prompted login with the
demouser and demo@pass1 credentials.
4. You can see the requests from the Microsoft Azure Load Balancer by finding
the requests with the user agent Load+Balancer+Agent. Note the
response code is HTTP 200.
7. Wait for the load balancer to detect the file specified in the health probe is
gone (1-2 minutes) then re-open the log file in
C:\inetpub\logs\LogFiles\W3SVC1. You should see HTTP 404s status to the
load balancer probe check.
8. Go back to your browser session and refresh the page multiple times using
the F5 button. You should only see demovm1 is now in the load balanced
set.
10.Wait for 1-2 minutes and refresh the page again (it may take multiple times).
You should see that demovm2 is back in the load balanced set.
Lab 3: Summary
In this lab, you learned how to configure load balanced HTTP endpoints. You will
also have learned how to configure an HTTP Health Probe and to use the IIS Web
Logs to troubleshoot the Microsoft Azure HTTP Load Balancer probe.
Task 1 Save the .RDP file for demovm2 and Validate Connectivity
1. Select the demovm2 virtual machine that was created earlier.
3. Click the arrow by the Save button and click Save as.
4. In the Save as dialog box select desktop in the left pane and click save.
5. Double click on the demovm2.rdp. If you are prompted for credentials this
validates that a connection can occur (do not complete the login).
6. Switch to the Microsoft Azure Management Portal and select the demovm1
virtual machine.
7. Click on the connect button at the bottom and fully login with the demouser and
demo@pass1 credentials.
8. Copy the demovm2.rdp file from your local desktop and paste it in the desktop
of demovm1 over the remote desktop session (CTRL-C local then CTRL-V in
Remote Desktop).
9. From within demovm1 double click on the demovm2.rdp. If you are prompted
for credentials this shows that you have connectivity to demovm2 from
demovm1 (do not complete the login).
1. Open the Virtual Machine dashboard for demovm1 and copy the PUBLIC
VIRTUAL IP (VIP) ADDRESS.
3. Click on ENDPOINTS.
6. Specify the following properties in the Specify ACL details for the Remote
Desktop endpoint screen. The IP address should be the VIP you copied earlier.
a. Rule Order 1
Note: By default, a Permit rule will deny access to all IPs not specified in the
remote subnet and the public IP for the virtual machines (VIP).
7. Press the check mark at the bottom of the screen and wait for the update to
complete before proceeding.
Lab 4: Summary
In this lab, you should have learned how to use access control lists to limit access to
a public endpoint on a Microsoft Azure Virtual Machine.
3. Specify ppe-vnet as the name of the virtual network and select the region
you are working closest to and click the next arrow to continue.
4. Accept the defaults on the DNS Servers and VPN Connectivity page and
click the next arrow to continue.
5. Change the STARTING IP to 10.0.16.0 and CIDR /24. Then press the
checkmark to create the virtual network.
3. Specify the name of the virtual machine and a username and password.
4. Specify a unique name for the CLOUD SERVICE DNS NAME and for the
REGION/AFFINITY GROUP/VIRTUAL NETWORK specify the virtual network
created in the first exercise.
5. Click the next arrow and on the last page click the check mark to create the
virtual machine.
This will take a few minutes to create so proceed to the next task while this is
working.
5. Click the OK button on the dialog indicating the import was successful.
2. Install the Client VPN Package by clicking on the appropriate option in the
quick glance section.
3. When prompted to run or save the package, select Save to save the file to
your C:\PPEContent folder.
4. You will see a warning message because the package is not signed. You can
ignore this message for the purposes of this lab. However, for future client
machines you want to connect to his network, you may want to sign this file
using your organizations signing service or sign it yourself using SignTool.
5. Open Windows Explorer and navigate to %UserProfile%\Downloads.
a. Right-click on the .exe and select Properties -> Unblock.
b. Click OK.
c. Double-click on the .EXE to install the Client VPN Package. When
prompted to install select Yes.
5. (Optional) Go back to the Microsoft Azure Management Portal and you can
see the DASHBOARD updated to show 1 Client connection.
3. Login with the credentials you provided when you created the virtual
machine.
4. Click the Yes button on the Remote Desktop Connection warning dialog.
You are now connect to the Virtual Machine using the VPN Client and its
internal IP Address.
These public endpoints are no longer needed now that you have point-to-site
connectivity to the virtual network this machine is in.
4. Click on the PowerShell endpoint to select it and then click the DELETE
button at the bottom of the screen.
5. Click on the Remote Desktop endpoint to select it and then click the
DELETE button at the bottom of the screen.
Lab 5: Summary
In this lab you learned how to configure point-to-site connectivity for a virtual
network and then use the VPN Client to connect to the Virtual Network. You learned
what is required to authenticate clients to the virtual network. Finally, you observed
that the default public endpoints are not necessary when point-to-site connectivity
is configured for your network.
Objectives
This demo will walk you through how to:
Create a Microsoft Azure Active Directory using the Azure Management Portal
Associate the Active Directory with your Azure subscription
Add Users to the Active Directory
Show Capabilities of the Global Administrator Role
Show Capabilities of the User Role
Now that your Active Directory for your organization exists, the next thing
you need to do is associate this directory with the Windows Azure
subscription. What this means is that when you login to the Azure
Management Portal for this subscription, you will be doing so in the realm
of your new Active Directory.
4. At the bottom of the screen, click the ADD USER link to add a new user.
6. In the user profile window, specify properties for this user as a Global
Administrator.
a. Set FIRST NAME to John.
b. Set LAST NAME to Doe.
c. Set DISPLAY NAME to John Doe (Global Admin).
d. Set ROLE to Global Administrator.
7. In the Get temporary password window, click the green create button to
generate a temporary password for the user.
8. In the New Password field, click the Copy icon to copy the password to
your clipboard. Save this to notepad along with the user name for this
user. You will need this information shortly.
9. Click the check mark button to create the user in the directory.
This user will be able to administer the active directory only. This user will
not be able to login to the Windows Azure Management Portal or provision
services in the Subscription (Virtual Machines, Networks, etc.) because
this user is not a Co-Administrator for the Microsoft Azure Subscription.
This user is a user in the directory right now. This user cannot administer
the Active Directory nor can this user login to the Azure Management
Portal and provision services.
This user, now being a Co-Administrator for the Azure Subscription, will be
able to login to the portal and provision services on the Subscription. This
user is also a Global Administrator so this user can also administer the
Active Directory.
7. Sign-out of the Azure Management Portal.
29.Click through the new user tour dialogs for user John Doe. In the Azure
Management Portal, you will see user John Doe signed-in as an
Organizational User in the upper-right corner of the screen.
From the Internet Explorer main menu, select Tools -> InPrivate
Browsing.
37.As the portal starts to load, you will get a message indicating that there
were no subscriptions found for the Jane Smith user. This is expected.
Recall, Jane Smith is not a Co-Administrator on the Azure Subscription.
Therefore, Jane is not able to sign-in to the Azure Portal and provision
services.
Lab 6: Summary
In this lab, you learned how to create an Azure Active Directory and associate it with
your Azure Subscription. You then learned how to create users as regular users in
the directory as well as global administrators in the directory. Signed in as a global
administrator, you created a security group and added users to the group. Finally,
you observed that users that are not co-administrators on the Azure subscription
are not able to sign-in to the Azure Management Portal.
application. Finally, you will sign-in to the Access Panel as a user of the directory to
see and launch the Microsoft OneDrive application.
Objectives
This demo will show how to:
Add a SaaS application (Microsoft OneDrive) from the Azure Application Gallery to
your Azure Active Directory
Configure the application for Password-based Single Sign-On
Assign permissions for users to access the application
Use the Access Panel to see and launch the application
Prerequisites
1. This hands-on-lab assumes you already completed the Azure AD
Introduction lab.
2. A Microsoft Account.
Task 3 Use the Access Panel to see and launch Microsoft OneDrive
1. At the Internet Explorer main menu, select File -> New session to open a
new browser session.
2. In the new browser session, navigate to http://myapps.microsoft.com.
3. Sign-in as Jane Smith.
a. Username: janesmith@<yourdirectory>.onmicrosoft.com
b. Password: demo@pass1
5. The first time you launch this application for this user (on your computer),
you will be prompted to install software. Click the green Install Now button.
6. After installing the Access Panel extension, restart the browser and navigate
back to the Access Panel http://myapps.microsoft.com.
7. Click on the Microsoft OneDrive application. Since this is the first time you
are accessing Microsoft OneDrive as Jane Smith, you are challenged to enter
your personal credentials to your personal OneDrive. Enter your Microsoft
Account credentials.
In the future, when you launch Microsoft OneDrive from the Access Panel as the
Jane Smith user, you will not be challenged for credentials. Azure AD has
securely stored your credentials and will authenticate you automatically for
your OneDrive account.
Lab 7: Summary
In this lab, you learned how to add the Microsoft OneDrive application to your Azure
Active Directory. You configured the application for Password-based Single Sign-On
and then assigned user access to the application. Finally, you used the Access
Panel to see and launch the application when signed in as a user in the Azure Active
Directory.
Objectives
This lab will show how to:
Create a multi-factor authentication provider using the Azure Management Portal.
Enable multi-factor authentication for users in your Azure Active Directory.
Prerequisites
3. This hands-on-lab assumes you already completed the Application AccessPassword-Based lab.
6. Retrieve the verification code from the text message sent to your phone.
7. Enter the verification code in step 2 and click on the verify button.
9. Click on the I dont use this account with these apps button.
10.To finish signing in to the Access Panel, you will be challenged again to enter
another security code that will be sent to your phone. As soon as you get the
security code, enter it in the sign-in screen. After successfully authenticating,
you will be directed to the Access Panel.
6. Click on Summary.
2. Click on the View link for the report you ran in the previous exercise.
3. You should see the two authentications for user Jane Smith.
4. (optional) Run a detailed report to see the details for each user that are
available.
Lab 8: Summary
In this lab, you learned how to create and configure a multi-factor authentication
provider in Microsoft Azure. You also saw how to enable multi-factor authentication
for users in your Azure Active Directory and you learned how to run a multi-factor
authentication usage report.
Objectives
This demo will show how to:
Create a SQL Server Virtual Machine
Create a Microsoft Azure Website from the Gallery
Establish a connection to the SQL Server using public endpoints.
System requirements
You must have the following to complete this demo:
A reliable Internet connection
An active Microsoft Azure subscription
43.On the next screen, specify a unique name for your cloud service, the data
center location and storage account that you created as part of the
setup. .
44.On the endpoint configuration page select the drop down and select
MSSQL for the endpoint to allow traffic on 1433.
45.Click the Checkmark at the bottom of the screen to complete the virtual
machine creation.
46.Connect to the virtual machine by clicking the CONNECT button on the
toolbar and logging in with the credentials specified during creation.
47.Using Server Manager Enable SQL Server connectivity through the
firewall by using and clicking on in Tools, Windows Firewall with
Advanced Security.
48.
Select the Inbound Rule Node, right click and click New Rule
49.
50.
In the Protocols and Ports dialog, specify 1433 for the local
ports.
51.
Accept the default settings for remaining screens except the last
one. Name the rule SQLServerRule and complete the wizard.
Launch SQL Management Studio by clicking to the far left bottom corner
of the screen to bring up the Windows 8 UI. Type SQL and the search will
automatically find the link to click.
55.Press OK to continue.
56.Right click on the server and choose Restart to have the settings take
effect.
58.Name the new database OrchardDB and press OK to create the database.
59.Next create a new user for the SQL Server by expanding Security and right
clicking on Logins then choose New Login.
62.Enter demouser for the user name and demouser for the login name.
Open the Azure Management Portal and click COMPUTE, WEB SITE,
FROM GALLERY
64.On the left select CMS, Orchard CMS and click the next arrow.
65.Enter a unique name for the website and select the region you are working
in. Then click the checkbox to create the website.
66.Open the dashboard of the newly created site. On the right side of the
page under quick glance copy the SITE URL and open it in a new tab in
your browser.
67.Configure the Orchard Site. Specify a name for the site, demouser for the
user name and the password you have been using up to this point.
Ensure you change the dropdown to Use an existing SQL Server, SQL
Express Database.
.
68.Specify the connection string.
Retrieve the cloud service of your SQL Server by opening the dashboard of
the SQL virtual machine and noting the DNS name.
Lab 9: Summary
In this hands on lab you learned how to configure SQL Server in a Microsoft Azure
Virtual Machine and allow connectivity from a Microsoft Azure Website.