Updating Secured Registered Services using Admin Tools

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:

Screen Shot 2016-06-02 at 12.05.47 PM.png

The workflow in Admin Tools goes like this.

  1. 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.
  2. 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.
  3. 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.
  4. Export Items to CSV:  Use this tool again, but this time filter by the tag you used to register the new secure services.
  5. 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.
  6. 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.

 

Nick Lawalin

Solutions Engineer

Nick Lawalin is a Solution Engineer for GEO Jobe. Follow him on twitter: @nicklawalin

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.