Preventing Accidental Deletion with Resource Locks | Scribe

    Preventing Accidental Deletion with Resource Locks

    • Hafeez Baig |
    • 9 steps |
    • 20 seconds
    1

    Sign in into the **Microsoft Azure Portal**

    2

    Type **Virtual Machines** in the search bar and click on the **Virtual machines** to view the Virtual Machines dashboard

    information ordinal icon

    **What is Azure Virtual Machine?** An Azure Virtual Machine is a scalable computing resource provided by Microsoft Azure, enabling users to deploy and manage virtualized instances of operating systems such as Windows or Linux

    information ordinal icon

    Refer to this guide to learn how to create Virtual Machine in Azure\ <https://scribehow.com/shared/Creating_your_first_Virtual_Machine_in_Azure__m7sJfxD7SKOuonRH8SNW2A>

    3

    On the Virtual Machines dashboard, click on the Name **vn-vm** **Note:** You may select any Virtual Machine you would like to resource lock.

    4

    **vn-vm** wizard will open, search and click on the **Locks** option from the left bar

    information ordinal icon

    **What are Locks?**\ \ In Azure, **Locks** are a feature designed to prevent accidental deletion or modification of critical resources. There are two types of locks: a **Read-only lock**, which allows users to read the resource but prevents any modifications or deletions, and a **Delete lock**, which permits modifications but prevents the resource from being deleted. These locks enhance resource protection by ensuring that important resources remain secure and unchanged unless explicitly intended.

    5

    **Locks** wizard will open, click on the **Add** button on the top left side and here you can create a Lock for the Virtual Machine

    6

    To lock the Resource groups, type **Resource groups** in the search bar and click on the **Resource groups**

    information ordinal icon

    **What is a Resource group?** A Resource Group in Azure is a logical container for grouping and managing related resources such as virtual machines and databases. It helps organize resources, apply policies, and manage costs effectively.

    7

    **Resource groups** wizard will open, click on the Name **databases-rg** **Note:** You may select any Resource group you would like to resource lock.

    8

    **databases-rg** wizard will open, search and click on the **Locks** option from the left bar

    9

    **Locks** wizard will open, click on the **Add** button on the top left side and here you can create a Lock for the Resource group

    information ordinal icon

    Congratulations on completing this lab and Understanding Preventing Accidental Deletion with Resource Locks! Good Job!