DEV Community

Cover image for Azure Management Tasks #Part 5: How Improve Governance and Protection

Azure Management Tasks #Part 5: How Improve Governance and Protection

Table of Contents


Introduction

If you’ve completed the previous parts of this series, you’ve managed to add a subnet to a virtual network, made changes to a virtual machine, and worked with an Azure storage account. This part of the series focuses on working with tags and resource locks to help protect, manage, and monitor your environment. We will add a pair of tags to the VM, where one shows the purpose and the other shows the department.


Prerequisite

To successfully complete the tasks in this project, you need to

  • Login to Microsoft Azure portal.
  • Complete the previous articles in the series.
  • Basic understanding of tags and locks.

Step 1: Add tags to a virtual machine.

  • From the Azure portal home page, in the search box, enter virtual machines.
  • Select virtual machines under services.
  • Select the management-tasks-vm virtual machine.

Screenshot of the VM.

  • From the menu pane, 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.
  • Select Home to return to the Azure portal home page.

Screenshot of us adding a pair of tags to the VM.


Step 2: Add a resource lock to a VM.

  • If necessary, expand the Settings submenu.
  • Select 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.

Screenshot of us adding a lock to the VM.


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.
  • Select the management-tasks-vnet network.

Screenshot of the Vnet.

  • From the menu pane, select Tags.

    Note: Notice that now you can select an existing tag to apply or add a new tag. You can also select just the name or value and apply create something new in the other field.

  • For the Name select Department.

  • For the Value enter IT.

  • Select Apply.

Screenshot of us adding a tag to the VNet.


Conclusion

Congratulations! You've successfully improved protection and governance of your resources by adding tags (for grouping and organizing) and locks (for protection against unauthorized access and deletion). Now let's move on to the last part of this series, where we learn how to remove all resources to avoid unexpected cost.


Thank you for reading my blog. 😊😊

If you need further assistance, feel free to reach out in the comments or hit me up on Twitter. You can also follow me on GitHub. My DMs are open, and love discussions on cloud topics as always! 😁

Oluwatofunmi Emmanuel Oluwaloseyi

Top comments (0)