Skip to main content

🛡️ Azure Subscription Resource Lock Administrator Custom Role does not exist🟢⚪

  • Contextual name: 🛡️ Resource Lock Administrator Custom Role does not exist🟢⚪
  • ID: /ce/ca/azure/subscription/resource-lock-administrator-custom-role
  • Tags:
  • Policy Type: COMPLIANCE_POLICY
  • Policy Categories: SECURITY

Stats​

not available

Similar Policies​

Description​

Open File

Description​

Resource locking is a powerful protection mechanism that can prevent inadvertent modification or deletion of resources within Azure subscriptions or Resource Groups and is a recommended NIST configuration.

Rationale​

Given the resource lock functionality is outside of standard Role Based Access Control (RBAC), it is prudent to create a resource lock administrator role to prevent inadvertent unlocking of resources.

Impact​

By adding this role, specific permissions may be granted for managing just resource locks rather than needing to provide the wide Owner or User Access Administrator role, reducing the risk of the user being able to do unintentional damage.

Audit​

From Azure Portal​
  1. In the Azure portal, open a subscription or resource group where you want to view assigned roles.
  2. Select Access control (IAM).
  3. Select Roles.
  4. Click Type : All.
  5. Click to view the drop-down menu.
  6. Select Custom role.
  7. Click View in the Details column of a custom role.
  8. Review the role permissions.

... see more

Remediation​

Open File

Remediation​

From Azure Portal​

  1. In the Azure portal, open a subscription or resource group where you want the custom role to be assigned.
  2. Select Access control (IAM).
  3. Click Add.
  4. Select Add custom role.
  5. In the Custom Role Name field enter Resource Lock Administrator.
  6. In the Description field enter Can Administer Resource Locks.
  7. For Baseline permissions, select Start from scratch.
  8. Select Next.
  9. Click Add permissions.
  10. In the Search for a permission box, type Microsoft.Authorization/locks.
  11. Click on the result.
  12. Check the box next to Permission.
  13. Click Add.
  14. Click Review + create.
  15. Click Create.
  16. Click OK.
  17. Click + Add.
  18. Click Add role assignment.
  19. In the Search by role name, description, permission, or ID box, type Resource Lock Administrator.
  20. Select the role.
  21. Click Next.
  22. Click + Select members.
  23. Select appropriate members.
  24. Click Select.
  25. Click Review + assign.
  26. Click Review + assign again.
  27. Repeat steps 1-26 for each subscription or resource group requiring remediation.

... see more

policy.yaml​

Open File

Linked Framework Sections​

SectionSub SectionsInternal RulesPoliciesFlagsCompliance
💼 CIS Azure v5.0.0 → 💼 5.24 Ensure that a custom role is assigned permissions for administering resource locks (Manual)1no data
💼 CIS Azure v6.0.0 → 💼 5.5 Ensure that a Custom Role is Assigned Permissions for Administering Resource Locks (Manual)1no data
💼 Cloudaware Framework → 💼 Role-Based Access Control (RBAC) Management29no data