Unable to delete Microsoft.DataReplication resources – orphaned dependencies

Becky Hope 20 Reputation points Microsoft Employee

I am unable to delete the following resources:

  • Microsoft.DataReplication/replicationVaults
  • Microsoft.DataReplication/replicationFabrics
  • Microsoft.DataReplication/replicationFabrics

Delete operations fail with ResourceDeletionFailed. The Azure Migrate project associated with these resources no longer exists, so I cannot access or remove replication protected items via the UI. Based on the deployment template, protectedItems, replicationExtensions, and fabricAgents still exist, but they are not visible in the portal or via az resource list. I need Azure support to perform a backend cleanup / force delete of these DataReplication resources and remove any orphaned dependencies.

These are the last resources in the subscription, once deleted I can delete the subscription. It would have been helpful to have a ticket raised but it has directed me here instead.

0 comments No comments

Sign in to comment

Answer accepted by question author

Lakshma Reddy Vattijonnala 830 Reputation points Microsoft External Staff Moderator

Hi @Becky Hope The Azure Migrate project associated with these resources no longer exists, so you cannot access or remove replication protected items via the UI. 

Microsoft.DataReplication/replicationVaults

Microsoft.DataReplication/replicationFabrics

Microsoft.DataReplication/replicationFabrics

Based on the deployment template, protectedItems, replicationExtensions, and fabricAgents still exist, but they are not visible in the portal or via az resource list. 

The back-end team connected with you and helped to force delete an entire resource

If you find the answer helpful, please click "upvote" and accept it. This will help others in the community with similar questions easily find the solution.

  1. Becky Hope 20 Reputation points Microsoft Employee

    We had to find the protected items with the following command and search the output by "name":

    Invoke-AzRestMethod -Method GET -Path "/subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.DataReplication/replicationVaults/<replicationVaultName>/protectedItems?api-version=2024-09-01"

    Then force a delete with this command(the protectedItemGUID is found in the output "name"):

    Invoke-AzRestMethod -Method DELETE -Path "/subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.DataReplication/replicationVaults/<replicationVaultName>/protectedItems/<protectedItemGUID>?api-version=2024-09-01&ForceDelete=True"


Sign in to comment

0 additional answers

Sign in to answer

Your answer