Skip to content

Commit 1c40be9

Browse files
authored
add unbind
1 parent 06668eb commit 1c40be9

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

articles/spring-apps/enterprise/how-to-manage-job.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ With Spring Cloud Config Server, configurations or properties that are required
158158

159159
1. Bind the job to Spring Cloud Config Server during job creation using the command:
160160

161-
162161
```
163162
az spring job create --bind-config-server true --name <job-name>
164163
```
@@ -173,7 +172,6 @@ az spring config-server bind --job <job-name>
173172

174173
Bind the job to Spring Cloud Config Server during job creation:
175174

176-
177175
1. Go to your Azure Spring Apps instance. From the navigation pane, select *Job*
178176
1. Click *Create Job* button and choose *Spring Cloud Config Server* in the *bind* part
179177
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
189187

190188
---
191189

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+
192208
### Tanzu Service registry
193209

194210
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
212228
---
213229

214230
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
246+
1. Click *Unbind job* button.
247+
248+
---

0 commit comments

Comments
 (0)