We have multiple Pro 3.1 .aprx files and we want to automate the service publishing using those .aprx files.
We are moving to ArcGIS Enterprise 11.5 with ArcGIS Pro 3.5. and 11.5 will be on new machines.
We want to automate this publishing using python script.
But I have some doubts:
1. Does layers in one .aprx file can have difference data sources? If yes the how to handle this situation in python script?
2. We have Dev, QA and Prod environment. I know we can automate setting the data source for layers in .aprx using python. but does aprx save metadata like Service Description, tags, Summary or other relevant metadata? If No then is there any way to handle this?
3. What things keep in mind while publishing using python script? any dependecies?
4. Do we have any ready script for aprx publishing?