> 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-workspace-diagnostic-log-is-disabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure Virtual Desktop workspace diagnostic log is disabled

### Synopsis

| Field               | Value                                                      |
| ------------------- | ---------------------------------------------------------- |
| Rule Type           | Detection                                                  |
| Finding Type        | Azure Virtual Desktop workspace diagnostic log is disabled |
| Finding ID          | 60000996                                                   |
| Generates a Finding | This detection rule also generates a finding               |
| Severity            | Informational                                              |
| Category            | CONFIGURATION                                              |
| Cloud Providers     | AZURE                                                      |
| Platform Module     | CSPM                                                       |
| Asset Types         | AZURE\_VIRTUAL\_DESKTOP\_WORKSPACE                         |

### Description

Disabled diagnostic logging on Azure Virtual Desktop workspaces presents a significant security risk. This misconfiguration hinders the ability to monitor activity, detect anomalies, and respond effectively to security incidents.

Azure Virtual Desktop diagnostic logs provide crucial information for troubleshooting and security monitoring of virtual desktops and applications. Disabling these logs prevents detection of malicious activity such as unauthorized access, data exfiltration, or malware infections. Lack of logging makes incident response and remediation significantly more difficult, increasing the potential impact of a successful attack.

The impact of this misconfiguration includes reduced visibility into workspace activity, impaired incident response capabilities, and difficulty meeting compliance requirements. Enabling diagnostic logs provides critical audit trails, enhancing security posture and facilitating efficient troubleshooting. This best practice ensures that suspicious behavior can be quickly identified and addressed.

To mitigate this risk, enable diagnostic logs for all Azure Virtual Desktop workspaces. Configure log storage appropriately, ensuring sufficient retention periods and appropriate access controls.

### Remediation

1. Log in to Azure Portal and search for 'Azure Virtual Desktop'
2. Select 'Azure Virtual Desktop'
3. Under 'Manage' select 'Workspaces'
4. Select the reported Workspace
5. Under 'Monitoring' select 'Diagnostic settings'
6. Under Diagnostic settings tab. Click on '+ Add diagnostic setting' to create a new Diagnostic Setting
7. Specify a 'Diagnostic settings name'
8. Under section 'Categories', select the type of log that you want to enable
9. Under section 'Destination details'
   1. If you select 'Send to Log Analytics', select the 'Subscription' and 'Log Analytics workspace'
   2. If you set 'Archive to storage account', select the 'Subscription' and 'Storage account'
   3. If you set 'Stream to an event hub', select the 'Subscription', 'Event hub namespace', 'Event hub name' and set the 'Event hub policy name'
10. 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-workspace-diagnostic-log-is-disabled.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.
