You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#customer intent: As a developer, I want to assess my Java application so that I can understand its readiness for migration to Azure.
10
11
---
11
12
12
13
# Azure Migrate application and code assessment for Java
13
14
14
15
This guide describes how to use the Azure Migrate application and code assessment tool for Java to assess and replatform any type of Java application. The tool enables you to evaluate application readiness for replatforming and migration to Azure.
15
16
16
-
`appcat` is a command-line tool from Azure Migrate to assess Java application binaries and source code to identify replatforming and migration opportunities for Azure. It helps you modernize and replatform large-scale Java applications by identifying common use cases and code patterns and proposing recommended changes.
17
+
The `appcat`command line interface (CLI) is a command-line tool to assess Java application binaries and source code to identify replatforming and migration opportunities for Azure. It helps you modernize and replatform large-scale Java applications by identifying common use cases and code patterns and proposing recommended changes.
17
18
18
-
`appcat`discovers application technology usage through static code analysis, supports effort estimation, and accelerates code replatforming, helping you move Java applications to Azure. With a set of engines and rules, it can discover and assess different technologies such as Java 11, Java 17, Jakarta EE 10, Quarkus, Spring, and so on. It then helps you replatform the Java application to different Azure targets (Azure App Service, Azure Kubernetes Service, Azure Container Apps, and Azure Spring Apps) with specific Azure replatforming rules.
19
+
The tool discovers application technology usage through static code analysis, provides effort estimation, and accelerates code replatforming, helping you to prioritize and move Java applications to Azure. With a set of engines and rules, it can discover and assess different technologies such as Java 11, Java 17, Jakarta EE, Spring, Hibernate, Java Message Service (JMS), and more. It then helps you replatform the Java application to different Azure targets (Azure App Service, Azure Kubernetes Service, Azure Container Apps, and Azure Spring Apps) with specific Azure replatforming rules.
19
20
20
-
`appcat` is open source and is based on [WindUp](https://github.com/windup), a project created by Red Hat and published under the [Eclipse Public License](https://github.com/windup/windup/blob/master/LICENSE).
21
+
This tool is open source and is based on [WindUp](https://github.com/windup), a project created by Red Hat and published under the [Eclipse Public License](https://github.com/windup/windup/blob/master/LICENSE).
21
22
22
23
## When should I use Azure Migrate application and code assessment?
23
24
24
-
`appcat` is designed to help organizations modernize their Java applications in a way that reduces costs and enables faster innovation. The tool uses advanced analysis techniques to understand the structure and dependencies of any Java application, and provides guidance on how to refactor and migrate the applications to Azure.
25
+
The tool is designed to help organizations modernize their Java applications in a way that reduces costs and enables faster innovation. The tool uses advanced analysis techniques to understand the structure and dependencies of any Java application, and provides guidance on how to refactor and migrate the applications to Azure.
25
26
26
-
With `appcat`, you can do the following tasks:
27
+
With it, you can perform the following tasks:
27
28
28
29
* Discover technology usage: Quickly see which technologies an application uses. Discovery is useful if you have legacy applications with not much documentation and want to know which technologies they use.
29
-
* Assess the code to a specific target: Assess an application for a specific Azure target. Check the effort and the modifications you have to do in order to replatform your applications to Azure.
30
+
* Assess the code to a specific target: Assess an application for a specific Azure target. Check the effort and the modifications you have to do to replatform your applications to Azure.
30
31
31
-
### Supported Azure targets
32
+
### Supported targets
32
33
33
-
The tool contains rules for helping you replatform your applications so you can deploy to and use the following Azure services.
34
+
The tool contains rules for helping you replatform your applications so you can deploy to, and use, different Azure services.
34
35
35
-
You can use the following services as deployment targets:
36
+
The rules used by Azure Migrate application and code assessment are grouped based on a *target*. A target is where or how the application runs, and general needs and expectations. When assessing an application, you can choose multiple targets. The following table describes the available targets:
| Azure App Service | Best practices for deploying an app to Azure App Service. |`azure-appservice`|
41
+
| Azure Spring Apps | Best practices for deploying an app to Azure Spring Apps. |`azure-spring-apps`|
42
+
| Azure Kubernetes Service | Best practices for deploying an app to Azure Kubernetes Service. |`azure-aks`|
43
+
| Azure Container Apps | Best practices for deploying an app to Azure Container Apps. |`azure-container-apps`|
44
+
| Cloud Readiness | General best practices for making an application Cloud (Azure) ready. |`cloud-readiness`|
45
+
| Discovery | Identifies technology usage such as libraries and frameworks. |`discovery`|
46
+
| Linux | General best practices for making an application Linux ready. |`linux`|
47
+
| OpenJDK 11 | General best practices for running a Java 8 application with Java 11. |`openjdk11`|
48
+
| OpenJDK 17 | General best practices for running a Java 11 application with Java 17. |`openjdk17`|
49
+
| OpenJDK 21 | General best practices for running a Java 17 application with Java 21. |`openjdk21`|
47
50
48
-
You can use the following services as resource services:
51
+
When the tool assesses for Cloud Readiness and related Azure services, it can also report useful information for potential usage of different Azure services. The following list shows a few of the services covered:
49
52
50
53
* Azure Databases
51
54
* Azure Service Bus
52
55
* Azure Storage
53
-
* Azure CDN
56
+
* Azure Content Delivery Network
54
57
* Azure Event Hubs
55
58
* Azure Key Vault
59
+
* Azure Front Door
56
60
57
-
## Use Azure Migrate application and code assessment for Java
61
+
## How to use Azure Migrate application and code assessment for Java
58
62
59
-
To use `appcat`, you must download the ZIP file described in the next section, and have a compatible JDK 11+ installation on your computer. `appcat` runs on Windows, Linux, or Mac, both for Intel, Arm, and Apple Silicon hardware. You can use the [Microsoft Build of OpenJDK](/java/openjdk) to run `appcat`.
63
+
To use the `appcat` CLI, you must download the ZIP file described in the next section, and have a compatible JDK 11 or JDK 17 installation on your computer. The `appcat`CLI runs on any Java-compatible environment such as Windows, Linux, or Mac, both for Intel, Arm, and Apple Silicon hardware. We recommend you use the [Microsoft Build of OpenJDK](/java/openjdk).
60
64
61
65
### Download latest release
62
66
@@ -69,7 +73,7 @@ The `appcat` CLI is available for download as a ZIP file from [aka.ms/appcat/azu
69
73
70
74
-[Azure Migrate application and code assessment for Java 6.3.0.7](https://aka.ms/appcat/azure-migrate-appcat-for-java-cli-6.3.0.7-preview.zip)
71
75
72
-
### Run appcat
76
+
### Get started with appcat
73
77
74
78
Unzip the zip file in a folder of your choice. You then get the following directory structure:
*[Rules Development Guide](https://azure.github.io/appcat-docs/rules-development-guide/)
114
117
115
-
## Discover technology usage without an Azure target in mind
118
+
## Discover technology usage and Cloud readiness without an Azure service in mind
116
119
117
-
Discovery of technologies is the first stage of application replatform and modernization. During the *discovery* phase, `appcat` scans the application and its components to gain a comprehensive understanding of its structure, architecture, and dependencies. This information is used to create a detailed inventory of the application and its components (see the [Discovery report](#discovery-report) section), which serves as the basis for further analysis and planning.
120
+
Discovery of technologies and Cloud readiness targets provide great insight into application replatform and modernization to the Cloud. The tool scans the application and its components to gain a comprehensive understanding of its structure, architecture, and dependencies. It also finds potential issues that might be challenging in a Cloud environment. The `discovery` target in particular is used to create a detailed inventory of the application and its components. This inventory serves as the basis for further analysis and planning. For more information, see the [Discovery report](#discovery-report) section.
118
121
119
-
Use the following command to initiate discovery:
122
+
Use the following command to initiate discovery and cloud readiness:
120
123
121
124
```bash
122
125
./appcat \
123
126
--input ./<my-application-source-path or my-application-jar-war-ear-file> \
124
-
--target discovery
127
+
--target discovery cloud-readiness
125
128
```
126
129
127
-
The discovery phase is useful when you don't have a specific Azure target in mind. Otherwise, `appcat` runs discovery implicitly for any Azure target.
130
+
This type of report is useful when you don't have a specific Azure service in mind to deploy your application to.
128
131
129
-
## Assess a Java application for a specific target
132
+
The tool always performs the `discovery` whether or not you include that value in the `--target` parameter.
130
133
131
-
The *assessment* phase is where `appcat` analyzes the application and its components to determine its suitability for replatorming and to identify any potential challenges or limitations. This phase involves analyzing the application code and checking its compliance with the selected Azure target or OpenJDK target.
134
+
## Assess a Java application
135
+
136
+
The *assessment* phase is where the `appcat` CLI analyzes the application and its components to determine its suitability for replatorming and to identify any potential challenges or limitations. This phase involves analyzing the application code and checking its compliance with the selected targets.
137
+
138
+
You can select multiple targets by using a space-delimited list of values with the `--target` argument.
132
139
133
140
To check the available targets, run the following command:
134
141
@@ -152,22 +159,37 @@ Available target technologies:
152
159
openjdk21
153
160
```
154
161
155
-
Then, you can run `appcat` using one of the available Azure targets, as shown in the following example:
162
+
Then, you can run `appcat` using one or a combination of available targets, as shown in the following example:
156
163
157
164
```bash
158
165
./appcat \
159
166
--input ./<my-application-source-path or my-application-jar-war-ear-file> \
160
-
--target azure-appservice
167
+
--target cloud-readiness linux azure-appservice
161
168
```
162
169
163
-
You can run `appcat`using one of the available OpenJDK targets, as shown in the following example:
170
+
You can also run `appcat`with one of the available OpenJDK targets, as shown in the following example:
164
171
165
172
```bash
166
173
./appcat \
167
174
--input ./<my-application-source-path or my-application-jar-war-ear-file> \
168
175
--target openjdk11
169
176
```
170
177
178
+
For OpenJDK (Java) targets, we recommend you choose only one at a time.
179
+
180
+
### Recommendation of targets for Azure assessment
181
+
182
+
Whenever you assess an application for Azure deployment, we recommend you start with the following targets:
183
+
184
+
-`discovery`
185
+
-`cloud-readiness`
186
+
187
+
Also, specify an Azure service for deployment, such as `azure-appservice` or `azure-container-apps`.
188
+
189
+
If you intend to move an application from a Windows environment into a Linux VM or container, we recommend you also add the `linux` target.
190
+
191
+
If you intend to move an application from an older version of the JDK to a newer version, we recommend that you pick the next major version compared to the previous version in use by the application. For example, use `openjdk11` when your application is currently deployed with Java 8.
192
+
171
193
## Get results from appcat
172
194
173
195
The outcome of the discovery and assessment phases is a detailed report that provides a roadmap for the replatforming and modernization of the Java application, including recommendations for the Azure service and replatform approach. The report serves as the foundation for the next stages of the replatforming process. It helps organizations learn about the effort required for such transformation, and make decisions about how to modernize their applications for maximum benefits.
@@ -190,7 +212,7 @@ The dashboard also shows the *story points*. The story points are an abstract me
190
212
191
213
### Discovery report
192
214
193
-
The discovery report is a report generated during the *Discovery Phase*. It shows the list of technologies used by the application in the *Information* category. This report is just informing you about the technology that `appcat` discovered.
215
+
The discovery report is a report generated during the *Discovery Phase*. It shows the list of technologies used by the application in the *Information* category. This report is just informing you about technology usage that `appcat` discovered.
194
216
195
217
:::image type="content" source="media/java/report-discovery.png" alt-text="Screenshot of the appcat discovery report." lightbox="media/java/report-discovery.png":::
196
218
@@ -286,6 +308,16 @@ After executing this rule through `appcat`, rerun the analysis to review the gen
286
308
287
309
The complete guide for Rules Development is available at [azure.github.io/appcat-docs/rules-development-guide](https://azure.github.io/appcat-docs/rules-development-guide/).
288
310
311
+
## Release notes
312
+
313
+
### 6.3.0.8
314
+
315
+
Previously, a set of targets were enabled by default, making it difficult for certain customers to assess large applications with too many incidents related to less critical issues. To reduce noise in reports, users must now specify multiple targets, with the parameter `--target`, when executing `appcat`, giving them the option to select only the targets that matter.
316
+
317
+
### 6.3.0.7
318
+
319
+
GA (Generally Available) release of Azure Migrate application and code assessment.
320
+
289
321
## License
290
322
291
323
Azure Migrate application and code assessment for Java is a free, open source tool at no cost, and licensed under the [same license as the upstream WindUp project](https://github.com/windup/windup/blob/master/LICENSE).
@@ -312,7 +344,7 @@ Q: Where can I get some help when creating custom rules?
312
344
313
345
The best way to get help is to [create an issue on the appcat-rulesets GitHub repository](https://github.com/azure/appcat-rulesets/issues).
0 commit comments