Azure / deployment-stacks

Contains Deployment Stacks CLI scripts and releases
MIT License
89 stars 7 forks source link

Deployment stack Delete operation hangs up for a long time. #179

Closed imran21 closed 2 months ago

imran21 commented 3 months ago

The Azure Deploment Stack hags up for a longer time even after the resources got deleted. Nearly for 2 hours.

Could anyone help on this at the earliest please.

I am just trying to delete the stack through Azre PowerShell Script Remove-AzSubscriptionDeploymentStack -Name $stackName -Confirm:$false -Force

This is being in a Deleting state for longer time

image

dantedallag commented 3 months ago

@imran21 Could you please provide the correlation id for this delete?

imran21 commented 3 months ago

@imran21 Could you please provide the correlation id for this delete?

Hi @dantedallag Please find the correlationId "correlationId": "5a7e73db-9242-4ced-bda9-bfb4a455f7bc"

imran21 commented 3 months ago

Hi @dantedallag Do you have any updates for me. Its been more that 3 hours it is deleting state. Could you please help me at the earliest.

snarkywolverine commented 3 months ago

@imran21 Looks like the stack finished ~30 minutes ago, though the Microsoft.Security/pricings resources could not be deleted. At this point, if you still want to delete the stack, you may want to detach the remaining resources (rather than delete them), and manually cleanup the remaining resources as applicable. Meanwhile, we will have an internal discussion about how to handle that resource type going forward.

snarkywolverine commented 2 months ago

Hi @imran21 - After further discussion, we are going to leave this experience as-is. Because the resource can't be deleted, the deletion attempt will always fail the stack. The stack will succeed deployment when those resources are detached (instead of deleted).

Let us know if you have any other questions!