DEV Community

Cover image for How to Manage Tags and Locks In Microsoft Azure
Oluwanifesimi
Oluwanifesimi

Posted on

How to Manage Tags and Locks In Microsoft Azure

Microsoft Azure is a cloud platform where you can run virtual computers, store data, build apps, and use AI—without needing physical servers. It's like renting powerful tech tools online to get things done faster and smarter.

what is virtual machine?

A virtual machine (VM) is like a computer inside your computer. It’s a software-based system that acts like a real physical computer, running its own operating system and apps independently. It operates in an isolated environment, allowing multiple VMs to run on a single physical computer or server while sharing its resources (CPU, memory, storage, etc.). In this guide, we’ll walk you through the steps to create a virtual machine in Azure using the Azure Portal.

Step by Step on how to mange TAGD AND LOCKS in Microsoft Azure

Step 1:Add tags to a virtual machine

You’ll start by adding a pair of tags to the virtual machine. One tag will be to identify the purpose of the virtual machine and the other will be to indicate the department the machine supports.

  • Login to Microsoft Azure at https://portal.azure.com Login
  • From the Azure portal home page, in the search box, enter virtual machines.
  • Select virtual machines under services. virtua Machine
  • Select the guided-project-vm virtual machine.
  • From the menu pane, select Tags.
    select Tags

  • On one line for Name enter Department and for Value enter Customer Service

  • On the next line, for Name enter Purpose and for Value enter FTP Server.

  • Select Apply
    tags done

Step 2:Add a resource lock to a VM

  • If necessary, expand the Settings submenu.
  • Select Locks.
    Locks

  • Select + Add.

  • For the name, enter VM-delete-lock.

  • For the Lock type, select Delete.

  • You may enter a note to help remind you why you created the lock.

  • Select OK.
    add locks

  • Select Home to return to the Azure portal home page

Step 3:Add tags to network resources

  • From the Azure portal home page, in the search box, enter virtual networks.
  • Select virtual networks under services. irtual network
  • Select the guided-project-vnet network.
  • From the menu pane, select Tags.
    vnet tags

  • For the Name select Department.

  • For the Value enter IT.

  • Select Apply.
    Apply Tags

Conclusion

Microsoft Azure empowers organizations to build scalable, secure, and intelligent cloud solutions with ease. By implementing tags and locks in Azure, you're not only organizing resources for better visibility and cost management—you’re also safeguarding critical assets from accidental modifications or deletions.

Through this step-by-step guide, you've learned how to:

Assign descriptive tags to virtual machines and network resources

Apply resource locks for protection against unwanted changes

These practices form the backbone of effective governance in cloud environments. Whether you're supporting IT operations, streamlining service management, or securing infrastructure, mastering tags and locks is an essential part of a well-managed Azure ecosystem.

So go ahead—tag smart, lock wisely, and manage confidently in the cloud.

Top comments (0)