Skip to content

Commit ace155d

Browse files
authored
Merge pull request #264052 from MicrosoftDocs/main
1/24 11:00 AM IST Publish
2 parents 911c81f + 82722c1 commit ace155d

File tree

53 files changed

+454
-164
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+454
-164
lines changed

.openpublishing.publish.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,7 @@
12181218
".openpublishing.redirection.json",
12191219
".openpublishing.redirection.key-vault.json",
12201220
".openpublishing.redirection.machine-configuration.json",
1221+
".openpublishing.redirection.marketplace.json",
12211222
".openpublishing.redirection.openshift.json",
12221223
".openpublishing.redirection.security-benchmark.json",
12231224
".openpublishing.redirection.sql-database.json",
@@ -1270,7 +1271,6 @@
12701271
"articles/machine-learning/.openpublishing.redirection.machine-learning.json",
12711272
"articles/machine-learning/v1/.openpublishing.redirection.machine-learning-v1.json",
12721273
"articles/mariadb/.openpublishing.redirection.mariadb.json",
1273-
"articles/marketplace/.openpublishing.redirection.marketplace.json",
12741274
"articles/mysql/.openpublishing.redirection.mysql.json",
12751275
"articles/network-watcher/.openpublishing.redirection.network-watcher.json",
12761276
"articles/object-anchors/.openpublishing.redirection.object-anchors.json",

articles/marketplace/.openpublishing.redirection.marketplace.json renamed to .openpublishing.redirection.marketplace.json

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,7 @@
18321832
},
18331833
{
18341834
"source_path_from_root": "/articles/marketplace/partner-center-portal/get-paid.md",
1835-
"redirect_url": "/partner-center/marketplace-get-paid?context=/azure/marketplace/context/context",
1835+
"redirect_url": "/partner-center/marketplace-get-paid",
18361836
"redirect_document_id": false
18371837
},
18381838
{
@@ -1887,22 +1887,22 @@
18871887
},
18881888
{
18891889
"source_path_from_root": "/articles/marketplace/partner-center-portal/payment-thresholds-methods-timeframes.md",
1890-
"redirect_url": "/partner-center/payment-thresholds-methods-timeframes?context=/azure/marketplace/context/context",
1890+
"redirect_url": "/partner-center/payment-thresholds-methods-timeframes",
18911891
"redirect_document_id": false
18921892
},
18931893
{
18941894
"source_path_from_root": "/articles/marketplace/partner-center-portal/payout-policy-details.md",
1895-
"redirect_url": "/partner-center/payout-policy-details?context=/azure/marketplace/context/context",
1895+
"redirect_url": "/partner-center/payout-policy-details",
18961896
"redirect_document_id": false
18971897
},
18981898
{
18991899
"source_path_from_root": "/articles/marketplace/partner-center-portal/payout-summary-overview.md",
1900-
"redirect_url": "/partner-center/payout-statement?context=/azure/marketplace/context/context",
1900+
"redirect_url": "/partner-center/payout-statement",
19011901
"redirect_document_id": false
19021902
},
19031903
{
19041904
"source_path_from_root": "/articles/marketplace/partner-center-portal/payout-summary.md",
1905-
"redirect_url": "/partner-center/payout-statement?context=/azure/marketplace/context/context",
1905+
"redirect_url": "/partner-center/payout-statement",
19061906
"redirect_document_id": false
19071907
},
19081908
{
@@ -1917,7 +1917,7 @@
19171917
},
19181918
{
19191919
"source_path_from_root": "/articles/marketplace/partner-center-portal/set-up-your-payout-account-tax-forms.md",
1920-
"redirect_url": "/partner-center/set-up-your-payout-account?context=/azure/marketplace/context/context",
1920+
"redirect_url": "/partner-center/set-up-your-payout-account",
19211921
"redirect_document_id": false
19221922
},
19231923
{
@@ -1932,7 +1932,7 @@
19321932
},
19331933
{
19341934
"source_path_from_root": "/articles/marketplace/partner-center-portal/tax-details-paid-transactions.md",
1935-
"redirect_url": "/partner-center/tax-details-marketplace?context=/azure/marketplace/context/context",
1935+
"redirect_url": "/partner-center/tax-details-marketplace",
19361936
"redirect_document_id": false
19371937
},
19381938
{
@@ -2022,7 +2022,7 @@
20222022
},
20232023
{
20242024
"source_path_from_root": "/articles/marketplace/company-work-accounts.md",
2025-
"redirect_url": "/partner-center/azure-active-directory-tenants-and-partner-center?context=/azure/marketplace/context/context",
2025+
"redirect_url": "/partner-center/azure-active-directory-tenants-and-partner-center",
20262026
"redirect_document_id": false
20272027
},
20282028
{
@@ -3454,6 +3454,11 @@
34543454
"source_path_from_root": "/articles/marketplace/partner-center-portal/saas-fulfillment-apis-faq.yml",
34553455
"redirect_url": "/partner-center/marketplace/partner-center-portal/saas-fulfillment-apis-faq",
34563456
"redirect_document_id": false
3457+
},
3458+
{
3459+
"source_path_from_root": "/articles/marketplace/context/context.yml",
3460+
"redirect_url": "/partner-center/marketplace/",
3461+
"redirect_document_id": false
34573462
}
34583463
]
34593464
}

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

