The only thing I could get to publish was a python script tool, with the admin connection file to the map service in a registered data store:
# Import arcpy module
import arcpy
# Script arguments
Moncton_BuildingFootprintsDeltas = arcpy.GetParameterAsText(0)
if Moncton_BuildingFootprintsDeltas == '#' or not Moncton_BuildingFootprintsDeltas:
Moncton_BuildingFootprintsDeltas = "D:\\Data\\Moncton\\Moncton_BACKUP.gdb\\Moncton_BuildingFootprintsDeltas" # provide a default value if unspecified
# Local variables:
Output_Map_Service_URL = Moncton_BuildingFootprintsDeltas
Moncton_MapServer = "D:\\Data\\Moncton\\arcgis on ctmnr03_6080 (admin)\\GFX/Moncton.MapServer"
# Process: Manage Map Server Cache Tiles
arcpy.ManageMapServerCacheTiles_server(Moncton_MapServer, "9027.977411;4513.988705;2256.994353;1128.497176", "RECREATE_ALL_TILES", "2", Moncton_BuildingFootprintsDeltas, "-7232467.31199099 5782907.54217863 -7190044.76129278 5809736.93910669", "WAIT")
This GP service is executed after a prior service creates Area of Interest polygons so I'm not really having to provide the featureclass from the JavaScript app itself; everything is happening on the server in sequence.
Thanks, Matt