🎯 Objective
Add and manage tags for an Azure Virtual Machine to organize, categorize, and track cloud resources efficiently.
Tags help in cost management, resource organization, automation, and governance.
🏷️ What are Tags in Azure?
Tags are key-value pairs assigned to Azure resources.
They allow you to:
Example:
Environment : Production
Project : HRMS
Owner : Kaung Sat Hein📊 Common Tag Examples
🛠️ Steps to Add Tags (Azure Portal)
1️⃣ Sign in to Azure
Go to:
https://portal.azure.com
2️⃣ Navigate to Virtual Machine
Go to:
Virtual Machines → Your VM
3️⃣ Open Tags Section
In the left menu, click:
Tags
4️⃣ Add Tags
Click:
Fill in:
Add multiple tags if needed.
5️⃣ Save
Click:
Save
👉 Tags are now applied to the VM
🔍 Verify Tags
Go to:
Virtual Machines → Your VM → Tags
You will see:
Environment : Production
Project : HRMS⚙️ Manage Tags
✏️ Edit Tags
❌ Delete Tags
📋 View Tags Across Resources
Go to:
All resources
Filter by:
Tags👉 Helps find related resources easily
💻 Azure CLI (Optional)
Add Tags:
az resource tag \
--tagsEnvironment=ProductionProject=HRMS \
--name myVM \
--resource-group myResourceGroup \
--resource-type"Microsoft.Compute/virtualMachines"Update Tags:
az resource update \
--set tags.Owner=Kaung \
--resource-group myResourceGroup \
--name myVM \
--resource-type"Microsoft.Compute/virtualMachines"Remove Tags:
az resource tag \
--tags"" \
--name myVM \
--resource-group myResourceGroup \
--resource-type"Microsoft.Compute/virtualMachines"⚠️ Important Notes
🧠 Best Practices
🎯 Result
Tags have been successfully added and managed for the Azure Virtual Machine, enabling better organization, cost tracking, and resource governance.