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
+36-2Lines changed: 36 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,7 +158,6 @@ With Spring Cloud Config Server, configurations or properties that are required
158
158
159
159
1. Bind the job to Spring Cloud Config Server during job creation using the command:
160
160
161
-
162
161
```
163
162
az spring job create --bind-config-server true --name <job-name>
164
163
```
@@ -173,7 +172,6 @@ az spring config-server bind --job <job-name>
173
172
174
173
Bind the job to Spring Cloud Config Server during job creation:
175
174
176
-
177
175
1. Go to your Azure Spring Apps instance. From the navigation pane, select *Job*
178
176
1. Click *Create Job* button and choose *Spring Cloud Config Server* in the *bind* part
179
177
1. Click *Create* button to start creation process
@@ -189,6 +187,24 @@ For existing jobs, you can bind them with Spring Cloud Config Server with follow
189
187
190
188
---
191
189
190
+
If you no longer need Spring Cloud Config Server for your jobs, you can unbind them from it. This change will take effect on new job executions.
191
+
192
+
# [Azure CLI](#tab/azure-cli)
193
+
194
+
Use the following Azure CLI command to unbind the job:
195
+
196
+
```
197
+
az spring config-server unbind --job <job-name>
198
+
```
199
+
200
+
# [Azure portal](#tab/azure-portal)
201
+
202
+
1. Go to your Azure Spring Apps instance. From the navigation pane, select *Spring Cloud Config Server* in *Managed components*.
203
+
1. In *Job binding* tab, select the job that needs to be unbind
204
+
1. Click *Unbind job* button.
205
+
206
+
---
207
+
192
208
### Tanzu Service registry
193
209
194
210
It's pretty common for a job to call an API from a long running app in collaboration for querying some info, notifying, etc. To make the job discover apps running in the same Azure Spring Apps service, you can enable both your apps and jobs binding to managed Service Registry. Please refer to below instructions about how to bind a job with Service Registry.
@@ -212,3 +228,21 @@ az spring job create --bind-service-registry true
212
228
---
213
229
214
230
When running the job execution, it can access the endpoint of registered apps through Service Registry then.
231
+
232
+
If you no longer need Service Registry for your jobs, you can unbind them from it. This change will take effect on new job executions.
233
+
234
+
# [Azure CLI](#tab/azure-cli)
235
+
236
+
Use the following Azure CLI command to unbind the job:
237
+
238
+
```
239
+
az spring service-registry unbind --job <job-name>
240
+
```
241
+
242
+
# [Azure portal](#tab/azure-portal)
243
+
244
+
1. Go to your Azure Spring Apps instance. From the navigation pane, select *Service Registry* in *Managed components*.
245
+
1. In *Job binding* tab, select the job that needs to be unbind
0 commit comments