Hello Omar Saleh,
Since you mentioned that the databases are still showing in the Azure portal, it might be necessary to manually delete these orphaned resources.
To delete these orphaned Azure Arc-enabled SQL databases, you can try the following steps:
- Ensure that the resource group where the databases were located is still intact. If it exists, you can try deleting the specific databases from that resource group.
- If you cannot delete the databases through the Azure portal, you can use the Azure CLI to attempt to delete them. You can run the following command, replacing the placeholder values:
az resource delete --name <database name> --resource-type Microsoft.AzureArcData/sqlManagedInstances --resource-group <resource group name>
- Although you mentioned that you don't think there are any locks, it might be worth double-checking the resource group or subscription settings for any locks that could prevent deletion.
Refer the below doc to get the insights for the deletion process.
https://learn.microsoft.com/en-us/azure/azure-arc/data/uninstall-azure-arc-data-controller
Please let me know if you have any concerns regarding the same.
Click Upvote it if the provided information helps your query.
Thanks