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 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?
This isn't addressing your specific problem, but possibly another way to achieve what you're looking to do is to query the JSON of the service from the Admin API, store it in a variable, publish the new service, and then overwrite the JSON with what you've stored. If the only thing you're changing is some layers or other properties in the MXD, that may work for you.