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
Copy file name to clipboardExpand all lines: asset-manager/WORKSHOP.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
# Workshop: migrate this project to Azure
2
2
3
3
> [!IMPORTANT]
4
-
> `GitHub Copilot App Modernization - Java on Azure` is in preview and is subject to change before becoming generally available.
4
+
> `GitHub Copilot app modernization for Java` is in preview and is subject to change before becoming generally available.
5
5
6
-
`GitHub Copilot App Modernization - Java on Azure` (also referred to as GitHub Copilot App Modernization - Java on Azure) assists with app assessment, planning and code remediation. It automates repetitive tasks, boosting developer confidence and speeding up the Azure migration and ongoing optimization.
6
+
GitHub Copilot app modernization for Java (Preview), also referred to as `app modernization for Java`, assists with app assessment, planning and code remediation. It automates repetitive tasks, boosting developer confidence and speeding up the Azure migration and ongoing optimization.
7
7
8
-
In this workshop, you learn how to use `GitHub Copilot App Modernization - Java on Azure` to assess and migrate a sample Java application `asset-manager` to Azure. For more information about the sample application, see [Asset Manager](README.md).
8
+
In this workshop, you learn how to use GitHub Copilot app modernization for Java (Preview) to assess and migrate a sample Java application `asset-manager` to Azure. For more information about the sample application, see [Asset Manager](README.md).
9
9
10
10
## Prerequisites
11
11
@@ -21,9 +21,9 @@ To successfully complete this workshop, you need the following:
21
21
-[Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli): Required if you deploy the migrated application to Azure locally. The latest version is recommended.
22
22
- Fork the [GitHub repository](https://github.com/Azure-Samples/java-migration-copilot-samples) that contains the sample Java application. Clone it to your local machine. Open the `asset-manager` folder in VSCode and checkout the `workshop` branch.
## Install GitHub Copilot app modernization for Java (Preview)
25
25
26
-
In VSCode, open the Extensions view from Activity Bar, search `GitHub Copilot App Modernization - Java on Azure` extension in marketplace. Select the Install button on the extension. After installation completes, you should see a notification in the bottom-right corner of VSCode confirming success.
26
+
In VSCode, open the Extensions view from Activity Bar, search `GitHub Copilot app modernization for Java` extension in marketplace. Select the Install button on the extension. After installation completes, you should see a notification in the bottom-right corner of VSCode confirming success.
27
27
28
28
In VSCode, configure runtime arguments to enable the proposed API:
29
29
```json
@@ -36,14 +36,14 @@ In VSCode, configure runtime arguments to enable the proposed API:
36
36
37
37
## Migrate the Sample Java Application
38
38
39
-
The following sections guide you through the process of migrating the sample Java application `asset-manager` to Azure using GitHub Copilot App Modernization - Java on Azure.
39
+
The following sections guide you through the process of migrating the sample Java application `asset-manager` to Azure using GitHub Copilot app modernization for Java (Preview).
40
40
41
41
### Assess Your Java Application
42
42
43
43
The first step is to assess the sample Java application `asset-manager`. The assessment provides insights into the application's readiness for migration to Azure.
44
44
45
45
1. Open the VS code with all the prerequisites installed on the asset manager by changing the directory to the `asset manager` directory and running `code .` in that directory.
46
-
1. Open the extension `GitHub Copilot App Modernization - Java on Azure`.
46
+
1. Open the extension `GitHub Copilot app modernization for Java`.
47
47
1. The **Assess** button looks a triangle pointing right. Select **Assess**, the Github Copilot chat window will be opened and propose to run Modernization Assessor. Please confirm the tool usage by clicking **Continue**.
@@ -71,7 +71,7 @@ Recall that the sample Java application `asset-manager` uses AWS S3 for image st
71
71
72
72
Now, you migrate the **Worker Service** to use Azure Blob Storage and Azure Service Bus as well, by using custom formulas created from existing commits that migrated the **Web Application**.
73
73
74
-
1. Open the sidebar of `GitHub Copilot App Modernization - Java on Azure`. Hover the mouse over the **Formulas** section. Select **Create formula from source control**. This icon looks like two circles with arrows pointing to the other circle.
74
+
1. Open the sidebar of `GitHub Copilot app modernization for Java`. Hover the mouse over the **Formulas** section. Select **Create formula from source control**. This icon looks like two circles with arrows pointing to the other circle.
75
75

76
76
1. Type **migrate web** to search for the commits that migrated the **Web Application**, and you should see two commits listed:
77
77
* migrate web rabbitmq to azure service bus
@@ -80,12 +80,12 @@ Now, you migrate the **Worker Service** to use Azure Blob Storage and Azure Serv
80
80
1. You will create two custom formulas based on the two commits. First, create the formula for migrating rabbitmq. Select the commit of **migrate web rabbitmq to azure service bus**, click OK.
81
81
1. Click **Create New** to create a new custom formula.
82
82
1. Default formula name will be generated. Give it a new name: "custom formula migrate rabbitmq". Press `Enter` to confirm. Then, formula description, and search patterns will be generated in order. Press `Enter` repeatedly to confirm.
83
-
1. Now, the custom formula for migrating rabbitmq is generated and shows in the section of formulas in of `GitHub Copilot App Modernization - Java on Azure` blade.
83
+
1. Now, the custom formula for migrating rabbitmq is generated and shows in the section of formulas in of `GitHub Copilot app modernization for Java` blade.
84
84

85
85
1. Create another custom formula for migrating S3. Follow the same steps you just did, select the commit **migrate web s3 to azure blob storage** to create a new custom formula with name: "custom formula migrate s3".
86
86
1. Now, the two custom formulas are ready.
87
87

88
-
1. Select and run the two custom formulas one by one you created in the formulas section of `GitHub Copilot App Modernization - Java on Azure`, one at a time.
88
+
1. Select and run the two custom formulas one by one you created in the formulas section of `GitHub Copilot app modernization for Java`, one at a time.
89
89

90
90
1. Follow the same steps as the predefined formula to review and apply the changes, and run the Java Application Build-Fix tool to apply build fixes.
91
91
1. Review the proposed code changes and click **Keep** to apply them.
@@ -154,4 +154,4 @@ Linux:
154
154
scripts/cleanup-azure-resources.sh -ResourceGroupName <your resource group name>
155
155
```
156
156
157
-
If you deploy the app using GitHub Codespaces, delete the Codespaces environment by navigating to your forked repository in GitHub and selecting **Code** > **Codespaces** > **Delete**.
157
+
If you deploy the app using GitHub Codespaces, delete the Codespaces environment by navigating to your forked repository in GitHub and selecting **Code** > **Codespaces** > **Delete**.
0 commit comments