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

# Azure Machine Learning workspace not configured with user-assigned managed identity

### Synopsis

| Field               | Value                                                                               |
| ------------------- | ----------------------------------------------------------------------------------- |
| Rule Type           | Detection                                                                           |
| Finding Type        | Azure Machine Learning workspace not configured with user-assigned managed identity |
| Finding ID          | 60001470                                                                            |
| Generates a Finding | This detection rule also generates a finding                                        |
| Severity            | Medium                                                                              |
| Category            | CONFIGURATION                                                                       |
| Cloud Providers     | AZURE                                                                               |
| Platform Module     | CSPM                                                                                |
| Asset Types         | AZURE\_MACHINE\_LEARNING\_WORKSPACE                                                 |
| ATT\&CK Tactic      | TA0006 (TA0006)                                                                     |
| ATT\&CK Technique   | T1552 (T1552)                                                                       |

### Description

Azure Machine Learning workspaces lacking user-assigned managed identities present a security risk. Using only system-assigned identities limits control and increases the risk of access disruption upon workspace deletion.

Azure Machine Learning workspaces rely on managed identities to access various resources. System-assigned identities, while convenient, are intrinsically linked to the workspace's lifecycle. Their deletion alongside the workspace disrupts access, hindering operations and potentially causing service outages. Untrusted applications accessing resources via the system-assigned identity pose a significant security threat.

Failure to utilize user-assigned managed identities increases the impact of workspace deletion or compromise. Recovering access to linked resources becomes complex and time-consuming. A user-assigned identity allows independent management, enabling granular control and minimizing the blast radius of a security incident.

Implement user-assigned managed identities for all Azure Machine Learning workspaces. Regularly review and update the permissions assigned to these identities. This ensures access control aligns with the principle of least privilege, minimizing the impact of potential misconfigurations and enhancing the security posture of your Azure environment.

### Remediation

**Manual steps:**

Azure Machine Learning Workspace - Manual remediation steps:

Method 1: Updating an Existing Workspace

1. Once an Azure Machine Learning workspace is created with a System-Managed Identity, you cannot change it to use only a User-Assigned Managed Identity. You can update the workspace to use both System-Managed and User-Assigned Managed Identities.
2. For detailed instructions on how to configure this, visit the following URL: <https://learn.microsoft.com/en-us/azure/machine-learning/how-to-identity-based-service-authentication?view=azureml-api-2\\&tabs=cli#add-a-user-assigned-managed-identity-to-a-workspace-in-addition-to-a-system-assigned-identity>

or

Method 2: Deleting the Existing Workspace and Creating a New Workspace

1. To use only a User-Assigned Managed Identity, delete the existing workspace.
2. Create a new Azure Machine Learning workspace. During the setup, select 'User Assigned Identity' under the 'Identity' tab to ensure it exclusively uses a User-Assigned Managed Identity from the start.


---

# 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-machine-learning-workspace-not-configured-with-user-assigned-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.
