More Info:

Ensure that all your mission critical Azure cloud resources have resource locks enabled so that certain users are not be able to delete or modify these resources in order to help prevent accidental and malicious changes or deletion.

Risk Level

High

Address

Security

Compliance Standards

CISAZURE, CBP

Triage and Remediation

Remediation

To remediate the misconfiguration “Enable Azure Resource Locks” for Azure using the Azure console, you can follow these step-by-step instructions:

  1. Log in to the Azure portal (https://portal.azure.com/).

  2. Navigate to the resource group that you want to apply the lock to.

  3. Select the resource group and click on “Locks” under the “Settings” section in the left-hand menu.

  4. Click on the ”+ Add” button to create a new lock.

  5. In the “Add lock” panel, provide a name for the lock and select the lock type as “CanNotDelete” from the dropdown menu.

  6. Optionally, you can add a description for the lock.

  7. Click on the “OK” button to create the lock.

  8. The lock is now applied to the resource group, and it will prevent any user from accidentally deleting any resources within the group.

  9. Repeat the above steps for all the resource groups that require a lock.

By following these steps, you can remediate the misconfiguration “Enable Azure Resource Locks” for Azure using the Azure console.