More Info:

Ensure there is a custom IAM role assigned to manage resource locking within each Microsoft Azure subscription. Azure resource locking is a powerful protection mechanism that can prevent inadvertent modification or deletion of resources running within a Azure cloud account

Risk Level

Medium

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the “Resource Locking Administrator Role” misconfiguration in Azure using the Azure console, follow these steps:

  1. Log in to the Azure portal (https://portal.azure.com/)
  2. Click on “Azure Active Directory” from the left-hand menu.
  3. Click on “Roles and administrators” under “Security”.
  4. Click on “Add role assignment”.
  5. In the “Add role assignment” blade, select “Resource Lock Contributor” from the “Role” drop-down menu.
  6. In the “Select” field, search for the user or group that needs the Resource Lock Contributor role.
  7. Select the user or group from the search results.
  8. Click on “Save” to assign the Resource Lock Contributor role to the selected user or group.

By assigning the Resource Lock Contributor role to the appropriate user or group, you can ensure that they have the necessary permissions to create and manage resource locks in Azure. This will help prevent accidental deletion or modification of critical resources.