---
title: "Stop service"
method: POST
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/stop"
tags: ["Service resource", "Custom operation", "POST"]
---

# Stop service

`POST /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/stop`

The services resource is the top-level resource that represents the Data Migration Service. This action stops the service and the service cannot be used for data migration. The service owner won't be billed when the service is stopped.

## Path parameters

- `subscriptionId` string, required
- `groupName` string, required
- `serviceName` string, required

## Query parameters

- `api-version` string, required

## Response `200`

The service has already been stopped.

## Other responses

- `202` — The request to stop service is accepted.
- `default` — Error

---

[API](https://skmtc.net/azure/apis/azure-data-migration-service-resource-provider.md) · [All operations](https://skmtc.net/azure/apis/azure-data-migration-service-resource-provider/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/azure-data-migration-service-resource-provider/versions/0881821a9cfa/schema)
