Orphan resource group wont delete

Alain Osorio Rodriguez 0 Reputation points
2024-08-13T07:54:03.7766667+00:00

Hi,

I recently created an Azure Function App based on a container, and later I deleted the Function App. However, I noticed that during this process, a behind-the-scenes resource group with an associated app container was automatically created.

After deleting the Azure Function App, this resource group was not removed, and I'm unable to delete it manually due to a deny assignment that's preventing the deletion.

Do you have any suggestions on how I can resolve this issue?

Best regards,

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,978 questions
{count} votes

1 answer

Sort by: Most helpful
  1. LeelaRajeshSayana-MSFT 15,241 Reputation points Microsoft Employee
    2024-08-13T19:59:50.1366667+00:00

    Hi @Alain Osorio Rodriguez Greetings! Welcome to Microsoft Q&A forum. Thank you for posting this question here.

    The Deny Assignment is likely created by an Azure Deployment Stack which can be associated at the subscription level to manage and protect the resources. However, the Documentation states that, despite the deny-assignment setting, it's possible to delete the resource group. However, if a lock is active on any resource within the group, the delete operation fails. Look for Lock under the settings of your Resource Group and see if there are any locks added to the resource group. If you see any, delete the lock and then try deleting the resource group.

    If you still experience an issue with deleting the resource group, you can follow the steps provided in the article Delete the deployment stacks to remove the deny assignment enforcement.

    If you run into any permissions issues deleting the deployment stack, please reach out to an Admin on the subscription and have that removed.

    Hope this helps! Please let us know if you have any additional questions or need further assistance.


    If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.