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

# Azure Virtual Desktop session host is not configured with managed identity

### Synopsis

| Field               | Value                                                                      |
| ------------------- | -------------------------------------------------------------------------- |
| Rule Type           | Detection                                                                  |
| Finding Type        | Azure Virtual Desktop session host is not configured with managed identity |
| Finding ID          | 60000678                                                                   |
| Generates a Finding | This detection rule also generates a finding                               |
| Severity            | Medium                                                                     |
| Category            | CONFIGURATION                                                              |
| Cloud Providers     | AZURE                                                                      |
| Platform Module     | CSPM                                                                       |
| Asset Types         | AZURE\_VIRTUAL\_MACHINE                                                    |

### Description

Azure Virtual Desktop session hosts lacking managed identities present a significant security risk. Improper configuration exposes sensitive credentials, increasing the attack surface and the potential for unauthorized access.

Azure Virtual Machines, specifically Virtual Desktop session hosts, rely on authentication for accessing various services. Without a managed identity, credentials are often hardcoded, increasing the risk of compromise if an attacker gains access to the host. This misconfiguration leaves the system vulnerable to credential theft and subsequent unauthorized access to cloud resources.

The impact of this misconfiguration is potentially widespread. Attackers could leverage stolen credentials to move laterally within the cloud environment, potentially accessing sensitive data or disrupting services. Implementing managed identities eliminates the need for managing and securing these credentials, significantly reducing the attack surface and improving overall security posture.

To mitigate this risk, configure a managed identity for each Azure Virtual Desktop session host. Regularly review and audit the assigned permissions to ensure they are least privilege. Employ strong monitoring and alerting mechanisms to detect any suspicious activity related to these virtual machines.

### Remediation

1. Log in to the Azure portal
2. Navigate to Virtual machines dashboard
3. Click on the reported Virtual machine
4. Under Setting section, Click on 'Identity'
5. Configure either 'System assigned' or 'User assigned' managed identity based on your requirement.
6. 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-virtual-desktop-session-host-is-not-configured-with-managed-identity.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.
