Create Service utility
In this topic
The Create Service utility allows you to publish a service from the command line. A service definition (.sd) file is required.
The name of an ArcGIS Server user who will execute the utility. The user must have the appropriate level of privileges to execute the action. If your site is configured with web-tier authentication, specify a built-in user, such as the primary site administrator account.
The password of the user who was specified with the -u parameter.
The URL of the site, in one of the following formats:
The path to the service definition file.
Optional. The cluster on which to deploy the service. If not specified, the default cluster is used.
Optional. The GIS server folder in which to deploy the service.
Optional. The name for the service, if you want to override the name contained in the service definition.
Prints help for the utility.
The following example creates a service named Yellowstone at the root level of the server using the file Yellowstone.sd.
At 10.2.2 and earlier versions, you were required to reference the Python directory and Python extension (.py) when executing the utilities from the command line. At 10.3, this is no longer required. You can run the utilities directly from the command line without referencing these Python dependencies.
If you implemented logic that automates the execution of these utilities, you need to update your scripts to remove the Python dependencies, for example:
- <ArcGIS Server installation location>/arcgis/server/tools/python
- The .py extension when referring to the name of the command line utility
See the following example below for correct usage:
<ArcGIS Server installation location>/arcgis/server/tools/admin/createservice -u admin -p admin -s http://gisserver.domain.com:6080 -f /opt/data/Yellowstone/Yellowstone.sd -n Yellowstone
The following example creates a service named San Diego in the folder RegionalPlanning.
<ArcGIS Server installation location>/arcgis/server/tools/admin/createservice -u admin -p admin -s http://gisserver.domain.com:6080 -f /opt/data/SanDiego/SanDiego.sd -F RegionalPlanning -n SanDiego