Lab Dynatrace Microsoft Azure
Lab Dynatrace Microsoft Azure
Prepared by
DTU
4/22/2019
Microsoft Azure
Contents
1. Purpose ...................................................................................................................................... 2
2. Pre-Requisites ............................................................................................................................ 2
3. Instructions ................................................................................................................................ 3
1
Microsoft Azure
1. Purpose
The purpose of this exercise is to get you familiar with the Dynatrace OneAgent and its implementation of
Microsoft Azure.
2. Pre-Requisites
1. Microsoft Azure Free Trial Account (Use your Dynatrace account).
a. https://azure.microsoft.com/en-us/free/
i. You will have to put in a credit card (verification purposes only, it will not be charged).
2. Java EE
a. http://www.eclipse.org/
b. https://docs.microsoft.com/en-us/azure/azure-toolkit-for-eclipse-installation
i. The above link/plugin will be required for uploading your project to Azure
3. Dynatrace Web Client, Access Here:
a. https://www.dynatrace.com/
2
Microsoft Azure
3. Instructions
1. Create a dynamic web project in Eclipse
a. In Eclipse, select File > New > Dynamic Web Project.
b. In the New Dynamic Web Project dialog box, name the project MyFirstJavaOnAzureWebApp, and
select Finish.
c.
2. Add a JSP page
a. If Project Explorer is not displayed, restore it.
b.
c. In Project Explorer, expand the MyFirstJavaOnAzureWebApp project. Right-click WebContent, and
then select New > JSP File.
d.
e. In the New JSP File dialog box:
i. Name the file index.jsp.
ii. Select Finish.
3
Microsoft Azure
f. In the index.jsp file, replace the <body></body> element with the following markup:
<body>
<h1><% out.println("Hello Azure!"); %></h1>
</body>
g. Save the changes.
3. Publish the web app to Azure
a. In Project Explorer, right-click the project, and then select Azure > Publish as Azure Web App.
b.
c. In the Azure Sign In dialog box, keep the Interactive option, and then select Sign in.
d. Follow the sign-in instructions.
4. Deploy Web App dialog box
a. After you have signed in to your Azure account, the Deploy Web App dialog box appears.
b. Select Create.
5. Create App Service dialog box
a. The Create App Service dialog box appears with default values. The number 170602185241 shown in
the following image is different in your dialog box.
b.
c. In the Create App Service dialog box:
i. Keep the generated name for the web app. This name must be unique across Azure. The
name is part of the URL address for the web app. For example: if the web app name is
MyJavaWebApp, the URL is myjavawebapp.azurewebsites.net.
ii. Keep the default web container.
iii. Select an Azure subscription.
4
Microsoft Azure
AN APP SERVICE PLAN SPECIFIES THE LOCATION , SIZE, AND FEATURES OF THE WEB SERVER FARM THAT HOSTS YOUR
APP. YOU CAN SAVE MONEY WHEN HOSTING MULTIPLE APPS BY CONFIGURING THE WEB APPS TO SHARE A SINGLE
APP SERVICE PLAN.
APP SERVICE PLANS DEFINE :
A. REGION (FOR EXAMPLE : NORTH EUROPE, EAST US, OR SOUTHEAST ASIA)
B. INSTANCE SIZE (SMALL, MEDIUM , OR LARGE )
C. SCALE COUNT (1 TO 20 INSTANCES)
D. SKU (FREE, SHARED, BASIC, STANDARD, OR PREMIUM )
5. Resource group tab
a. Select the Resource group tab. Keep the default generated value for the resource group.
A RESOURCE GROUP IS A LOGICAL CONTAINER INTO WHICH AZURE RESOURCES LIKE WEB APPS, DATABASES, AND
STORAGE ACCOUNTS ARE DEPLOYED AND MANAGED.
b. Select Create.
6. The Azure Toolkit creates the web app and displays a progress dialog box.
STRICT WIFI?: SOME WIRELESS NETWORKS ARE BEHIND A VPN / FIREWALL AND MICROSOFT AZURE DOES NOT
SUPPORT PUSH TO AZURE ON A VPN / B EHIND A FIREWALL . B E SURE TO BE ON AN OPEN NETWORK .
NOW IS A GOOD TIME TO REFER TO THE DYNATRACE DOCUMENTATION ON IMPLEMENTING AZURE WITH THE
DYNATRACE PAAS AGENT!
5
Microsoft Azure
YOU CAN CONTINUE TO UPLOAD A FULL SAMPLE APPLICATION TO THE AZURE WEB APP USING ECLIPSE IN ORDER TO
SEE THE INTERACTIONS WITH UEM AS WELL AS CONTINUE TO FAMILIARIZE YOURSELF WITH AZURE .