File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ author: craigshoemaker
6
6
ms.service : azure-container-apps
7
7
ms.custom : build-2023, devx-track-azurecli
8
8
ms.topic : quickstart
9
- ms.date : 08/17/2023
9
+ ms.date : 08/09/2024
10
10
ms.author : cshoe
11
11
zone_pivot_groups : container-apps-job-types
12
12
---
@@ -103,21 +103,21 @@ Job executions output logs to the logging provider that you configured for the C
103
103
1 . Save the Log Analytics workspace ID for the Container Apps environment to a variable.
104
104
105
105
``` azurecli
106
- LOG_ANALYTICS_WORKSPACE_ID=` az containerapp env show \
106
+ LOG_ANALYTICS_WORKSPACE_ID=$( az containerapp env show \
107
107
--name "$ENVIRONMENT" \
108
108
--resource-group "$RESOURCE_GROUP" \
109
109
--query "properties.appLogsConfiguration.logAnalyticsConfiguration.customerId" \
110
- --output tsv`
110
+ --output tsv)
111
111
```
112
112
113
113
1. Save the name of the most recent job execution to a variable.
114
114
115
115
```azurecli
116
- JOB_EXECUTION_NAME=` az containerapp job execution list \
116
+ JOB_EXECUTION_NAME=$( az containerapp job execution list \
117
117
--name "$JOB_NAME" \
118
118
--resource-group "$RESOURCE_GROUP" \
119
119
--query "[0].name" \
120
- --output tsv`
120
+ --output tsv)
121
121
```
122
122
123
123
1. Run a query against Log Analytics for the job execution using the following command.
You can’t perform that action at this time.
0 commit comments