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/spring-apps/enterprise/how-to-manage-job.md
+13-11Lines changed: 13 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ This article shows you how to manage the lifecycle of a job and run it in the Az
27
27
28
28
### [Azure CLI](#tab/azure-cli)
29
29
30
-
Use the command `az spring job create`to create job and deploy the job with source code or artifacts of the application.
30
+
Use the following commands to create and deploy a job:
31
31
32
32
```azurecli
33
33
az spring job create \
@@ -40,7 +40,7 @@ az spring job deploy \
40
40
41
41
### [Azure portal](#tab/azure-portal)
42
42
43
-
Use the following steps to create a job using the Azure portal:
43
+
Use the following steps to create and deploy a job:
44
44
45
45
1. Open your Azure Spring Apps service instance.
46
46
@@ -114,20 +114,22 @@ az spring job execution list \
114
114
115
115
### [Azure portal](#tab/azure-portal)
116
116
117
-
In the **Executions** section of the **Jobs** overview page, find the latest job execution and select **View execution detail** to see the configuration both in the job level and the execution level.
117
+
1. Go to the **Executions** section of the **Jobs** overview page.
118
+
119
+
1. Find the latest job execution and select **View execution detail** to see the configuration both in the job level and in the execution level.
118
120
119
121
---
120
122
121
-
For the public preview, the latest 10 completed or failed job execution records per job in the history are retained.
123
+
For the public preview, the latest 10 completed or failed job execution records per job are retained in history.
122
124
123
125
## Query job execution logs
124
126
125
127
For the history of job executions in the Azure portal, use the following command to query the logs in the Azure Log Analytics:
126
128
127
129
```SQL
128
-
AppPlatformLogsforSpring
129
-
| where AppName =='<job-name>'and InstanceName startswith '<execution-name>'
130
-
| order by TimeGenerated asc
130
+
AppPlatformLogsforSpring |
131
+
where AppName =='<job-name>'and InstanceName startswith '<execution-name>' |
132
+
order by TimeGenerated asc |
131
133
```
132
134
133
135
For more information, see [Set up log analytics workspace](../basic-standard/quickstart-setup-log-analytics.md?tabs=Azure-Portal#prerequisites).
@@ -140,7 +142,7 @@ az spring job logs \
140
142
--execution <execution-name> \
141
143
```
142
144
143
-
If there are multiple instances for the job execution, specify`--instance <instance-name>` to view the logs of only one instance.
145
+
If there are multiple instances for the job execution. Specify`--instance <instance-name>` to view the logs of only one instance.
144
146
145
147
## Rerun job execution
146
148
@@ -157,13 +159,13 @@ az spring job start \
157
159
158
160
### [Azure portal](#tab/azure-portal)
159
161
160
-
Use the following steps to rerun the job execution:
162
+
Use the following steps to rerun a job execution:
161
163
162
164
1. Open the **Executions** section of the **Jobs** overview page.
163
165
164
166
1. Select **Rerun** to trigger a new job execution with the same configuration as the previous one.
165
167
166
-
A new job execution is shown in the **Executions** section.
168
+
1.A new job execution is shown in the **Executions** section.
167
169
168
170
---
169
171
@@ -173,7 +175,7 @@ For the public preview, jobs are enabled to integrate seamlessly with Spring Clo
173
175
174
176
### Spring Cloud Config Server
175
177
176
-
With the Spring Cloud Config Server, configurations or properties required by the job can be managed externally on GitHub repos and then loaded into the job accordingly. After setting up GitHub repo configurations on Spring Cloud Config Server, you need to bind the jobs with it.
178
+
With the Spring Cloud Config Server, configurations or properties required by the job can be managed externally on GitHub repositories and then loaded into the job accordingly. After setting up GitHub repo configurations on Spring Cloud Config Server, you need to bind the jobs to it.
0 commit comments