I have several Maps open in my ArcGIS Pro 2.2 project.
I want to create a Map Service per Map View.
Is there a solution to set this off as a batch process? Or do I need to run the publishing to Web Map process manually per map view?
I think you would be able to iterate through each map within the project and then use MapImageSharingDraft—Sharing module | ArcGIS Desktop to share. It will require a modest knowledge of Python, but there is a code sample:http://pro.arcgis.com/en/pro-app/arcpy/sharing/mapimagesharingdraft-class.htm#C_GUID-60871391-D229-4DEB-A958-205FEB751791
You'd just need to iterate through each map in the project and for each iteration, use the sample.
Look at sample 2 here http://pro.arcgis.com/en/pro-app/arcpy/mapping/arcgisproject-class.htm#C_GUID-1117B216-CE8B-47A9-998B-6143907D3165
So it would be something like:
aprx = arcpy.mp.ArcGISProject("CURRENT")
for m in aprx.listMaps():
then use the Map Image sharing sample.
Retrieving data ...