Save a service definition for a web layer

With ArcGIS Pro, you can save service definitions for web layers to be shared to a portal at a later time. A service definition file (.sd) contains information about the web layer's type, properties, and capabilities. See Introduction to saving service definitions to learn more about how service definitions can be used in your organization's sharing workflows.

You can save a service definition for a web feature layer, web tile layer, or map image layer with a specific connection or without a connection when offline or disconnected from the server.

Service definitions cannot be created for vector tile layers, web scene layers, web imagery layers, or web elevation layers.

Save a connected service definition for a web layer

A connected service definition is configured for a specific server connection. The option to save a service definition is available in the Share As Web Layer pane when you are connected to ArcGIS Online or ArcGIS Enterprise.

Tip:

In the Share As Web Layer pane, click the Publish drop-down arrow and click Save As SD to save a service definition file.

The workflow to save a service definition for web layers is similar to sharing web layers and is not discussed in detail here. Each web layer type has its own sharing topic that you can refer to for more information:

Save an offline service definition for a web layer

An offline service definition is connection-neutral; it is not configured for a specific server connection. You can save an offline service definition if you are offline or not connected to the server. This workflow explains how to save an offline service definition for a web layer with default settings to be later shared to a portal. To change the default configuration, see the following:

To save a service definition for a web layer in a disconnected environment, complete the following steps:

  1. Do one of the following:
    • Share all usable layers in the map in the service definition.
      • On the Share tab, in the Share As group, click the Web Layer drop-down arrow and click Save As Offline Service Definition Service Definition.
      • Right-click the name of the map in the Contents pane, point to Save As Offline Service Definition, and click Web Layer on Portal Service Definition.
    • Share selected layers in the map in the service definition. Select the layers in the Contents pane. Right-click any selected layer, point to Sharing, and click Save As Offline Service Definition Service Definition.

    The Save As Offline Service Definition pane appears.

  2. Provide a name for the web layer.
  3. Complete the Summary and Tags fields.

    You can enter a maximum of 128 tags.

  4. Under Data and Layer Type, select the layer type under the data type of your choice.
  5. Under Location, for Portal Folder, optionally provide a name of an existing portal folder or a new folder.

    By default, the web layer is stored at the root level of the portal content.

  6. For Server Folder, optionally provide a name of an existing server folder or a new folder.

    By default, the service is stored in the root folder of the server.

    Note:

    The Server Folder option only appears if you are sharing a map image layer.

  7. Under Finish Staging, click Analyze Analyze to review for problems.

    Errors and warnings are listed on the Messages tab. Right-click a message to open its help topic or take corrective action in the software. Errors Error must be resolved before you can save the service definition. Resolving warnings Warning is recommended but not required.

    Learn more about analyzing GIS resources

  8. After you have resolved errors, and optionally resolved warnings, click Save.

    The Save As Service Definition File dialog box appears.

  9. On the dialog box, specify the location and name of the service definition file and click Save.
  10. Optionally, click Jobs Check Sharing Job Status to monitor the job status.
  11. Once the service definition has been successfully staged, click the Manage the service definition link at the bottom of the pane to open the location of the service definition file.

If you are ready to publish your web layer to ArcGIS Online or an ArcGIS Enterprise portal, see Publish a service definition.

Related topics