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/openshift/howto-deploy-java-liberty-app.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,12 @@ The following steps show you how to find the offer and fill out the **Basics** p
105
105
106
106
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*.
107
107
108
+
1. Create an environment variable in your shell for the resource group name.
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®ions=all).
109
115
110
116
1. After selecting the region, select **Next**.
@@ -206,6 +212,12 @@ The following steps guide you through creating an Azure SQL Database single data
206
212
>
207
213
> :::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":::
208
214
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
+
209
221
Now that you created the database and ARO cluster, you can prepare the ARO to host your WebSphere Liberty application.
210
222
211
223
## Configure and deploy the sample application
@@ -396,8 +408,8 @@ Use the following steps to deploy and test the application:
396
408
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.
397
409
398
410
```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
0 commit comments