Hello Ramanathan AR,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you would want to delete a resource Group, that holds Azure AI Studio and no other resource.
- Regarding your explanations, you will have to delete everything inside the resource group before deleting it, almost is not enough. Below is the step-by-step to meet your need:
- Make sure that all resources within the resource group are deleted. Sometimes, resources might still be in a “Deleting” state, which can block the deletion of the resource group.
- Since the error mentions AI projects, you need to manually delete any associated AI projects. You can do this through the Azure portal or using Azure CLI/PowerShell. Sometimes, using the Azure CLI or PowerShell can help force the deletion of stubborn resources. For example, these are the command you can try:
az ml workspace delete --name <workspace-name> --resource-group <resource-group-name> --yes --no-wait
replace <workspace-name> and <resource-group-name> with your actual workspace and resource group names. To list all resources in the resource group:az resource list --resource-group <resource-group-name>
To delete a specific resource:az resource delete --ids <resource-id>
To remove resource locks:az lock delete --name <lock-name> --resource-group <resource-group-name>
- Make sure there are no dependencies or locks on the resources. You can check for resource locks in the Azure portal under the “Locks” section of the resource group.
- Permission can affect, you but from your explanation it looks like you still have some object running in the resource group.
- If you’ve tried all the above steps and still can’t delete the resource group, it might be best to contact Azure Support via your Azure Portal for assistance.
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.