Delete an Azure resources with remaining DenyAssignments from ContainerApps

Marcus Zethraeus 0 Reputation points
2025-06-19T12:53:27.9766667+00:00

Hi Microsoft Team,

I'm unable to delete a resource group due to system-protected deny assignments that were automatically created by a now-deleted Azure Container App managed environment.

Details:

  • Resource Group: predli-xxxx-internal

Subscription ID: 817ae3be-xxxx-xxxx-8223-dc5cc95ab162

Container App Environment: Deleted

Remaining Resources:

Public IP: capp-xxxx-lb

Load Balancer: capp-xxxx-lb


These resources still have the following `isSystemProtected: true` deny assignments:

`/subscriptions/817ae3be-ebae-xxxx-xxxx-dc5cc95ab162/resourceGroups/predli-xxxx-internal/providers/Microsoft.Network/loadBalancers/capp-xxxx-lb/providers/Microsoft.Authorization/denyAssignments/8e2fdc65-fd6c-xxxx-xxxx-d84fedf3d59d`

`/subscriptions/817ae3be-ebae-xxxx-xxxx-dc5cc95ab162/resourceGroups/predli-xxxx-internal/providers/Microsoft.Authorization/denyAssignments/3a4f275a-4f5d-xxxx-xxxx-e7dbb02d33f3`

`/subscriptions/817ae3be-ebae-xxxx-xxxx-dc5cc95ab162/resourceGroups/predli-xxxx-internal/providers/Microsoft.Network/publicIPAddresses/capp-xxxx-lb-ip/providers/Microsoft.Authorization/denyAssignments/18bcac05-1e78-xxxx-xxxx-8592e4122820`

I have verified that no Container App or Environment exists anymore (`az containerapp env list` returns empty), but I am blocked from deleting these resources or the group.

**Request**: Please assist in removing these orphaned deny assignments or escalating to an internal team that can clean them up.

Thank you!

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
687 questions
{count} votes

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.