Skip to content

Instantly share code, notes, and snippets.

@rossarioking
Created July 27, 2023 10:29
Show Gist options
  • Save rossarioking/43961c4a22862bd8581bf3e111a257e1 to your computer and use it in GitHub Desktop.
Save rossarioking/43961c4a22862bd8581bf3e111a257e1 to your computer and use it in GitHub Desktop.
Adding Tags to a VM in Azure
az vm update -g "395-fc169a22-add-remove-and-update-tags-for-resou" -n webvm1 --set tags.MarkForDeletion=Yes
@rossarioking
Copy link
Author

Remove the existing tags from the VM:

az vm update -g "395-fc169a22-add-remove-and-update-tags-for-resou" -n webvm1 --remove tags.MarkForDeletion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment