Admin Tools for ArcGIS Online is made up of many “small” tools that when chained together can do “big” things. Meaning that sometimes you may have to create a workflow using multiple tools to accomplish your specific needs. We’ve created a workflow for Updating Secured Registered Services using Admin Tools Pro. (Also, I would like to mention that we have In-App support in both our Free and Pro versions to help users figure out these kinds of workflows)
Updating Secured Registered Services using Admin Tools
Let’s say you have a situation where you need to move your secured services from an ArcGIS Server machine to another or you change the protocol from http:// to https://. Which also means you need to update the item’s URL in ArcGIS Online.
The first step to do in this situation, after you’ve made all your server changes, is to register the new secured services in your ArcGIS Online Org. This has to be done because the back-end URL, on your server, has changed and the old (existing) registered items in ArcGIS Online are looking for the URL you used when you originally registered that item. The back-end URL unfortunately cannot be update. Only the front-end URL you see in ArcGIS Online.
So you have a situation like this:
The workflow in Admin Tools goes like this.
- Export to JSON: As good practice it’s always a good idea to back up any/or all items before performing changes. This way you can get those configurations back if something goes south.
- Export Items CSV: Create a filter(s) at the top to find services in ArcGIS Online that need updating and select them from the list. Hit Next. The detail you’re after here is “url” as this is what you’ll need to know to replace it with your new url. Then hit Export.
- Register Services: Use this tool to register your new secure services and give them a unique tag (by populating the Tag field) to search by. You’ll need this for the next step.
- Export Items to CSV: Use this tool again, but this time filter by the tag you used to register the new secure services.
- Open both exported CSVs and find the ‘url’ column. If you left all default boxes checked during export then this should be around column U. This will expose both the old URL and the new URL so that you can use it in the next step.
- Find and Replace Service URLs: Open this tool and paste in the old service URL with its new counterpart from the CSVs. Continue this until you’ve updated all the necessary services.
Assuming this was purely a URL update and no database schema changes were involved then all the popup configurations should continue to work. If you run into an instance where they do not work then simply “Remove Popup” and then “Enable Popup” in the web map and that should flush out the problem.