Select to view content in your preferred language

Copy Services to new Server

812
1
03-01-2019 09:47 AM
TychoGranville
Occasional Contributor II

Hi All,

I’m trying to copy services in batch from our development portal to our production portal. Using the ESRI sample Python script (http://enterprise.arcgis.com/en/portal/latest/administer/windows/example-copy-content.htm) I can copy the content over successfully.

 It looks like the other ESRI sample Python script for updating the service URLs will work ((have not tried it yet, per below) (http://enterprise.arcgis.com/en/portal/latest/administer/windows/example-update-the-url-of-a-service-in-a-web-map.htm)

 

I am not having any luck finding anything that can copy the actual services from our development to production server .I found one tool on GitHub (https://github.com/eea/discomap.ServiceTransferTool) that worked for 10.4 that does not seem to work 10.6.1 (I get the error below, we figured it was a certificate error but they are both valid)

The only threads I have found talking about this issue are from 2015 and earlier and don’t seem to have come up with good solutions. It feels like I'm missing something simple/obvious

Thanks,

Tycho

1 Reply
TychoGranville
Occasional Contributor II

Okay, figured out the correct workflow with help from ESRI tech support. The amount of manual editing required seems like a giant red flag, but this is apparently the way it goes.The salient portion of the thread is below. This is for Enterprise 10.6.1 on Windows.
------------------------------------------------
Esri Case #02279751

Hi Kristen,

I guess I need a definition of "republishing". It sounds like

Initially:
create MXD in Testing environment --> create service in Testing environment --> create/modify maps/apps in Testing environment. Iterate until final product

copy MXD to Production environment --> create service in Production environment manually making sure the configuration is duplicated from Testing --> create maps/apps in Production environment manually making sure they match the Testing maps/apps

If a change needs to be made to an app:
Modify MXD in Testing environment --> overwrite service in Testing environment --> modify maps/apps in Testing environment. Iterate until final product

copy MXD to Production environment --> overwrite service in Production environment manually making sure the configuration is duplicated from Testing --> modify maps/apps in Production environment manually making sure they match the Testing maps/apps.

Is that the recommended workflow to republish services/maps/apps instead of using the copy content and change URL scripts?
Thanks,

Tycho
---------------------------
Good morning, Tycho,

Yes, that is exactly the recommended workflow, and what I mean by republishing. I know it can be tedious, but that is the recommended way to do it right. Please let me know if you have further questions.

Regards,
Kristen
Esri Support Services

0 Kudos