Hi Balasai Kadama,
The reason you’re unable to delete resources in your Azure AI Foundry resource group could be related to permissions, locks, dependencies, or sandbox restrictions.
Here are a series of steps to resolve your issue:
1. Permissions Issue (RBAC): You might not have sufficient permission (only Reader role, or sandbox restrictions) and to check for permission, follow these steps:
- Go to Azure Portal → Resource Group → Access Control (IAM).
- Check the role assigned to you. Ensure you have Owner or Contributor role.
- If not, ask your subscription admin to grant access.
To know more about the roles, refer here: Azure built-in roles - Azure RBAC | Microsoft Learn
2. Resource Locks (Delete/Read-only Locks): Azure has a feature called resource locks that prevent accidental deletion or modification. Someone may have placed a lock on the resource group or an individual resource within it. In order to fix, follow the steps below:
· In Portal → Go to the Resource Group → Locks.
· You will need to delete any locks before you can delete the resource or resource group.
For more information, refer here: Lock your Azure resources to protect your infrastructure - Azure Resource Manager | Microsoft Learn
3. Dependencies Between Resources: Resources can have dependencies on other resources, even if they're in a different resource group. Some resources (like AI Hubs, Cognitive Services, Networking, Key Vaults) depend on each other and block deletion.
· Try deleting child resources first (e.g., AI Hub, linked storage, Key Vault).
· Then delete the resource group or run CLI for a force delete:
az group delete --name <ResourceGroupName> --yes --no-wait
For more information, refer here: Delete Resource Groups and Resources - Azure Resource Manager | Microsoft Learn
__4. Sandbox or Trial Subscription Restriction: I__f you’re in a Microsoft Learn sandbox, deletion is blocked by design. Resources will auto-expire after the lab.
5.Raise a support ticket: If you've tried all of the above steps and are still unable to delete the resource group, the issue may be a more complex, backend problem. In this case, you should open a support ticket with Microsoft Azure. Be sure to provide the following information:
· Your Subscription ID.
· The name of the resource group you're trying to delete.
· Any specific error messages you've received (from the Azure Portal or CLI).
· The steps you've already taken to try and resolve the issue.
Kindly follow the above steps to troubleshoot your issue. Let me know if you require any additional information from my end. I happy to help you with the queries. If the information is helpful, please click on Upvote and Accept Answer on it so that it can help other community members.
Thank you,
Rashmika