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
+25-5Lines changed: 25 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,9 @@ This article is intended to help you quickly get to deployment. Before going to
33
33
* This article requires at least version 2.31.0 of Azure CLI. If using Azure Cloud Shell, the latest version is already installed.
34
34
35
35
> [!NOTE]
36
-
> This guidance can also be executed from a local developer command line with Azure CLI installed. To learn how to install the Azure CLI, see [How to install the Azure CLI](/cli/azure/install-azure-cli).
36
+
> You can also execute this guidance from the [Azure Cloud Shell](/azure/cloud-shell/quickstart). This approach has all the prerequisite tools pre-installed, with the exception of Docker.
37
+
>
38
+
> [](https://shell.azure.com)
37
39
38
40
* If running the commands in this guide locally (instead of Azure Cloud Shell):
39
41
* Prepare a local machine with Unix-like operating system installed (for example, Ubuntu, Azure Linux, macOS, Windows Subsystem for Linux).
@@ -54,12 +56,30 @@ The following steps guide you to create a Liberty runtime on AKS. After completi
54
56
55
57
1. Create a new 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, `ejb0913-java-liberty-project-rg`.
56
58
1. Select *East US* as **Region**.
59
+
60
+
Create environment variables in your shell for the resource group names for the cluster and the database.
57
61
58
-
1. Select **Next**, enter the **AKS** pane. This pane allows you to select an existing AKS cluster and Azure Container Registry (ACR), instead of causing the deployment to create a new one, if desired. This capability enables you to use the sidecar pattern, as shown in the [Azure architecture center](/azure/architecture/patterns/sidecar). You can also adjust the settings for the size and number of the virtual machines in the AKS node pool. Leave all other values at the defaults.
1. Select **Next**, enter the **AKS** pane. This pane allows you to select an existing AKS cluster and Azure Container Registry (ACR), instead of causing the deployment to create a new one, if desired. This capability enables you to use the sidecar pattern, as shown in the [Azure architecture center](/azure/architecture/patterns/sidecar). You can also adjust the settings for the size and number of the virtual machines in the AKS node pool. The remaining values do not need to be changed from their default values.
59
79
60
80
1. Select **Next**, enter the **Load Balancing** pane. Next to **Connect to Azure Application Gateway?** select **Yes**. This section lets you customize the following deployment options.
61
81
62
-
1. You can customize the **virtual network** and **subnet** into which the deployment will place the resources. Leave these values at their defaults.
82
+
1. You can customize the **virtual network** and **subnet** into which the deployment will place the resources. The remaining values do not need to be changed from their default values.
63
83
1. You can provide the **TLS/SSL certificate** presented by the Azure Application Gateway. Leave the values at the default to cause the offer to generate a self-signed certificate. Don't go to production using a self-signed certificate. For more information about self-signed certificates, see [Create a self-signed public certificate to authenticate your application](../active-directory/develop/howto-create-self-signed-certificate.md).
64
84
1. You can select **Enable cookie based affinity**, also known as sticky sessions. We want sticky sessions enabled for this article, so ensure this option is selected.
65
85
@@ -443,14 +463,14 @@ To avoid Azure charges, you should clean up unnecessary resources. When the clus
443
463
444
464
```bash
445
465
az group delete --name $RESOURCE_GROUP_NAME --yes --no-wait
446
-
az group delete --name <db-resource-group> --yes --no-wait
466
+
az group delete --name $DB_RESOURCE_GROUP_NAME --yes --no-wait
447
467
```
448
468
449
469
### [PowerShell](#tab/in-powershell)
450
470
451
471
```powershell
452
472
az group delete --name $Env:RESOURCE_GROUP_NAME --yes --no-wait
453
-
az group delete --name <db-resource-group> --yes --no-wait
473
+
az group delete --name $Env:DB_RESOURCE_GROUP_NAME --yes --no-wait
0 commit comments