> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/azure-custom-role-administering-resource-locks-not-assigned.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure Custom Role Administering Resource Locks not assigned

### Synopsis

| Field               | Value                                                       |
| ------------------- | ----------------------------------------------------------- |
| Rule Type           | Detection                                                   |
| Finding Type        | Azure Custom Role Administering Resource Locks not assigned |
| Finding ID          | 60000496                                                    |
| Generates a Finding | This detection rule also generates a finding                |
| Severity            | Medium                                                      |
| Category            | CONFIGURATION                                               |
| Cloud Providers     | AZURE                                                       |
| Platform Module     | CSPM                                                        |
| Asset Types         | AZURE\_ROLE\_ASSIGNMENT                                     |

### Description

Custom roles specifically designed for administering resource locks remain unassigned to any user, hindering effective protection against unintended resource modifications or deletions.

Azure Resource Locks prevent unintended modification or deletion of critical resources. When custom roles designed to administer these locks are not assigned to appropriate users, the ability to effectively manage and enforce these crucial protections is compromised. This misconfiguration increases the risk of accidental or malicious resource changes, potentially allowing an attacker with elevated privileges to bypass safeguards and compromise resource integrity.

The impact of this misconfiguration can range from data loss and service disruption to increased operational costs for incident response and recovery. Establishing and assigning custom roles for 'Resource Locks' ensures a clear separation of duties. This best practice guarantees that only authorized personnel can manage critical resource protections, preventing unauthorized changes and strengthening the overall security posture.

To mitigate this misconfiguration, create a custom role specifically for administering 'Resource Locks'. Assign this role to the minimal necessary set of users or security principals responsible for managing resource protection. This proactive approach ensures effective governance over critical resource safeguards.

### Remediation

1. Log in to the Azure portal
2. Navigate to 'Subscriptions', and select the subscription from the list where you want the custom role
3. Select 'Access control (IAM)'

   If already custom role has been created for resource locks, then go to step 16
4. Click on 'Add' from top tab and select 'Add custom role'
5. Enter 'Resource Lock Administrator' in the 'Custom role name' field
6. Enter 'Can Administer Resource Locks' in the 'Description' field
7. Select 'Start from scratch' for 'Baseline permissions'
8. Click 'Next'
9. Select 'Add permissions' from top 'Permissions' tab
10. Search for 'Microsoft.Authorization/locks' in the 'Search for a permission' box
11. Select 'Microsoft.Authorization'
12. Click on 'Permission' checkbox to select all permissions
13. Click on 'Add'
14. Click 'Review+create'
15. Click 'Create' to create custom role for resource locks
16. In 'Access control (IAM)' select 'Add role assignment'
17. Select the custom role created above from 'Role' drop down
18. Select 'User, group, or service principal' from 'Assign access to' drop down
19. Search for user to assign the custom role in 'Select' field
20. Click on 'Save'


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/azure-custom-role-administering-resource-locks-not-assigned.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
