Unable to stop Change Data Capture

Stark, John 20 Reputation points
2025-08-06T08:24:47.15+00:00

I'm following the official documentation on how to setup CDC:

https://learn.microsoft.com/en-us/azure/data-factory/how-to-change-data-capture-resource

I'm able to create a CDC but it fails to start:

Screenshot 2025-08-06 100844

When trying to start it again I get this error: Unable to Start the CDC. Error:

{"_body":"{\"error\":{\"code\":\"ADFDataMapperAlreadyStarted\",\"message\":\"ADF CDC LPIM2LQ already started. Error:null\",\"target\":null,\"details\":null}}","status":409,"ok":false,"statusText":"OK","headers":{"_headers":{},"_normalizedNames":{}},"url":"https://management.azure.com/subscriptions/58777afd-b6c9-4681-b1ab-9c1e41700e7e/resourcegroups/rg-eusc-common/providers/Microsoft.DataFactory/factories/adf-common-eusc-prod/adfcdcs/LPIM2LQ/start?api-version=2018-06-01"}

Navigating to monitoring, it says that it is running but there is no option to stop it.

Screenshot 2025-08-06 101016

Trying to delete it does not work:

Screenshot 2025-08-06 101042

I tried to create a new Data Factory resource but I get the same behavior.

What do I do?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
0 comments No comments
{count} votes

Accepted answer
  1. Venkat Reddy Navari 5,330 Reputation points Microsoft External Staff Moderator
    2025-08-06T09:56:59.3666667+00:00

    Hi Stark, John Thanks for the detailed explanation and screenshots, it looks like the CDC is stuck in a “Running” state, even though the initial start failed. This prevents both stopping and deleting the CDC instance via the UI.

    Here’s how you can resolve this:

    Use the REST API to forcibly stop the CDC:

    Since the portal doesn't show the Stop option, you can issue a manual stop request using the following Azure REST API:

    
    POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{cdcName}/stop?api-version=2018-06-01
    

    Make sure to replace the placeholders ({subscriptionId}, {resourceGroupName}, etc.) with your actual values. You can run this using Postman, Azure CLI (via az rest), or Cloud Shell.

    For example, with Azure CLI:

    
    az rest --method post --url "https://management.azure.com/subscriptions/<sub-id>/resourceGroups/<rg-name>/providers/Microsoft.DataFactory/factories/<factory-name>/adfcdcs/<cdc-name>/stop?api-version=2018-06-01"
    

    Once successfully stopped, you’ll be able to delete or restart the CDC as needed.


    I hope this information helps. Please do let us know if you have any further queries.

    Kindly consider upvoting the comment if the information provided is helpful. This can assist other community members in resolving similar issues.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.