AnsweredAssumed Answered

Update services but keep current configuration

Question asked by cgishack on Apr 4, 2017
Latest reply on Apr 4, 2017 by cgishack


I am building a python script that will update some of our mapping services in the middle of the night to prevent any down time.


I have successfully written all the code to create the SD Draft file and SD file along with using the ‘UploadServiceDefinition_server’ tool to upload the service..


I also define the service to be an ‘UPDATE’ by modifying the .sddraft XML file with 'esriServiceDefinitionType_Replacement'


My issue is when I update the service all my other services settings are replaced with the defaults. I want to keep the existing configuration of that service in tact and just update the service with a new MXD.


Is there any way to do this using python tools?