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: articles/aks/howto-deploy-java-liberty-app.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ This article uses the Azure Marketplace offer for Open/WebSphere Liberty to acce
35
35
* Install a Java SE implementation (for example, [Eclipse Open J9](https://www.eclipse.org/openj9/)).
36
36
* Install [Maven](https://maven.apache.org/download.cgi) 3.5.0 or higher.
37
37
* Install [Docker](https://docs.docker.com/get-docker/) for your OS.
38
-
* Make sure you have been assigned either `Owner` role or `Contributor` and `User Access Administrator` roles in the subscription. You can verify it by following steps in [List role assignments for a user or group](../role-based-access-control/role-assignments-list-portal.md#list-role-assignments-for-a-user-or-group)
38
+
* Make sure you have been assigned either `Owner` role or `Contributor` and `User Access Administrator` roles in the subscription. You can verify it by following steps in [List role assignments for a user or group](../role-based-access-control/role-assignments-list-portal.md#list-role-assignments-for-a-user-or-group)
39
39
40
40
## Create a Liberty on AKS deployment using the portal
41
41
@@ -57,7 +57,10 @@ The steps in this section guide you to create a Liberty runtime on AKS. After co
57
57
58
58
## Capture selected information from the deployment
If you navigated away from the **Deployment is in progress** page, the following steps will show you how to get back to that page. If you're still on the page that shows **Your deployment is complete**, you can skip to the third step.
61
+
62
+
1. In the upper left of any portal page, select the hamburger menu and select **Resource groups**.
63
+
1. In the box with the text **Filter for any field**, enter the first few characters of the resource group you created previously. If you followed the recommended convention, enter your initials, then select the appropriate resource group.
61
64
1. In the list of resources in the resource group, select the resource with **Type** of **Container registry**.
62
65
1. In the navigation pane, under **Settings** select **Access keys**.
63
66
1. Save aside the values for **Login server**, **Registry name**, **Username**, and **password**. You may use the copy icon at the right of each field to copy the value of that field to the system clipboard.
@@ -72,6 +75,8 @@ The steps in this section guide you to create a Liberty runtime on AKS. After co
72
75
73
76
These values will be used later in this article. Note that several other useful commands are listed in the outputs.
74
77
78
+
## Create an Azure SQL Database
79
+
75
80
The steps in this section guide you through creating an Azure SQL Database single database for use with your app.
76
81
77
82
1. Create a single database in Azure SQL Database by following the steps in: [Quickstart: Create an Azure SQL Database single database](/azure/azure-sql/database/single-database-create-quickstart), carefully noting the differences in the box below. Return to this document after creating and configuring the database server.
@@ -141,7 +146,7 @@ After the offer is successfully deployed, an AKS cluster will be generated autom
141
146
142
147
Now that you've gathered the necessary properties, you can build the application. The POM file for the project reads many properties from the environment.
143
148
144
-
### RR: We are doing quite a bit of file and parameter manipulation in the Maven build, which is fine but not explained anywhere and not necessarily appropriate for a legacy project. We need to explain what we are doing either here or in the Maven POM as comments (and make a reference here).
149
+
Now that you've gathered the necessary properties, you can build the application. The POM file for the project reads many properties from the environment. The reason for this parameterization is to avoid having to hard-code values such as database server names, passwords, and other identifiers into the example source code. This allows the sample source code to be easier to use in a wider variety of contexts.
145
150
146
151
```bash
147
152
cd<path-to-your-repo>/java-app
@@ -225,15 +230,16 @@ The steps in this section deploy and test the application.
@@ -268,7 +274,8 @@ The steps in this section deploy and test the application.
268
274
To avoid Azure charges, you should clean up unnecessary resources. When the cluster is no longer needed, use the [az group delete](/cli/azure/group#az-group-delete) command to remove the resource group, container service, container registry, and all related resources.
269
275
270
276
```azurecli-interactive
271
-
az group delete --name <RESOURCE_GROUP_NAME> --yes --no-wait
277
+
az group delete --name $RESOURCE_GROUP_NAME --yes --no-wait
278
+
az group delete --name <db-resource-group> --yes --no-wait
0 commit comments