question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Az group delete --force-deletion-types fails with api-version mismatch

See original GitHub issue

This is autogenerated. Please review and update as needed.

Describe the bug

Az group delete --force-deletion-types fails with api-version mismatch.

Command Name az group delete

Errors:

(ResourceGroupDeletionTimeout) Deletion of resource group 'ResourceGroupName' did not finish within the allowed time as resources with identifiers 'Microsoft.Compute/virtualMachineScaleSets/VMSSName' could not be deleted. The provisioning state of the resource group will be rolled back. The tracking Id is '51aab640-2cb2-4cd2-a505-43b71602644b'. Please check audit logs for more details.
Code: ResourceGroupDeletionTimeout
Message: Deletion of resource group 'ResourceGroupName' did not finish within the allowed time as resources with identifiers 'Microsoft.Compute/virtualMachineScaleSets/VMSSName' could not be deleted. The provisioning state of the resource group will be rolled back. The tracking Id is '51aab640-2cb2-4cd2-a505-43b71602644b'. Please check audit logs for more details.
Exception Details:      (None) {"error":{"code":"BadRequest","message":"This request can be made with api-version '2022-03-01' or newer."}}
        Code: None
        Message: {"error":{"code":"BadRequest","message":"This request can be made with api-version '2022-03-01' or newer."}}
        Target: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-13c8e4160d62/resourceGroups/ResourceGroupName/providers/Microsoft.Compute/virtualMachineScaleSets/VMSSName

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here…
  • az group delete --name {} --yes --debug --force-deletion-types Microsoft.Compute/virtualMachineScaleSets

Expected Behavior

Successfully delete a resource group with the forcedelete option.

Environment Summary

Windows-10-10.0.22621-SP0
Python 3.10.8
Installer: MSI

azure-cli 2.42.0

Extensions:
aks-preview 0.5.114

Dependencies:
msal 1.20.0
azure-mgmt-resource 21.1.0b1

Additional Context

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
MinKParkcommented, Dec 12, 2022

@navba-MSFT thanks for pinning me on this. I asked my team to confirm this. I’ll let you know once it is confirmed.

0reactions
navba-MSFTcommented, Dec 22, 2022

@MinKPark Thanks for sharing the error message over teams chat internally. Currently I see that you are getting a different error. Could you please share the complete cli command that you ran ? Also run the command with --debug switch and share the error output.

If you want to work on this more closely with a Remote desktop sharing live-meeting session, please open a Microsoft support ticket and our support professional will get in touch with you to work on this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release notes & updates – Azure CLI - Microsoft Learn
[BREAKING CHANGE] az acs : Remove the deprecated command group ... az group delete : Add new parameter --force-deletion-types to support force deletion...
Read more >
Azure Resource Manager Overview | Microsoft Docs
Select Delete resource group in the top menu. In this tutorial, you learned how to generate a template from the Azure portal, and...
Read more >
How to delete all resource groups forcibly without prompt for ...
It is asking me to prompt for every resource group deletion. Also tried adding the flag -y by reading this MS Doc, az...
Read more >
Effective ways to delete resources in a resource group on ...
We'll cover Az PowerShell modules, Azure CLI, ARM template and Bicep. In my previous article I was speaking about three ways of doing...
Read more >
Azure CLI: Delete All Resources Within Resource Group
Sure, deleting the entire resource group might be easier, but at this time that's not an option. You can use the az resource...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found