We have two environments for ArcGIS Enterprise. One is Production and One is Staging. We usually deploy the webmap/feature layer from ArcGIS to Staging first, and then to the production. However, the item id will be different across the environments. What is the best practice to do the promotion such as that? Also can we make sure the item id will stay the same across the different environment?
It really depends on your environment architecture and the nature of the services, are they hosted or referenced? are they sharing the same geodatabase, etc.
in terms of preserving the itemid, yes you can preserve the item id when you are cloning the items.
see details here:
On top of what Simo mentioned, a couple of other supported options that will preserve item IDs are:
Group Export (note: workflow may differ depending on version of Enterprise)
Distributed collaborations
ah.. just remember @JakeSkinner had a great post about migrating content from one environment to another, please check it out:
https://community.esri.com/t5/arcgis-enterprise-documents/migrate-content-for-arcgis-enterprise-arcg...