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
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
6
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 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).
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. This application consists of two sub-modules, **Web** and **Worker**. For more information about this sample application, see [Asset Manager](README.md).
9
9
10
10
## Prerequisites
11
11
@@ -42,9 +42,9 @@ The following sections guide you through the process of migrating the sample Jav
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
-
1. Open the VS code with all the prerequisites installed on the asset manager by changing the directory to the `assetmanager` directory and running `code .` in that directory.
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
46
1. Open the extension `App Modernization for Java`.
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**.
47
+
1.Hover the mouse over the **Assessment** section and click **Assess** button which looks like a triangle pointing right. Then, the Github Copilot Chat window will be opened and propose to run Modernization Assessor. Please confirm the tool usage by clicking **Continue**.
> **NOTE**: If you are asked to allow the tool access the language models provided by GitHub Copilot Chat, select **Allow** to proceed.
@@ -67,21 +67,21 @@ The first step is to assess the sample Java application `asset-manager`. The ass
67
67
68
68
### Migrate to Azure Blob Storage and Azure Service Bus using Custom Formula
69
69
70
-
Recall that the sample Java application `asset-manager`uses AWS S3 for image storage and Spring AMQP RabbitMQ for message queuing. The `workshop` branch has additional commits that have already migrated the code for**Web Application**with custom code remediation to use Azure Blob Storage and Azure Service Bus, respectively.
70
+
The Application `asset-manager`used AWS S3 for image storage and Spring AMQP with RabbitMQ for message queuing. We have already migrated the code of**Web**module to use Azure Blob Storage and Azure Service Bus. These changes are recorded in two separate commits in the `workshop` branch.
71
71
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**.
72
+
The following steps demonstrate how to generate custom formulas based on those existing commits. Then, you can migrate **Worker**module to use Azure Blob Storage and Azure Service Bus as well, using the created custom formulas.
73
73
74
74
1. Open the sidebar of `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
-
1. Type **migrate web** to search for the commits that migrated the **Web Application**, and you should see two commits listed:
77
-
* migrate web rabbitmq to azure service bus
76
+
1. Type **migrate web** to search for the commits that migrated the **Web** module, and you should see two commits listed:
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.
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
-
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 `App Modernization for Java` blade.
84
-

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 `App Modernization for Java` blade.
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

@@ -96,13 +96,13 @@ At this point, you have successfully migrated the sample Java application `asset
96
96
97
97
For example, an Azure Database for PostgreSQL Flexible Server requires a location that supports the service. Follow the instructions below to find a suitable location.
98
98
99
-
1. Run the following command to list all available locations for your account:
99
+
1. Run the following command to list all available locations for the current subscription.
100
100
101
101
```bash
102
102
az account list-locations -o table
103
103
```
104
104
105
-
1.Try a location from column **Name** in the output. For example, `eastus2` stands for **East US 2**.
105
+
1.Select a location from column **Name** in the output.
106
106
107
107
1. Run the following command to list all available SKUs in the selected location for Azure Database for PostgreSQL Flexible Server:
108
108
@@ -128,7 +128,7 @@ Deploy using local environment by running the deployment script in the terminal:
128
128
1. Run `az login` to sign in to Azure.
129
129
1. Run the following commands to deploy the app to Azure:
130
130
131
-
Winndows:
131
+
Windows:
132
132
```batch
133
133
scripts\deploy-to-azure.cmd -ResourceGroupName <your resource group name> -Location <your resource group location, e.g., eastus2> -Prefix <your unique resource prefix>
134
134
```
@@ -142,9 +142,9 @@ Once the deployment script completes successfully, it outputs the URL of the Web
142
142
143
143
## Clean up
144
144
145
-
When you are done with the workshop, clean up the Azure resources to avoid incurring costs.
145
+
When no longer needed, you can delete all related resources using the following scripts.
146
146
147
-
Winndows:
147
+
Windows:
148
148
```batch
149
149
scripts\cleanup-azure-resources.cmd -ResourceGroupName <your resource group name>
0 commit comments