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: extensions/po-deploy-azuredb-mysql/README.md
+20-7Lines changed: 20 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -376,7 +376,7 @@ Open a terminal window and use SSH to login to the Linux VM (Bastion Host) which
376
376
377
377
1. Enable ACR admin user.
378
378
379
-
Save the name of the ACR. We will need this value in subsequent steps. See screenshot below.
379
+
Note down the name of the ACR. We will need this value (**'ACR_NAME'**) in subsequent steps. See screenshot below.
380
380
381
381

382
382
@@ -398,7 +398,7 @@ Open a terminal window and use SSH to login to the Linux VM (Bastion Host) which
398
398
#
399
399
```
400
400
401
-
Make a note of the ACR `login server` and admin `password`. We will need to specify these values while creating the ACI instance in the next step.
401
+
Make a note of the ACR `login server` and admin `password`. We will need to specify these values while creating the ACI instance in a later step.
402
402
403
403
3. Deploy the *po-service* microservice within an ACI container.
404
404
@@ -460,10 +460,10 @@ Open a terminal window and use SSH to login to the Linux VM (Bastion Host) which
460
460
461
461
No. | Parameter | Description | Encode Value
462
462
--- | --------- | ----------- | -------------
463
-
1 | jdbc:mysql://host:port/database?useSSL=true&requireSSL=sslRequired | Substitute decoded values of `host`,`port`,`database` and `sslRequired` | No
463
+
1 | jdbc:mysql://host:port/database?useSSL=true&requireSSL=sslRequired | Substitute decoded values of `host`,`port`,`database` and `sslRequired` in the `jdbc` URL | No
464
464
2 | mysql.user=username | Substitute the decoded value of `username` | Yes
465
465
3 | mysql.password=password | Substitute the decoded value of `password` | Yes
466
-
4 | po-service-YourInitial | Substitute your short initial in place of `YourInitial` | No
466
+
4 | po-service-YourInitial | Substitute your short initial in place of `YourInitial` (eg., GR) | No
467
467
5 | ACR_NAME | This is the ACR name, value which you saved in Step [1] | No
468
468
6 | ACR Login Server | ACR login server, value which you saved in Step [2] | No
469
469
7 | ACR Admin Password | ACR Admin password, value which you saved in Step [2] | No
@@ -472,6 +472,8 @@ Open a terminal window and use SSH to login to the Linux VM (Bastion Host) which
472
472
473
473

474
474
475
+
We could have passed in the MySQL database user name and password as a container command-line option (eg., java -Dspring.datasource.username= ...), however this would expose the values to users who have access to the container instance. It's considered a best practice to encode all confidential data as **Secrets** and mount them into the container. Secrets are stored in `tmpfs` filesystem on Linux which is a RAM backed storage and are never stored on a cluster node.
476
+
475
477
Use the command below to deploy *po-service* microservice within an ACI container.
476
478
```
477
479
#
@@ -486,15 +488,26 @@ Open a terminal window and use SSH to login to the Linux VM (Bastion Host) which
486
488
487
489
4. Use the Azure Portal to view the ACI status, logs etc..
488
490
489
-
See screenshots below.
491
+
Access the *Container instances* blade in the Azure Portal. See screenshot below.
490
492
491
493

492
494
495
+
On the **Overview** tab, check the ACI container status. It should display *Running*. Make a note of the container's **FQDN**. The FQDN is the microservice end-point (API end-point).
493
496
494
497

495
498
496
-
Note down the FQDN. Then click on *Containers*
499
+
In the navigational panel on the left, click on **Containers**. Review the *Events*, *Properties*, *Logs* and *Connect* tabs as shown in the screenshot below.
497
500
498
501

499
502
500
-
You have now successfully completed all sections in this project. Congrats!
503
+
5. Access the *po-service* microservice API end-point.
504
+
505
+
Use the FQDN to access the microservice. Remember the microservice running within the ACI container exposes the *Purchase Order* API on port `8080`.
506
+
507
+
URI end-point : http://po-service-<YourInitial>.westus.azurecontainer.io:8080/orders
508
+
509
+
See the screenshot below.
510
+
511
+

512
+
513
+
Congrats! You have now successfully completed all sections in this sub-project. Feel free to go back to the [parent project]() to work on other sub-projects.
0 commit comments