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.