Skip to content

Commit 9d10415

Browse files
authored
pull base content,head:MicrosoftDocs:main,into:wwlpublishsync
2 parents 65541dc + 1c2dc15 commit 9d10415

File tree

101 files changed

+1048
-1108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+1048
-1108
lines changed
Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
### YamlMime:ModuleUnit
2-
uid: learn.azure.build-webapp-java-tomcat.1
2+
uid: learn.azure.build-tomcat-java-appservice.1
33
title: Introduction
44
metadata:
5-
adobe-target: true
6-
prefetch-feature-rollout: true
75
title: Introduction
8-
description: Module introduction
9-
author: yoshioterada
10-
ms.author: yoterada
11-
ms.date: 05/03/2023
6+
description: Introduces a training module that shows you how to deploy Java-based web apps.
7+
ms.date: 02/20/2025
8+
author: KarlErickson
9+
ms.author: ayangupta
1210
ms.topic: unit
13-
ms.custom: team=cloud_advocates, devx-track-extended-java, linux-related-content
14-
ms.contributors: yoterada-12142020
11+
ms.custom: team=cloud_advocates, devx-track-extended-java, devx-track-java, linux-related-content
1512
durationInMinutes: 2
1613
content: |
1714
[!include[](includes/1-introduction.md)]
18-
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.build-tomcat-java-appservice.2
3+
title: Introduction to Azure App Service
4+
metadata:
5+
title: Introduction to Azure App Service
6+
description: Describes Azure App Service.
7+
ms.date: 02/20/2025
8+
author: KarlErickson
9+
ms.author: ayangupta
10+
ms.topic: unit
11+
ms.custom: team=cloud_advocates, devx-track-extended-java, devx-track-java, linux-related-content
12+
durationInMinutes: 2
13+
content: |
14+
[!include[](includes/2-azure-app-service-explanation.md)]

learn-pr/advocates/create-java-webapp-to-app-service-linux/2-javaserver-faces-explanation.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

