Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"az resource delete" with --no-wait is waiting #29175

Open
justinmchase opened this issue Jun 15, 2024 · 2 comments
Open

"az resource delete" with --no-wait is waiting #29175

justinmchase opened this issue Jun 15, 2024 · 2 comments
Assignees
Labels
ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue
Milestone

Comments

@justinmchase
Copy link

Describe the bug

When calling "az resource delete" with the --no-wait flag, I expect the command to exit within just a few seconds.

Related command

resource delete --no-wait --verbose --ids /subscriptions/0816a7b7-daf6-4f6a-8d35-0297a9da1f73/resourceGroups/sample-bankpr454-common/providers/Microsoft.ContainerService/managedClusters/aks-awsf

Errors

The resource is deleted but the command takes a very long time, it is apparently waiting despite the --no-wait flag.

INFO: Command ran in 183.362 seconds (init: 0.366, invoke: 182.996)

Issue script & Debug output

NA

Expected behavior

I expected it to exit after the delete command was issued and not wait for the resource to be done being destroying.

Environment Summary

azure-cli                         2.61.0

core                              2.61.0
telemetry                          1.1.0

Extensions:
account                            0.2.5
alias                              0.5.2
blueprint                          0.3.1
databricks                        0.10.2
resource-graph                     2.1.0
storage-blob-preview               0.7.2

Dependencies:
msal                              1.28.0
azure-mgmt-resource               23.1.1

Python location '/usr/local/Cellar/azure-cli/2.61.0/libexec/bin/python'
Extensions directory '/Users/jchase24/.azure/cliextensions'

Python (Darwin) 3.11.9 (main, Apr  2 2024, 08:25:04) [Clang 15.0.0 (clang-1500.3.9.4)]

Legal docs and information: aka.ms/AzureCliLegal


Your CLI is up-to-date.

Additional context

No response

@justinmchase justinmchase added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jun 15, 2024
Copy link

Hi @justinmchase
Find similar issue #19487.

Issue title Support --no-wait on az resource delete
Create time 2021-09-08
Comment number 2

Please confirm if this resolves your issue.

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group labels Jun 15, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Jun 15, 2024

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jun 15, 2024
@yonzhan yonzhan added this to the Backlog milestone Jun 16, 2024
@yonzhan yonzhan removed the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue
Projects
None yet
Development

No branches or pull requests

3 participants