Skip to content

Commit 9e07cb5

Browse files
Update howto-deploy-java-liberty-app.md
1 parent 0fcee2d commit 9e07cb5

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

articles/openshift/howto-deploy-java-liberty-app.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ The following steps show you how to find the offer and fill out the **Basics** p
105105

106106
1. The offer must be deployed in an empty resource group. In the **Resource group** field, select **Create new** and fill in a value for the resource group. Because resource groups must be unique within a subscription, pick a unique name. An easy way to have unique names is to use a combination of your initials, today's date, and some identifier. For example, *abc1228rg*.
107107

108+
1. Create an environment variable in your shell for the resource group name.
109+
110+
```bash
111+
export RESOURCE_GROUP_NAME=<your-resource-group-name>
112+
```
113+
108114
1. Under **Instance details**, select the region for the deployment. For a list of Azure regions where OpenShift operates, see [Regions for Red Hat OpenShift 4.x on Azure](https://azure.microsoft.com/explore/global-infrastructure/products-by-region/?products=openshift&regions=all).
109115

110116
1. After selecting the region, select **Next**.
@@ -206,6 +212,12 @@ The following steps guide you through creating an Azure SQL Database single data
206212
>
207213
> :::image type="content" source="media/howto-deploy-java-liberty-app/create-sql-database-networking.png" alt-text="Screenshot of the Azure portal that shows the Networking tab of the Create SQL Database page with the Connectivity method and Firewall rules settings highlighted." lightbox="media/howto-deploy-java-liberty-app/create-sql-database-networking.png":::
208214
215+
1. Create an environment variable in your shell for the resource group name for the database.
216+
217+
```bash
218+
export DB_RESOURCE_GROUP_NAME=<db-resource-group>
219+
```
220+
209221
Now that you created the database and ARO cluster, you can prepare the ARO to host your WebSphere Liberty application.
210222

211223
## Configure and deploy the sample application
@@ -396,8 +408,8 @@ Use the following steps to deploy and test the application:
396408
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, ARO cluster, Azure SQL Database, and all related resources.
397409

398410
```bash
399-
az group delete --name abc1228rg --yes --no-wait
400-
az group delete --name <db-resource-group> --yes --no-wait
411+
az group delete --name $RESOURCE_GROUP_NAME --yes --no-wait
412+
az group delete --name $DB_RESOURCE_GROUP_NAME --yes --no-wait
401413
```
402414

403415
## Next steps

0 commit comments

Comments
 (0)