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-with-postgresql.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ For more information on Open Liberty, see [the Open Liberty project page](https:
33
33
* Install a Java SE implementation (for example, [AdoptOpenJDK OpenJDK 8 LTS/OpenJ9](https://adoptopenjdk.net/?variant=openjdk8&jvmVariant=openj9)).
34
34
* Install [Maven](https://maven.apache.org/download.cgi) 3.5.0 or higher.
35
35
* Install [Docker](https://docs.docker.com/get-docker/) for your OS.
36
-
* Create a user-assigned managed identity and assign `Contributor` role to that identity by following the steps in [Manage user-assigned managed identities](../active-directory/managed-identities-azure-resources/how-manage-user-assigned-managed-identities.md). Return to this document after creating the identity and assigning it the necessary role.
36
+
* Create a user-assigned managed identity and assign `Owner` role or `Contributor` and `User Access Administrator` roles to that identity by following the steps in [Manage user-assigned managed identities](../active-directory/managed-identities-azure-resources/how-manage-user-assigned-managed-identities.md). Assign `Directory readers` role to the identity in Azure AD by following [Assign Azure AD roles to users](../active-directory/roles/manage-roles-portal.md). Return to this document after creating the identity and assigning it the necessary roles.
37
37
38
38
## Create a Jakarta EE runtime using the portal
39
39
@@ -151,15 +151,15 @@ In directory *liberty/config*, the *server.xml* is used to configure the DB conn
151
151
152
152
### Acquire necessary variables from AKS deployment
153
153
154
-
After the offer is successfully deployed, an AKS cluster with a namespace will be generated automatically. The AKS cluster is configured to connect to the ACR using a pre-created secret under the generated namespace. Before we get started with the application, we need to extract the namespace and the pull-secret name of the ACR configured for the AKS.
154
+
After the offer is successfully deployed, an AKS cluster will be generated automatically. The AKS cluster is configured to connect to the ACR. Before we get started with the application, we need to extract the namespace configured for the AKS.
155
155
156
156
1. Run following command to print the current deployment file, using the `appDeploymentTemplateYamlEncoded` you saved above. The output contains all the variables we need.
157
157
158
158
```bash
159
159
echo<appDeploymentTemplateYamlEncoded>| base64 -d
160
160
```
161
161
162
-
1. Save the `metadata.namespace`and `spec.pullSecret`from this yaml output aside for later use in this article.
162
+
1. Save the `metadata.namespace` from this yaml output aside for later use in this article.
163
163
164
164
### Build the project
165
165
@@ -179,7 +179,6 @@ export DB_TYPE=postgres
179
179
export DB_USER=${DB_ADMIN_USERNAME}@${DB_NAME}
180
180
export DB_PASSWORD=${DB_ADMIN_PASSWORD}
181
181
export NAMESPACE=<metadata.namespace>
182
-
export PULL_SECRET=<pullSecret>
183
182
184
183
mvn clean install
185
184
```
@@ -300,4 +299,4 @@ az group delete --name <RESOURCE_GROUP_NAME> --yes --no-wait
300
299
* [Azure Database for PostgreSQL](https://azure.microsoft.com/services/postgresql/)
301
300
* [Open Liberty](https://openliberty.io/)
302
301
* [Open Liberty Operator](https://github.com/OpenLiberty/open-liberty-operator)
303
-
* [Open Liberty Server Configuration](https://openliberty.io/docs/ref/config/)
302
+
* [Open Liberty Server Configuration](https://openliberty.io/docs/ref/config/)
Copy file name to clipboardExpand all lines: articles/aks/howto-deploy-java-liberty-app.md
+7-12Lines changed: 7 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ For more details on Open Liberty, see [the Open Liberty project page](https://op
32
32
* Install a Java SE implementation (for example, [AdoptOpenJDK OpenJDK 8 LTS/OpenJ9](https://adoptopenjdk.net/?variant=openjdk8&jvmVariant=openj9)).
33
33
* Install [Maven](https://maven.apache.org/download.cgi) 3.5.0 or higher.
34
34
* Install [Docker](https://docs.docker.com/get-docker/) for your OS.
35
+
* Please make sure you have been assigned either `Owner` role or `Contributor` and `User Access Administrator` roles of 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)
0 commit comments