I´d like to publish a referenced service using an existing SD to ArcGIS Enterprise.
I found two different methods:
- publishing to Portal, which allows to set the item_id, but not the ArcGIS Server Folder:
publish(publish_parameters=None, address_fields=None, output_type=None, overwrite=False, file_type=None, build_initial_cache=False, item_id=None, geocode_service=None)¶
arcgis.gis module | ArcGIS API for Python
- using the Service Manager publish_sd(sd_file, folder=None, service_config=None)¶ arcgis.gis.server module | ArcGIS API for Python, I can publish the SD to a specific Server Folder, but I don´t see an option to define the Portal item id.
How can I define both?