You can only share a geoprocessing service with administrator credentials and connection type. When sharing a geoprocessing service, there are multiple properties that define how the users interact with the service. Working through the options in the Publish Geoprocessing Service pane allows you to set how results are returned and configure tool input parameters for the service.
You can share a geoprocessing service to ArcGIS Server from ArcGIS Pro 2.4 and later using the ArcGIS Server Connection. You can also use Python to publish a geoprocessing service to a stand-alone server from ArcGIS Pro 2.3. To learn more, see Use geoprocessing services in Python scripts.
Analyze the service
One of the first steps before publishing is to analyze the geoprocessing service. This process identifies issues that prevent the tool from being published. Information on the data and tools that compose the service and potential solutions are offered. Some analyzer errors can only be resolved by modifying the tools or data that compose your tool. Other messages and warnings provide guidance and best practices. After critical errors have been addressed and the settings of the service have been configured, the geoprocessing service can be published. To learn more, see Analyzer messages.
Add a tool
When sharing a geoprocessing service, the process starts with the result of a model or script tool. You can build a geoprocessing service from multiple results. Any successful geoprocessing history item can be included in a geoprocessing service to be published as a service. Adding multiple tools is a good technique when grouping similar tools or tools that are part of a workflow.
A new tool cannot be added to an existing geoprocessing service. You must republish the existing tool and include the new tool in a new, single geoprocessing service.
By default, a geoprocessing service created with an administrator role is accessible by all the other accounts from which it was created. To restrict the service to certain roles, log in to ArcGIS Server Manager and use the Security tab to set restricted roles.
Detail publishing steps
See Quick tour of authoring and sharing geoprocessing services for detailed steps to publish geoprocessing services.