Tags in Azure are key-value pairs that you assign to Azure resources (like VMs, storage accounts, resource groups, etc.) to organize, categorize, and manage them effectively. A tag is a metadata label in the format.
An Azure lock is a governance feature that helps you prevent accidental deletion or modification of your critical Azure resources, resource groups, or subscriptions. It's a simple but powerful way to protect important infrastructure. It is a setting you apply to a resource, resource group, or subscription to control what operations are allowed. It's enforced regardless of RBAC (role-based access) permissions.
In Azure portal when you’ve managed added a subnet to a virtual network, made changes to a virtual machine, and worked with an Azure storage account. The final set of tasks is to focus around working with tags and resource locks to help manage and monitor your environment. During this exercise you’ll go back into each of the areas you’ve already worked to add tags, locks, or a combination of both.
With the progress so far, the Azure admin hopes that you can wrap a few things up to help with monitoring and protecting resources. They want to know that someone can’t accidentally get rid of the virtual machine that’s running as an FTP server, and they want a quick way to see what department is using resources and the resource’s purpose.
Manage tags and locks on VMs
Adding tags to resources is a quick way to be able to group and organize resources. Tags can be added at different levels, giving you the ability to organize and group resources at a level that makes sense for you.
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.
1.Login to Microsoft Azure at https://portal.azure.com
2.From the Azure portal home page, in the search box, enter virtual machines.
3.Select virtual machines under services. Select the guided-project-vm virtual machine.
4.From the menu pane, select Tags.
5.On one line for Name enter Department and for Value enter Customer Service
6.On the next line, for Name enter Purpose and for Value enter FTP Server
7.Select Apply
While you’re working on the virtual machine, it’s a great time to add a resource lock.
Add a resource lock to a VM
1.Expand the Settings submenu. Select Locks.
2.Select + Add
3.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.
4.Select OK.
Now the VM is protected from deletion and has tags assigned to help track use. Time to move onto the network.
Add tags to network resources
1.Select Home to return to the Azure portal home page. From the Azure portal home page, in the search box, enter virtual networks
2.Select virtual networks under services. Select the guided-project-vnet network
3.From the menu pane, select Tags.
4.For the Name select Department. For the Value enter IT.
5.Select Apply.
Now both the VNet and VM have are organized.
Top comments (1)
Amazing!