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.

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:closed
  • Created a year ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
yargolancommented, May 15, 2022

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.

1reaction
yargolancommented, May 6, 2022

I will test your recommendations and report.

Read more comments on GitHub >

github_iconTop 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 >

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