I need to create a script to automatically stop an address locator service, and then start it again after another script rebuilds it.
We've recently upgraded to ArcGIS Enterprise 10.9.1. Previously, I used the method from this article to do this: Example: Stop or start all services in a folder—ArcGIS Server | Documentation for ArcGIS Enterprise.
Apparently, that doesn't work past version 10.8.x. Does anyone know of another way that this process can be scripted?
Thanks.
Solved! Go to Solution.
Is the geocode service part of an enterprise portal? If so you can use a simpler javascript api script.
I know this is old but the I have the same issue now except ours is not part of a enterprise portal so the code doesn't work. I can't find a solution to start the services in our 10.9.1 ArcGIS Server Manager because as soon as I turn off the services it disappear from rest and trying to start it finds no services to start.
Thanks! That did the trick.