learn-pr/advocates/create-java-webapp-to-app-service-linux/3-exercise-create-javaserver-faces-app.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.build-tomcat-java-appservice.3
3+
title: Exercise - Create a simple Tomcat Java web app
4+
metadata:
5+
title: Exercise - Create a Simple Tomcat Java Web App
6+
description: Shows you how to create a simple Java web app and deploy it locally.
7+
ms.date: 02/20/2025
8+
author: KarlErickson
9+
ms.author: ayangupta
10+
ms.topic: unit
11+
ms.custom: team=cloud_advocates, devx-track-extended-java, devx-track-java, linux-related-content
12+
durationInMinutes: 10
13+
content: |
14+
[!include[](includes/3-exercise-create-simple-java-app.md)]
Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
### YamlMime:ModuleUnit
2-
uid: learn.azure.build-webapp-java-tomcat.4
3-
title: Exercise - Deploy a Java web app to Azure App Service
2+
uid: learn.azure.build-tomcat-java-appservice.4
3+
title: Exercise - Deploy a web app to Azure App Service
44
metadata:
5-
adobe-target: true
6-
prefetch-feature-rollout: true
7-
title: Exercise - Deploy a Java web app to Azure App Service
8-
description: Package your Java web application and deploy it to Azure App Service.
9-
author: yoshioterada
10-
ms.author: yoterada
11-
ms.date: 05/03/2023
5+
title: Exercise - Deploy a Web App to Azure App Service
6+
description: Shows you how to deploy a simple Tomcat Java web app to Azure App Service.
7+
ms.date: 02/20/2025
8+
author: KarlErickson
9+
ms.author: ayangupta
1210
ms.topic: unit
13-
ms.custom: team=cloud_advocates, devx-track-extended-java, linux-related-content
14-
ms.contributors: yoterada-12142020
15-
durationInMinutes: 6
11+
ms.custom: team=cloud_advocates, devx-track-extended-java, devx-track-java, linux-related-content
12+
durationInMinutes: 7
1613
content: |
1714
[!include[](includes/4-exercise-deploy-to-app-service.md)]
18-
Lines changed: 44 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,62 @@
11
### YamlMime:ModuleUnit
2-
uid: learn.azure.build-webapp-java-tomcat.5
2+
uid: learn.azure.build-tomcat-java-appservice.5
33
title: Knowledge check
44
metadata:
5-
adobe-target: true
6-
prefetch-feature-rollout: true
7-
title: Knowledge check
8-
description: Knowledge check
9-
author: yoshioterada
10-
ms.author: yoterada
11-
ms.date: 05/03/2023
5+
title: Knowledge Check
6+
description: Check your knowledge of creating and deploying Java web apps to Azure App Service.
7+
ms.date: 02/20/2025
8+
author: KarlErickson
9+
ms.author: ayangupta
1210
ms.topic: unit
13-
ms.custom: team=cloud_advocates, devx-track-extended-java, linux-related-content
14-
ms.contributors: yoterada-12142020
15-
durationInMinutes: 2
11+
ms.custom: team=cloud_advocates, devx-track-extended-java, devx-track-java, linux-related-content
12+
durationInMinutes: 5
1613
quiz:
14+
title: Check your knowledge
1715
questions:
18-
- content: Which file format do you use for Facelets?
16+
- content: What's the primary purpose of using Apache Maven in Java web application development?
1917
choices:
20-
- content: "Hypertext Markup Language (HTML)"
18+
- content: To provide a web server for hosting the application.
2119
isCorrect: false
22-
explanation: "HTML is used for creating static web pages."
23-
- content: "Extensible Hypertext Markup Language (XHTML)"
24-
isCorrect: true
25-
explanation: "Because JavaServer Faces 2.0, Facelets has been used as the default view declaration language."
26-
- content: "JavaServer Pages (JSP)"
20+
explanation: Incorrect. Maven is a build automation tool, not a web server.
21+
- content: To design the user interface of the web application.
2722
isCorrect: false
28-
explanation: "In the past, you could write JavaServer Faces (JSF) tags in JSP pages. Facelets is the new view declaration language since JSF 2.0. We recommend that you use the XHTML instead of JSP."
29-
- content: Which methods allow you to access the application logs in Azure App Service?
23+
explanation: Incorrect. Maven focuses on project management and build automation, not UI design.
24+
- content: To manage project dependencies and automate the build process.
25+
isCorrect: true
26+
explanation: Correct! Maven helps manage dependencies and automates the build and deployment processes, streamlining development.
27+
28+
- content: How does deploying a Java web application to Azure App Service benefit developers?
3029
choices:
31-
- content: SSH in Advanced Tools in the Azure portal
30+
- content: It automatically converts Java code to a faster language.
3231
isCorrect: false
33-
explanation: This method is a correct option, but it isn't the only way to access the logs.
34-
- content: Access the log stream in Advanced Tools in the Azure portal
32+
explanation: Incorrect. Azure App Service doesn't convert code. It hosts applications as they are.
33+
- content: It eliminates the need for a build automation tool like Maven.
3534
isCorrect: false
36-
explanation: This method is a correct option, but it isn't the only way to access the logs.
37-
- content: The Azure CLI command-line tool
38-
isCorrect: false
39-
explanation: This method is a correct option, but it isn't the only way to access the logs.
40-
- content: All of the above
35+
explanation: Incorrect. Build automation tools are still needed for compiling and packaging the application before deployment.
36+
- content: It provides a scalable, managed hosting environment without the need to manage infrastructure.
4137
isCorrect: true
42-
explanation: Correct!
43-
38+
explanation: Correct! Azure App Service enables developers to deploy applications easily, handling scaling and infrastructure management.
4439

45-
- content: Which tasks can you do with the Maven Plugin for Azure App Service?
40+
- content: What is the primary role of a servlet in a Java web application?
4641
choices:
47-
- content: Compile the source code
48-
isCorrect: false
49-
explanation: The Maven Compiler Plugin compiles your source code.
50-
- content: Configure your Azure App Service instance
42+
- content: To manage database connections and queries.
5143
isCorrect: false
52-
explanation: This choice is a correct option, but it isn't its only feature.
53-
- content: Deploy to your Azure App Service instance
54-
isCorrect: false
55-
explanation: This choice is a correct option, but it isn't its only feature.
56-
- content: Both configure and deploy to your Azure App Service instance
44+
explanation: Incorrect. Servlets can interact with databases, but their main role is handling web requests and generating dynamic content.
45+
- content: To handle client requests and generate dynamic content on the server side.
5746
isCorrect: true
58-
explanation: Correct!
47+
explanation: Correct! The main role of a servlet is to handle client requests and generate server-side responses.
48+
- content: To define the application's user interface.
49+
isCorrect: false
50+
explanation: Incorrect. Servlets work on the server side and don't manage the user interface, which is handled by client-side components.
5951

