Azure ML Workspace Managed Identity Git Access
Short answer
D Configure the workspace to use a managed identity for repository access.
Question
The team must ensure that access to the repository is granted without requiring each developer to store personal access tokens on their machines.
Repository access must be secure and centrally managed to reduce credential spread.
You need to enable secure access between an Azure Machine Learning workspace and the repository.
What should you do?
Key Takeaways
Managed identities eliminate the need for storing secrets like PATs locally by allowing the service itself to authenticate via Azure AD.
Learn how to configure Azure Machine Learning workspace managed identity for secure, centralized Git repository access without local tokens.
Common mistake: Choosing to share a deploy key (A) seems central but fails because it gives all developers direct access to the secret, violating least-privilege and audit principles.
Expert Analysis
The core challenge is securing access to a hosted Git repository while eliminating the need for individual developers to manage personal credentials. The requirement explicitly states that access must be "centrally managed" and reduce "credential spread," which directly conflicts with solutions involving shared secrets or per-user tokens.
Option D, configuring the workspace to use a managed identity, is the correct architectural pattern for Azure Machine Learning. A managed identity provides an automatically managed identity in Microsoft Entra ID (formerly Azure AD) that can be used by the workspace to authenticate to other services, including Azure Repos or external Git hosts supported by Azure ML. By assigning the workspace's managed identity the appropriate permissions on the repository, the authentication happens seamlessly at the platform level. Developers do not need to store Personal Access Tokens (PATs) locally, nor do they need to handle credential injection during pipeline runs.
Option A suggests sharing a deploy key. While this centralizes the secret, it violates security best practices because every developer has access to the same private key, making audit trails difficult and increasing risk if any single machine is compromised. It does not meet the "secure and centrally managed" criteria as well as IAM-based solutions.
Option B involves storing a PAT in a pipeline variable. This still requires an initial token generation and management step, and while variables can be encrypted, it introduces a static secret into the pipeline definition, which is less secure than ephemeral, identity-based authentication.
Option C requires local authentication before every run, which creates friction for developers and increases the likelihood of credential leakage on local machines, directly contradicting the goal of reducing credential spread.
Therefore, leveraging the workspace's managed identity is the only method that fully satisfies the requirements for centralized, secure, and credential-free access.
Official Reference
https://learn.microsoft.com/en-us/azure/machine-learning/how-to-setup-authentication
This link opens the official vendor documentation in a new tab.
Exam Strategy
When questions emphasize 'centralized management' and 'reducing credential spread' for Azure PaaS resources, always look for Managed Identity or Service Principals over shared keys or local tokens. Verify that the resource being authenticated (e.g., Workspace) supports system-assigned managed identities for external integrations like Git.
Frequently Asked Questions
Why is a managed identity better than a pipeline variable for Git access?
Does Azure ML support managed identity for GitHub specifically?
Community Votes
100% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 2 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 2
-
PurpleBlue 👍 1 Answered DA managed identity assigned to the Azure Machine Learning workspace allows the workspace itself to authenticate to the Git repository (or other Azure resources) without any developer needing to generate, store, or manage a PAT locally
-
exam_upskill 👍 1 Answered DD. Configure the workspace to use a managed identity for repository access.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.