Lines changed: 114 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ If you navigated away from the **Deployment is in progress** page, the following
8888
* `cmdToConnectToCluster`
8989
* `appDeploymentTemplateYaml` if you select **No** to **Deploy an application?** when deploying the Marketplace offer; or `appDeploymentYaml` if you select **yes** to **Deploy an application?**.
9090

91-
# [Bash](#tab/in-bash)
91+
### [Bash](#tab/in-bash)
9292

93-
Paste the value of `appDeploymentTemplateYaml` or `appDeploymentYaml` into a Bash shell, append `| grep secretName`, and execute. This command will output the Ingress TLS secret name, such as `- secretName: secret785e2c`. Save aside the value for `secretName` from the output.
93+
Paste the value of `appDeploymentTemplateYaml` or `appDeploymentYaml` into a Bash shell, append `| grep secretName`, and execute. This command will output the Ingress TLS secret name, such as `- secretName: secret785e2c`. Save aside the value for `secretName` from the output.
9494

95-
# [PowerShell](#tab/in-powershell)
95+
### [PowerShell](#tab/in-powershell)
9696

97-
Paste the quoted string in `appDeploymentTemplateYaml` or `appDeploymentYaml` into a PowerShell, append `| ForEach-Object { [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($_)) } | Select-String "secretName"`, and execute. This command will output the Ingress TLS secret name, such as `- secretName: secret785e2c`. Save aside the value for `secretName` from the output.
97+
Paste the quoted string in `appDeploymentTemplateYaml` or `appDeploymentYaml` into a PowerShell, append `| ForEach-Object { [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($_)) } | Select-String "secretName"`, and execute. This command will output the Ingress TLS secret name, such as `- secretName: secret785e2c`. Save aside the value for `secretName` from the output.
9898

9999
---
100100

