0% found this document useful (0 votes)
92 views

Lab Dynatrace Microsoft Azure

This document provides instructions for getting familiar with Dynatrace monitoring of Microsoft Azure applications. It outlines prerequisites like setting up an Azure account and Java development environment. It then walks through steps to create a sample web application in Eclipse, deploy it to an Azure web app, and configure Dynatrace monitoring using the environment ID. The goal is to demonstrate monitoring of a Java application running on Azure with Dynatrace.

Uploaded by

Sai Dutt Mekala
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
92 views

Lab Dynatrace Microsoft Azure

This document provides instructions for getting familiar with Dynatrace monitoring of Microsoft Azure applications. It outlines prerequisites like setting up an Azure account and Java development environment. It then walks through steps to create a sample web application in Eclipse, deploy it to an Azure web app, and configure Dynatrace monitoring using the environment ID. The goal is to demonstrate monitoring of a Java application running on Azure with Dynatrace.

Uploaded by

Sai Dutt Mekala
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

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/

4. Azure PaaS Documentation:


a. https://help.dynatrace.com/infrastructure-monitoring/paas/how-do-i-monitor-microsoft-azure-
web-apps/

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

d. On the App service plan tab:


i. Create new: Keep the default, which is the name of the App Service plan.
ii. Location: Select West Europe or a location near you.
iii. Pricing tier: Select the free option. For features, see App Service pricing.

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 .

7. Deploy Web App dialog box


a. In the Deploy Web App dialog box, select Deploy to root. If you have an app service at
wingtiptoys.azurewebsites.net and you do not deploy to the root, the web app named
MyFirstJavaOnAzureWebApp is deployed to
wingtiptoys.azurewebsites.net/MyFirstJavaOnAzureWebApp.
b. The dialog box shows the Azure, JDK, and web container selections.
i. Select Deploy to publish the web app to Azure.
ii. When the publishing finishes, select the Published link in the Azure Activity Logdialog box.

8. Congratulations! You have successfully deployed your web app to Azure.

NOW IS A GOOD TIME TO REFER TO THE DYNATRACE DOCUMENTATION ON IMPLEMENTING AZURE WITH THE
DYNATRACE PAAS AGENT!

5
Microsoft Azure

9. Log onto Dynatrace and obtain environment ID


a. Deploy Dynatrace -> Set up PaaS integration -> Environment ID

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 .

You might also like