Cannot delete tags via az tag delete
See original GitHub issue[Enter feedback here]
I am trying to remove all tags from a resource (disk for the matter) by running:
az tag delete --yes --resource-id /subscriptions/...
The command ends with no errors, but when verifying it by running:
az tag list --resource-id /subscriptions/...
I see that no tag actually removed.
{ “id”: “/subscriptions/…”, “name”: “default”, “properties”: { “tags”: { “auto_fix”: “yes”, “contact_dl”: “me@ISP.com”, “env”: “dev” } }, “resourceGroup”: “myrg”, “type”: “Microsoft.Resources/tags” }
Any idea how to overcome it and manage to remove all the tags to that resource, please?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: e9984dc8-c276-354c-6c40-db77fad8e7cc
- Version Independent ID: f785cf84-06f2-946e-c8c6-c2a227394335
- Content: az tag
- Content Source: latest/docs-ref-autogen/tag.yml
- Service: azure-resource-manager
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
Issue Analytics
- State:
- Created a year ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Remove-AzTag (Az.Resources) | Microsoft Learn
By default, Remove-AzTag deletes the specified tag and all of its values.You cannot delete a tag or value that is currently applied to...
Read more >Unable To Delete Azure Resource Tag From Few ... - TechPress
Unable to delete the resource tags on few resources from azure portal. Use the PUT command to delete the tag.
Read more >Create Update and Delete Tags on Azure Resource
Delete Tag on a Azure Resource To remove specific tags, use Update-AzTag and set -Operation to Delete. Pass in the tags you want...
Read more >Azure: delete all tags - powershell - Stack Overflow
A tag or value that is already associated with a resource or resource group cannot be removed. Before using Remove-AzTag, use the Tag...
Read more >Delete Tag in Azure Resource - YouTube
Delete Tag in Azure Resource using Update- AzTag -Operation DeleteTo remove all tags from your Azure subscription, ...
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
Well. since the tag contains a white space, I cannot delete it from CLI. Will do it manually from the portal.
You may close the ticket. Thanks.
I will test your recommendations and report.