Support managed-identity authentication to Azure Artifacts during AML environment builds
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Active
- Tech stack
- azure, python
- Domain
- authentication, cloud, security
Research direction
No repository files, tests, or entry points are identified. Start by locating the AML-managed environment-build service and the existing python_feed credential flow, then determine whether this repository owns the required change. Done means Azure Artifacts Python feeds can use a configured user-assigned managed identity during AML-managed Conda/pip builds, with actionable permission errors and existing credential authentication preserved.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe.
We use private Python packages hosted in Azure Artifacts. Developers update dependencies locally and submit Azure Machine Learning jobs directly from their machines, relying on AML to build and cache the required environments.
The documented AML python_feed connection supports PAT or username/password authentication, but not managed identity. This requires recurring renewal of a user-owned PAT and updates to the corresponding AML feed connections.
This creates operational overhead, a dependency on an employee’s credentials, and a risk of environment-build failures when credentials expire or are revoked.
Describe the solution you'd like
Support a configured user-assigned managed identity for Azure Artifacts authentication during AML-managed Conda/pip environment builds.
After one-time identity and feed-permission configuration, the developer workflow should remain:
Edit dependencies locally → submit an AML job → AML builds/caches the environment → run.
AML should acquire and renew short-lived Microsoft Entra tokens as needed, without exposing credentials in build logs or persisting them in the resulting image. Missing permissions should produce actionable errors.
This does not assume that the submitting user’s credentials or the job’s compute identity are available during environment builds. An explicitly configured environment-build identity would be appropriate.
The initial scope could be limited to Azure Artifacts Python feeds and AML-managed builds using a Conda specification with pip dependencies. Arbitrary Dockerfile builds and other package repositories can remain separate requests. Existing credential-based connections should continue to work.
Describe alternatives you've considered
- CI-built images: Useful for production releases, but requiring a separate image-build pipeline for every dependency change adds friction to interactive development. We want to preserve AML’s existing remote environment-build workflow.
- Bundling wheels at submission: Requires additional tooling, dependency resolution, and platform compatibility handling, particularly when submitting from Windows to Linux compute.
- Installing dependencies at job startup: Moves installation outside AML’s normal environment-build/cache mechanism and requires custom authentication and bootstrap logic.
- Automating PAT rotation: Reduces manual work but retains user-owned credentials and credential-renewal/distribution infrastructure.
- Longer-lived PATs: Reduces renewal frequency, where policy permits, but does not eliminate the credential-management problem or dependency on an employee’s account.
Additional context
Authorization is an important part of this request. Users who can submit arbitrary builds using an identity could potentially retrieve packages accessible to it. The feature should explicitly control who may configure and use the build identity, require narrowly scoped feed permissions, and document that trust boundary. It should not implicitly grant every workspace user access to a privileged identity.
Related discussions:
- #29942 — Private-package support in SDK v2 and the added complexity of separate Docker builds.
- #35036 — Private-feed authentication in Docker build contexts. Related, but arbitrary Dockerfile support is outside this request’s initial scope.
This request specifically concerns replacing manually maintained feed credentials with managed-identity authentication, while preserving local job submission and AML-managed environment builds.
Is this supported through an existing mechanism, or already tracked on the roadmap? If this requires changes to the AML environment-build service rather than the SDK, please route the request to the appropriate service owners.
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 3.4k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 189
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/azure-sdk-for-python
-
needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Azure/azure-sdk-for-python#50155 · 1 reaction ·
Maintainers usually reply within 1 day
-
[Teams Chatbot]: next-mypy install 404s should point to CFS auth or --pypi workaroundPossibly taken @jianingwang123 claimed this 16 days ago. Openneeds-triage
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
Azure/azure-sdk-for-python#49886 · 1 comment · 2 reactions · 2 assignees ·
Maintainers usually reply within 1 day
-
[AI Projects] AIProjectInstrumentor: non-streamed responses.create raises AttributeError ('NonRecordingSpan' object has no attribute 'attributes') when the span is not sampledPossibly taken @14H034160212 claimed this 19 days ago. OpenAI Projects Client customer-reported question
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Azure/azure-sdk-for-python#49854 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
azure-eventhub migration guide: legacy checkpoint sample writes "None" metadata for partitions that were never checkpointedPossibly taken @hidingmyname claimed this 27 days ago. OpenClient customer-reported Event Hubs needs-team-attention question Service Attention
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Azure/azure-sdk-for-python#49723 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
Scheduled test pipelines fail at the Analyze_Test stage due to date formattingPossibly taken A pull request linked to this issue is open or already merged. OpenEngSys
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Azure/azure-sdk-for-python#49614 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
All issues in Azure/azure-sdk-for-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
vllm-project/vllm#70030 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
TigreGotico/tugaphone#408 ·
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
gke-labs/kube-agents#7308 ·
Maintainers usually reply within 1 day
-
t: bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 3 days
-
chore
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
lugassawan/swe-workbench#841 ·