Hi,
Since this previous idea has been implemented (Add "Save As SD" to overwrite an existing service - Overwrite Web Layer), we're looking for more consistency between our different ArcGIS Enterprise environments (dev - staging - prod).
We would like to be able to keep the same Portal item id no matter the destination Portal.
We think a pre-generated list of item ids should be added to the .sd file so the values would be sent to the portal for the different types of services (ex : Feature Services, Map Image Services, OCG Services, etc... everything with an item id). This way, we would have the same item id between environments.
Another way of doing this would be to improve the ArcGIS API for Python's Server.publish_sd function. The 2.4.0 version already allows us to set an item_id for the main type of service but not for related capabilities (ex : WMS, etc.). Maybe a dictionary of service_type:item_id could be the new parameter type?
Another option would be to add a way to modify a portal item id. But we would have to alter portal items once the have been published...
Thank you!