az resource delete not working as expected for Microsoft.EventHubs/namespaces
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az resource delete
Errors:
(InvalidResourceType) The resource type 'locations' could not be found in the namespace 'Microsoft.EventHub' for api version '2021-11-01'. The supported api-versions are '2017-04-01,2018-01-01-preview'.
Code: InvalidResourceType
Message: The resource type 'locations' could not be found in the namespace 'Microsoft.EventHub' for api version '2021-11-01'. The supported api-versions are '2017-04-01,2018-01-01-preview'.
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Create a event hub namespace
- Delete with the following command
az resource delete --ids "/subscriptions/xxxx/resourceGroups/RG/providers/Microsoft.EventHub/namespaces/rrtest1" --verbose --debug
Expected Behavior
No error should show up. Delete is finished with success but an error occurs when getting the status of the operation.
Environment Summary
Linux-5.4.0-1073-azure-x86_64-with-glibc2.28 (Cloud Shell), Common Base Linux Delridge (quinault)
Python 3.8.12
Installer: DEB
azure-cli 2.34.1
Extensions:
ai-examples 0.2.5
ssh 1.0.0
Dependencies:
msal 1.16.0
azure-mgmt-resource 20.0.0
Additional Context
Adding full debug output for reference: deleteEHlog.txt
Adding a previous version explicitly works as a workaround.
az resource delete --ids "/subscriptions/xxxx/resourceGroups/RG/providers/Microsoft.EventHub/namespaces/rrtest1" --api-version "2018-01-01-preview" --verbose --debug
Issue Analytics
- State:
- Created a year ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Azure Resource Manager resource group and resource deletion
Resource Manager issues a GET call on each resource that it tried to delete. The response of this GET call is expected to...
Read more >impossible to delete resource group - Microsoft Q&A
I asked you to try deleting your resource group via PowerShell because this should not be happening. I presume the user account you...
Read more >Resource group stuck on deprovisioning? - Microsoft Q&A
One of the resource groups that I deleted had some hidden resources, ... If this command is not working as expected, let's know...
Read more >Unable to delete resource group - Microsoft Q&A
I am trying documentation but it's not worked for me. I have 3 resources in that resource group. 1. Network Interface 2. Virtual...
Read more >Resource not found errors - Azure Resource Manager
Describes how to resolve errors when a resource can't be found. The error might occur when you deploy a Bicep file or Azure...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You are correct, it works like that. The thing is it should work without specifying a version, as it did. If I use this command, with a list of multiple resources with different versions, I expect it to work without specifying a version.
@raribeiroMS I have looped you offline with the Product Owners to keep the track of the release and tentative ETA for the fix. Until then you can use --api-version “2021-06-01-preview” parameter in the command. Please feel free to reopen this issue if you have any further queries.