Duplicate a Service
Duplicating a service creates a new service that starts from a copy of the original service's most recently published pipeline version. Use this when you want to reuse an existing service's setup as the starting point for a new environment, for example to create a staging copy of a production service, without affecting the original service.
Prerequisites
You must have read and write permissions to services. For details, see User Roles and Permissions.
Duplicate a Service
- In the navigation, go to Gateway and open the service you want to duplicate.
- Click More Actions and select Duplicate.
- In the Duplicate service dialog, review or update the Name field. It's pre-filled with the original service's name followed by "(copy)".
- Optional: Update the Description field. It's pre-filled with the original service's description.
- Click Duplicate.
We create a new service with the name and description you provided, and publish a copy of the original service's pipeline version to it. The new pipeline version's deployment history includes a note that it was duplicated from the original service.
If the pipeline version can't be published automatically, the new service is still created. You can publish a pipeline version to it manually. For details, see Publish a Pipeline to a Service.
What To Do Next
- Configure Service Hosting and Cost to adjust the copy's replicas and idle timeout.
- Add Secrets to a Service to give the new service its own credentials.
Related Information
Was this page helpful?