> 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-instance-is-not-configured-with-virtual-network.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure Container Instance is not configured with virtual network

### Synopsis

| Field               | Value                                                           |
| ------------------- | --------------------------------------------------------------- |
| Rule Type           | Detection                                                       |
| Finding Type        | Azure Container Instance is not configured with virtual network |
| Finding ID          | 60000602                                                        |
| Generates a Finding | This detection rule also generates a finding                    |
| Severity            | Medium                                                          |
| Category            | CONFIGURATION                                                   |
| Cloud Providers     | AZURE                                                           |
| Platform Module     | CSPM                                                            |
| Asset Types         | AZURE\_CONTAINER\_INSTANCES\_CONTAINER\_GROUP                   |
| ATT\&CK Tactic      | TA0112 (TA0112)                                                 |
| ATT\&CK Technique   | T1685 (T1685)                                                   |

### Description

Azure Container Instances (ACI) lacking virtual network configuration expose containers directly to the internet, creating a significant security risk. This misconfiguration allows untrusted IPs to access containers without proper network segmentation.

ACI deployments should always utilize a virtual network. Without this, containers are publicly accessible, bypassing network security controls like firewalls and network access lists. Attackers could exploit this to gain unauthorized access, potentially leading to data breaches or container compromise.

The impact of this misconfiguration includes increased attack surface and exposure to malicious actors. By leveraging a virtual network, organizations can enforce network policies, isolate containers from untrusted networks, and enhance overall security posture. This best practice minimizes the risk of unauthorized access and improves the security of ACI deployments.

To remediate this, ensure all ACI deployments are configured within a virtual network. Restrict inbound and outbound network traffic using network security groups. Regularly review and update network configurations to maintain a strong security posture. Employ a robust security information and event management (SIEM) system to detect suspicious activity.

### Remediation

**Manual steps:**

Azure Container Instances Container Group - Manual remediation steps:

Virtual network can only be configured at the time of container instance creation. Hence, it is suggested to delete an existing container instance having not configured with virtual network and create a new container instance having virtual network configured with secure values.

Note: Backup or migrate data from the container instance before deleting it.

To create a Container Instance within a virtual network; follow below URL:

<https://docs.microsoft.com/en-us/azure/container-instances/container-instances-vnet>

To delete a reported Container instance; follow below URL:

<https://docs.microsoft.com/en-us/azure/container-instances/container-instances-quickstart-portal#clean-up-resources>


---

# 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-instance-is-not-configured-with-virtual-network.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.
