copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Managed Identity authentication support for Copilot CLI

Open knetway-us opened this issue 7 months ago • 2 comments

Describe the feature or problem you'd like to solve

Copilot CLI BYOK is not supporting Managed Identity Auth for Azure Foundry Hosted Model.

Proposed solution

While the Copilot CLI supports API key–based access for Azure Foundry models, this approach is suboptimal due to key management overhead and associated secret‑handling risks. Supporting managed authentication would significantly improve enterprise adoption, enabling Foundry‑hosted models to be securely accessed by other Azure resources using managed identities—eliminating the need for explicit secrets and simplifying security operations.

Example prompts or workflows

No response

Additional context

No response

knetway-us avatar Apr 14 '26 15:04 knetway-us

This is supported today. When using Azure BYOK (COPILOT_PROVIDER_TYPE=azure) without an API key or bearer token configured, the CLI falls back to DefaultAzureCredential, which includes Managed Identity among its credential sources. If you believe this isn't resolved, please comment with details and we'll take another look.

examon avatar Apr 22 '26 09:04 examon

Can we update the docs on this: https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/use-byok-models

RussColwell avatar May 26 '26 18:05 RussColwell