Deployment Stack failed to be deleted.

JSevillano 45 Reputation points
2025-08-05T13:10:50.9666667+00:00

Deploment Stack is failing while trying to delete it. Here the error detail:

"{"code":"DeploymentStackDeleteResourcesFailed","message":"One or more resources could not be deleted. Correlation id: '2a7c1a61-63ec-4f3d-8f2a-b5e939b7b3a0'.","details":[{"code":"DeploymentStackDeleteResourcesFailed","message":"An error occurred while deleting resources. These resources are still present in the stack but can be deleted manually."

I have tried to delete the resource manually but it had also failed to be deleted. Here is the error details:

"Deletion of this resource was bypassed because of a failure in another resource deletion.</div></code></br> (Code: ResourceDeletionBypassed, Target: /providers/microsoft.aadiam/diagnosticSettings/diag-cslogentid-prod)"

Azure Managed Applications
Azure Managed Applications
An Azure service that enables managed service providers, independent software vendors, and enterprise IT teams to deliver turnkey solutions through the Azure Marketplace or service catalog.
{count} votes

Accepted answer
  1. Vinod Pittala 6,130 Reputation points Microsoft External Staff Moderator
    2025-08-06T16:07:43.0766667+00:00

    Hello JSevillano,

    Please ensure the properties are set as expected as shown below.

    User's image

    And please validate whether the Resource group of this deployment stack is there or not?

    If its there, run the command : Remove-AzSubscriptionDeploymentStack -name "name of stack" -Forcenewimage

    Let me know if this can works?

    Thanks

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.