Skip to content

Commit e468fdd

Browse files
committed
update
1 parent 75325ce commit e468fdd

File tree

6 files changed

+14
-4
lines changed

6 files changed

+14
-4
lines changed

asset-manager/WORKSHOP.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,24 @@ The first step is to assess the sample Java application `asset-manager`. The ass
7272

7373
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.
7474

75-
Now, you migrate the **Worker Service** to use Azure Blob Storage and Azure Service Bus as well, by using custom formula created from existing commits that migrated the **Web Application**.
75+
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**.
7676

7777
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. Type **migrate web** to search for the commits that migrated the **Web Application**, and you should see two commits listed:
7878
* migrate web rabbitmq to azure service bus
7979
* migrate web s3 to azure blob storage
80-
1. Select these two commits. Click **Create New** to create a new custom formula.
81-
1. Formula name, formula description, and code location patterns will be generated in order. Press `Enter` repeatedly to confirm.
82-
1. Select and run the custom formula you created in the FORMULAS section of the sidebar of `GitHub Copilot App Modernization - Java on Azure`. 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.
80+
![Create Formula From Source Control](doc-media/create-formula-from-source-control.png)
81+
![Migration Commits](doc-media/migration-commits.png)
82+
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.
83+
1. Click **Create New** to create a new custom formula.
84+
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.
85+
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.
86+
![Custom Formula of Migrating Rabbitmq](doc-media/custom-formula-rabbitmq.png)
87+
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".
88+
1. Now, the two custom formulas are ready.
89+
![Custom Formulas](doc-media/custom-formulas.png)
90+
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.
91+
![Run Formula](doc-media/run-formula.png)
92+
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.
8393
1. Review the proposed code changes and click **Keep** to apply them.
8494

8595
## Deploy to Azure
42.4 KB
Loading
32.8 KB
Loading
35.2 KB
Loading
16.2 KB
Loading
47.8 KB
Loading

0 commit comments

Comments
 (0)