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/README.md
+65-6Lines changed: 65 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
Sample project for migration tool code remediation that manages assets in cloud storage.
3
3
4
4
## Current Infrastructure
5
-
The project currently uses the following infrastructure:
5
+
The project currently uses the following infrastructure, in [`main`](https://github.com/Azure-Samples/java-migration-copilot-samples/tree/main/asset-manager) branch:
6
6
* AWS S3 for image storage, using password-based authentication (access key/secret key)
7
7
* RabbitMQ for message queuing, using password-based authentication
8
8
* PostgreSQL database for metadata storage, using password-based authentication
@@ -77,7 +77,7 @@ class User user
77
77
Password-based authentication
78
78
79
79
## Migrated Infrastructure
80
-
After migration, the project will use the following Azure services:
80
+
After migration, the project will use the following Azure services, in [`expected`](https://github.com/Azure-Samples/java-migration-copilot-samples/tree/expected/asset-manager) branch:
81
81
* Azure Blob Storage for image storage, using managed identity authentication
82
82
* Azure Service Bus for message queuing, using managed identity authentication
83
83
* Azure Database for PostgreSQL for metadata storage, using managed identity authentication
@@ -153,6 +153,14 @@ Managed identity based authentication
153
153
154
154
## Run Locally
155
155
156
+
Check out the [`main`](https://github.com/Azure-Samples/java-migration-copilot-samples/tree/main/asset-manager) branch to run the current infrastructure locally:
Run the following commands to start the apps locally. This will:
@@ -162,15 +170,66 @@ Run the following commands to start the apps locally. This will:
162
170
Windows:
163
171
164
172
```batch
165
-
cd asset-manager
166
173
scripts\start.cmd
167
174
```
168
175
169
176
Linux:
170
177
171
-
```sh
172
-
cd asset-manager
178
+
```bash
173
179
scripts/start.sh
174
180
```
175
181
176
-
To stop, run `stop.cmd` or `stop.sh` in the `scripts` directory.
182
+
To stop, run `stop.cmd` or `stop.sh` in the `scripts` directory.
183
+
184
+
## Run Migrated Code on Azure
185
+
186
+
Check out the [`expected`](https://github.com/Azure-Samples/java-migration-copilot-samples/tree/expected/asset-manager) branch to run the migrated infrastructure on Azure:
**Prerequisites**: Azure CLI and you have signed in using `az login`
195
+
196
+
Run the following commands to deploy the apps to Azure. This will:
197
+
* Use Azure Blob Storage instead of S3 to store the image
198
+
* Use Azure Service Bus instead of RabbitMQ for message queuing
199
+
* Use Azure Database for PostgreSQL Flexible Server instead of PostgreSQL for metadata storage
200
+
201
+
Windows:
202
+
203
+
```batch
204
+
scripts\deploy-to-azure.cmd -ResourceGroupName <your resource group name> -Location <your resource group location, e.g., eastus2> -Prefix <your unique resource prefix>
205
+
```
206
+
207
+
Linux:
208
+
209
+
```bash
210
+
scripts/deploy-to-azure.sh -ResourceGroupName <your resource group name> -Location <your resource group location, e.g., eastus2> -Prefix <your unique resource prefix>
211
+
```
212
+
213
+
To clean up, run `cleanup-azure-resources.cmd` or `cleanup-azure-resources.sh` in the `scripts` directory.
214
+
215
+
## Java Migration Copilot Workshop
216
+
217
+
Check out the [`workshop`](https://github.com/Azure-Samples/java-migration-copilot-samples/tree/workshop/asset-manager) branch for Java Migration Copilot workshop:
Compared to the `main` branch, the `workshop` branch has additional comments that have already migrated the code for **Web Application** with custom code remediation, including:
226
+
* Azure Blob Storage for image storage, using managed identity authentication
227
+
* Azure Service Bus for message queuing, using managed identity authentication
228
+
229
+
The remaining targets of the workshop are:
230
+
* For both **Web Application** and **Worker Service**, migrate to Azure Database for PostgreSQL Flexible server for metadata storage with managed identity authentication, using predefined prompt.
231
+
* For **Worker Service**, migrate to Azure Blob Storage and Azure Service Bus for image storage and message queuing, respectively, with managed identity authentication, using custom propmt created from existing commits that migrated the **Web Application**.
232
+
233
+
Once the workshop is successfully completed, you should be able to run the migrated code on Azure, similar to [Run Migrated Code on Azure](#run-migrated-code-on-azure) but using the `workshop` branch with the migrated code.
234
+
235
+
For more details, refer to the [workshop guide](https://github.com/Azure-Samples/java-migration-copilot-samples/blob/workshop/asset-manager/WORKSHOP.md).
0 commit comments