here i'm trying to use python script very first time. i'm trying to publish old services in ArcGIS Server 10.5.1.
i'm using PublishMSDToService function and faced attached error message.
Please help me to run this function.
You need to use the following three tools to publish services using arcpy:
1) CreateMapSDDraft—Help | ArcGIS Desktop
2) Stage Service—Help | ArcGIS Desktop
3) Upload Service Definition—Help | ArcGIS Desktop
Here are some sample scripts you can take a look at:
Scripting service publishing with ArcPy—ArcGIS Server Administration (Windows) | ArcGIS Enterprise