@@ -130,12 +130,24 @@ Clone the sample code for this guide. The sample is on [GitHub](https://github.c
130130

131131
There are a few samples in the repository. We'll use *java-app/*. Here's the file structure of the application.
132132

133+
#### [Bash](#tab/in-bash)
134+
133135
```bash
134136
git clone https://github.com/Azure-Samples/open-liberty-on-aks.git
135137
cd open-liberty-on-aks
136138
git checkout 20240109
137139
```
138140

141+
#### [PowerShell](#tab/in-powershell)
142+
143+
```powershell
144+
git clone https://github.com/Azure-Samples/open-liberty-on-aks.git
145+
cd open-liberty-on-aks
146+
git checkout 20240109
147+
```
148+
149+
---
150+
139151
If you see a message about being in "detached HEAD" state, this message is safe to ignore. It just means you have checked out a tag.
140152

141153
```
@@ -170,7 +182,7 @@ In directory *liberty/config*, the *server.xml* file is used to configure the DB
170182

171183
Now that you've gathered the necessary properties, you can build the application. The POM file for the project reads many variables from the environment. As part of the Maven build, these variables are used to populate values in the YAML files located in *src/main/aks*. You can do something similar for your application outside Maven if you prefer.
172184

173-
# [Bash](#tab/in-bash)
185+
#### [Bash](#tab/in-bash)
174186

175187
```bash
176188
cd <path-to-your-repo>/java-app
@@ -189,7 +201,7 @@ export INGRESS_TLS_SECRET=<ingress-TLS-secret-name>
189201
mvn clean install
190202
```
191203

192-
# [PowerShell](#tab/in-powershell)
204+
#### [PowerShell](#tab/in-powershell)
193205

194206
```powershell
195207
cd <path-to-your-repo>/java-app
@@ -216,11 +228,22 @@ You can now run and test the project locally before deploying to Azure. For conv
216228

217229
1. Start the application using `liberty:run`. `liberty:run` will also use the environment variables defined in the previous step.
218230

231+
#### [Bash](#tab/in-bash)
232+
219233
```bash
220234
cd <path-to-your-repo>/java-app
221235
mvn liberty:run
222236
```
223237

238+
#### [PowerShell](#tab/in-powershell)
239+
240+
```powershell
241+
cd <path-to-your-repo>/java-app
242+
mvn liberty:run
243+
```
244+
245+
---
246+
224247
1. Verify the application works as expected. You should see a message similar to `[INFO] [AUDIT] CWWKZ0003I: The application javaee-cafe updated in 1.930 seconds.` in the command output if successful. Go to `http://localhost:9080/` in your browser and verify the application is accessible and all functions are working.
225248

226249
1. Press <kbd>Ctrl</kbd>+<kbd>C</kbd> to stop.
@@ -229,39 +252,51 @@ You can now run and test the project locally before deploying to Azure. For conv
229252

230253
You can now run the `docker build` command to build the image.
231254

255+
#### [Bash](#tab/in-bash)
256+
232257
```bash
233258
cd <path-to-your-repo>/java-app/target
234259

235260
docker build -t javaee-cafe:v1 --pull --file=Dockerfile .
236261
```
237262

263+
#### [PowerShell](#tab/in-powershell)
264+
265+
```powershell
266+
cd <path-to-your-repo>/java-app/target
267+
268+
docker build -t javaee-cafe:v1 --pull --file=Dockerfile .
269+
```
270+
271+
---
272+
238273
### (Optional) Test the Docker image locally
239274

240275
You can now use the following steps to test the Docker image locally before deploying to Azure.
241276

242277
1. Run the image using the following command. Note we're using the environment variables defined previously.
243278

244-
# [Bash](#tab/in-bash)
279+
#### [Bash](#tab/in-bash)
245280

246-
```bash
247-
docker run -it --rm -p 9080:9080 \
248-
-e DB_SERVER_NAME=${DB_SERVER_NAME} \
249-
-e DB_NAME=${DB_NAME} \
250-
-e DB_USER=${DB_USER} \
251-
-e DB_PASSWORD=${DB_PASSWORD} \
252-
javaee-cafe:v1
253-
```
281+
```bash
282+
docker run -it --rm -p 9080:9080 \
283+
-e DB_SERVER_NAME=${DB_SERVER_NAME} \
284+
-e DB_NAME=${DB_NAME} \
285+
-e DB_USER=${DB_USER} \
286+
-e DB_PASSWORD=${DB_PASSWORD} \
287+
javaee-cafe:v1
288+
```
254289

255-
# [PowerShell](#tab/in-powershell)
290+
#### [PowerShell](#tab/in-powershell)
256291

257-
```powershell
258-
docker run -it --rm -p 9080:9080 `
259-
-e DB_SERVER_NAME=${Env:DB_SERVER_NAME} `
260-
-e DB_NAME=${Env:DB_NAME} `
261-
-e DB_USER=${Env:DB_USER} `
262-
-e DB_PASSWORD=${Env:DB_PASSWORD} `
263-
javaee-cafe:v1
264-
```
292+
```powershell
293+
docker run -it --rm -p 9080:9080 `
294+
-e DB_SERVER_NAME=${Env:DB_SERVER_NAME} `
295+
-e DB_NAME=${Env:DB_NAME} `
296+
-e DB_USER=${Env:DB_USER} `
297+
-e DB_PASSWORD=${Env:DB_PASSWORD} `
298+
javaee-cafe:v1
299+
```
265300

266301
---
267302

@@ -273,15 +308,15 @@ You can now use the following steps to test the Docker image locally before depl
273308

274309
Upload the built image to the ACR created in the offer.
275310

276-
# [Bash](#tab/in-bash)
311+
#### [Bash](#tab/in-bash)
277312

278313
```bash
279314
docker tag javaee-cafe:v1 ${LOGIN_SERVER}/javaee-cafe:v1
280315
docker login -u ${USER_NAME} -p ${PASSWORD} ${LOGIN_SERVER}
281316
docker push ${LOGIN_SERVER}/javaee-cafe:v1
282317
```
283318

284-
# [PowerShell](#tab/in-powershell)
319+
#### [PowerShell](#tab/in-powershell)
285320

286321
```powershell
287322
docker tag javaee-cafe:v1 ${Env:LOGIN_SERVER}/javaee-cafe:v1
@@ -301,25 +336,56 @@ Use the following steps to deploy and test the application:
301336

302337
1. Apply the DB secret.
303338

339+
#### [Bash](#tab/in-bash)
340+
304341
```bash
305342
cd <path-to-your-repo>/java-app/target
306343
kubectl apply -f db-secret.yaml
307344
```
308345

346+
#### [PowerShell](#tab/in-powershell)
347+
348+
```powershell
349+
cd <path-to-your-repo>/java-app/target
350+
kubectl apply -f db-secret.yaml
351+
```
352+
353+
---
354+
309355
You'll see the output `secret/db-secret-sql created`.
310356

311357
1. Apply the deployment file.
312358

359+
#### [Bash](#tab/in-bash)
360+
313361
```bash
314362
kubectl apply -f openlibertyapplication-agic.yaml
315363
```
316364

365+
#### [PowerShell](#tab/in-powershell)
366+
367+
```powershell
368+
kubectl apply -f openlibertyapplication-agic.yaml
369+
```
370+
371+
---
372+
317373
1. Wait until all pods are restarted successfully by using the following command:
318374

375+
#### [Bash](#tab/in-bash)
376+
319377
```bash
320378
kubectl get pods --watch
321379
```
322380

381+
#### [PowerShell](#tab/in-powershell)
382+
383+
```powershell
384+
kubectl get pods --watch
385+
```
386+
387+
---
388+
323389
You should see output similar to the following example to indicate that all the pods are running:
324390

325391
```output
@@ -333,27 +399,37 @@ Use the following steps to deploy and test the application:
333399

334400
1. Get **ADDRESS** of the Ingress resource deployed with the application
335401

402+
#### [Bash](#tab/in-bash)
403+
336404
```bash
337405
kubectl get ingress
338406
```
339407

408+
#### [PowerShell](#tab/in-powershell)
409+
410+
```powershell
411+
kubectl get ingress
412+
```
413+
414+
---
415+
340416
Copy the value of **ADDRESS** from the output, this is the frontend public IP address of the deployed Azure Application Gateway.
341417

342418
1. Go to `https://<ADDRESS>` to test the application. For your convenience, this shell command will create an environment variable whose value you can paste straight into the browser.
343419

344-
# [Bash](#tab/in-bash)
420+
#### [Bash](#tab/in-bash)
345421

346-
```bash
347-
export APP_URL=https://$(kubectl get ingress | grep javaee-cafe-cluster-agic-ingress | cut -d " " -f14)/
348-
echo $APP_URL
349-
```
422+
```bash
423+
export APP_URL=https://$(kubectl get ingress | grep javaee-cafe-cluster-agic-ingress | cut -d " " -f14)/
424+
echo $APP_URL
425+
```
350426

351-
# [PowerShell](#tab/in-powershell)
427+
#### [PowerShell](#tab/in-powershell)
352428

353-
```powershell
354-
$APP_URL = "https://$(kubectl get ingress | Select-String 'javaee-cafe-cluster-agic-ingress' | ForEach-Object { $_.Line.Split(' ')[13] })/"
355-
$APP_URL
356-
```
429+
```powershell
430+
$APP_URL = "https://$(kubectl get ingress | Select-String 'javaee-cafe-cluster-agic-ingress' | ForEach-Object { $_.Line.Split(' ')[13] })/"
431+
$APP_URL
432+
```
357433
358434
---
359435
@@ -363,14 +439,14 @@ Use the following steps to deploy and test the application:
363439
364440
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.
365441
366-
# [Bash](#tab/in-bash)
442+
### [Bash](#tab/in-bash)
367443
368444
```bash
369445
az group delete --name $RESOURCE_GROUP_NAME --yes --no-wait
370446
az group delete --name <db-resource-group> --yes --no-wait
371447
```
372448
373-
# [PowerShell](#tab/in-powershell)
449+
### [PowerShell](#tab/in-powershell)
374450
375451
```powershell
376452
az group delete --name $Env:RESOURCE_GROUP_NAME --yes --no-wait

0 commit comments

Comments
 (0)