> 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-container-registry-does-not-use-a-dedicated-resource-group.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure Container Registry does not use a dedicated resource group

### Synopsis

| Field               | Value                                                            |
| ------------------- | ---------------------------------------------------------------- |
| Rule Type           | Detection                                                        |
| Finding Type        | Azure Container Registry does not use a dedicated resource group |
| Finding ID          | 60000251                                                         |
| Generates a Finding | This detection rule also generates a finding                     |
| Severity            | Low                                                              |
| Category            | CONFIGURATION                                                    |
| Cloud Providers     | AZURE                                                            |
| Platform Module     | CSPM                                                             |
| Asset Types         | CONTAINER\_REGISTRY                                              |

### Description

Azure Container Registry (ACR) residing within resource groups containing other resources face accidental deletion risks. This misconfiguration increases the likelihood of data loss and service disruption.

Azure Container Registry resources should be deployed in dedicated resource groups. Sharing a resource group with other resources increases the risk of accidental deletion; deleting the shared resource group would remove the ACR and all its container images. An attacker could exploit this by gaining control of a resource within the shared resource group and subsequently deleting the ACR.

The impact of this misconfiguration is the potential loss of all container images stored in the affected ACR. Maintaining a dedicated resource group for each ACR isolates it from other resources, preventing accidental deletion and minimizing the impact of potential attacks. This practice improves operational resilience and reduces the risk of significant service disruptions.

To mitigate this risk, ensure each Azure Container Registry is deployed in its own dedicated resource group. Regularly review resource group memberships to identify and rectify any ACRs sharing resource groups with other resources. Implement strong access controls to prevent unauthorized deletion of resource groups.

### Remediation

To remediate this alert, move all non-ACR resources to another resource group. To move resources to another resource group follow below URL: <https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-resource-group-and-subscription>


---

# 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-container-registry-does-not-use-a-dedicated-resource-group.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.
