[FEATURE] Allow to pick authentication method when using Claude Code and Azure Foundry
Resolved 💬 2 comments Opened Mar 16, 2026 by pkaluckimirion Closed Apr 14, 2026
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Currently when using Claude Code with Azure Foundry and RBAC role based access Claude Code seems to strictly follow DefaultAzureCredential priority chain. This is problematic when running in environments with multiple identities for example Azure VM with user az login, system assigned identity on the VM and User Assigned Identity.
Proposed Solution
Either prioritize session that was authenticated in the shell where claude code is running or add option to pick which identity to use for authentication.
Alternative Solutions
_No response_
Priority
Medium - Would be very helpful
Feature Category
Configuration and settings
Use Case Example
- When using Claude Code with Azure Foundry, use identity that was authenticated using az login instead of defaulting to managed identity present on the system.
Additional Context
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