52+
- content: Why is Apache Tomcat used in Java web application development?
53+
choices:
54+
- content: It serves as a servlet container that implements Java Servlet and JSP specifications.
55+
isCorrect: true
56+
explanation: Correct! Tomcat provides an environment to run Java servlets and JSPs, which is essential for Java web applications.
57+
- content: It's a front-end framework for designing responsive web interfaces.
58+
isCorrect: false
59+
explanation: Incorrect. Tomcat is a server-side technology and doesn't deal with front-end design.
60+
- content: It's a database system used for storing application data.
61+
isCorrect: false
62+
explanation: Incorrect. Tomcat is a web server and servlet container, not a database system.
Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
### YamlMime:ModuleUnit
2-
uid: learn.azure.build-webapp-java-tomcat.6
2+
uid: learn.azure.build-tomcat-java-appservice.6
33
title: Summary
44
metadata:
5-
adobe-target: true
6-
prefetch-feature-rollout: true
75
title: Summary
8-
description: Summary and cleanup of Azure resources.
9-
author: yoshioterada
10-
ms.author: yoterada
11-
ms.date: 05/03/2023
6+
description: Summarizes the module and provides instructions for the cleanup of Azure resources.
7+
ms.date: 02/20/2025
8+
author: KarlErickson
9+
ms.author: ayangupta
1210
ms.topic: unit
13-
ms.custom: team=cloud_advocates, devx-track-extended-java, linux-related-content
14-
ms.contributors: yoterada-12142020
11+
ms.custom: team=cloud_advocates, devx-track-extended-java, devx-track-java, linux-related-content
1512
durationInMinutes: 2
1613
content: |
1714
[!include[](includes/6-summary.md)]
18-
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1-
Web applications are used for accounting, inventory, and online web portals. Typically, your application accepts input from users, searches data for the input contents, displays a list, and updates it.
1+
Web applications play an essential role in managing tasks like accounting, inventory tracking, and providing online portals for users to access and update information. In these applications, users typically submit inputs, which the system processes to search, display, and update relevant data.
22

3-
In this module, you'll deploy a Java web application to Tomcat on Azure App Service.
4-
5-
:::image type="content" source="../media/primefaces-todo-list.png" alt-text="Screenshot that shows the Java ToDo application sample.":::
3+
In this module, you tackle the challenge of deploying a Java-based web application. You learn how to create and deploy a simple Tomcat web application using Maven. First you run the app on your local machine, and then you deploy to Azure App Service, where it can be accessed remotely. By the end of this module, you'll have the skills to deploy a Tomcat Java web application, equipping you to deploy web apps in the cloud.
64

75
## Learning objectives
86

9-
By the end of this module, you will be able to:
7+
By the end of this module, you'll be able to do the following things:
108

11-
- Create a Java web application.
12-
- Run the application locally.
13-
- Deploy your application to Azure App Service.
9+
- Create a Tomcat web app using Maven.
10+
- Deploy the Tomcat app locally to your machine.
11+
- Deploy the Tomcat app to Azure App Service.
1412

1513
## Prerequisites
1614

17-
- Your own Azure subscription
18-
- The [Azure CLI](/cli/azure/install-azure-cli?WT.mc_id=java-9121-yoterada) installed on your computer
19-
- [JDK 8](https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html)
20-
- [Tomcat 9.0.x](https://tomcat.apache.org/download-90.cgi) installed on your computer
15+
- Your own Azure subscription. [Create one for free.](https://azure.microsoft.com/free/).
16+
- [Azure CLI](/cli/azure/install-azure-cli)
17+
- [JDK 17](https://www.oracle.com/java/technologies/downloads/)
18+
- [Apache Tomcat 10.1.x](https://tomcat.apache.org/download-10.cgi)
19+
- [Maven 3.9.9](https://maven.apache.org/download.cgi?.=)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## What is Azure App Service?
2+
3+
Azure App Service is a fully managed platform for building, deploying, and scaling web apps. It supports multiple programming languages and frameworks and enables developers to focus on coding, while Azure manages the infrastructure and scaling automatically. Azure App Service offers built-in integration with popular development tools, continuous integration, and deployment capabilities, making it easier to create web and mobile applications with minimal setup.
4+
5+
:::image type="content" source="../media/azure-app-service.png" alt-text="Screenshot of the Azure portal that shows the Azure App Service page." lightbox="../media/azure-app-service.png":::
6+
7+
## Key features of Azure App Service
8+
9+
Azure App Service provides the following key features:
10+
11+
- Multiple language support. Azure App Service supports a wide variety of programming languages and frameworks, including ASP.NET, Java, Python, Node.js, PHP, and Ruby. This flexibility enables developers to choose the best tools for their projects.
12+
- Built-in DevOps. Azure App Service offers seamless integration with CI/CD pipelines using GitHub, Bitbucket, Azure DevOps, and other popular services. This integration ensures continuous deployment and automated testing in your app's lifecycle.
13+
- Global scaling. Azure App Service enables developers to scale their applications globally with a few clicks. It offers automatic scaling based on demand, ensuring that your apps can handle traffic spikes without manual intervention.
14+
- Security and compliance. With Azure App Service, TLS/SSL automatically secures applications, providing secure connections. The platform also complies with various industry standards such as ISO, SOC, and PCI DSS, which are crucial for sensitive applications.
15+
16+
In this unit, you learned about Azure App Service. In the next unit, you run a simple Tomcat web app locally.

0 commit comments

Comments
 (0)