Answer: You configure Azure Managed Identity with BYOK in the GitHub Copilot SDK by supplying a bearer token provider callback that uses Azure Identity credentials to request tokens for the scope "https://ai.azure.com/.default", and by setting the provider type to "openai" with the Foundry base URL and wire API "responses". Status: Confirmed Entry: tool/github-copilot/integrations/azure-managed-identity-byok-setup Revision: 3 Digest: sha256:7f3f7cb407c228a6 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:28:51Z Last changed: 2026-11-19T13:03:00Z (credential environment variable: — → AZURE_TOKEN_CREDENTIALS) Last verified: 2026-11-20T13:09:23Z Next check: 2026-11-21T13:09:23Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of token scope | https://ai.azure.com/.default | [1] | 2026-11-20 provider type | openai | [1] | 2026-11-20 wire API | responses | [1] | 2026-11-20 base URL environment variable | FOUNDRY_RESOURCE_URL | [1] | 2026-11-20 model | gpt-5.5 | [1] | 2026-11-20 credential environment variable | AZURE_TOKEN_CREDENTIALS | [1] | 2026-11-20 Sources: [1] GitHub. "Azure Managed Identity with BYOK - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-sdk/setup/azure-managed-identity Role: primary. Accessed: 2026-11-20T13:09:23Z Quote: "new TokenRequestContext([ "https://ai.azure.com/.default" ])" (Supports: token scope) Quote: "Type = "openai"" (Supports: provider type) Quote: "WireApi = "responses"" (Supports: wire API) Quote: "string foundryUrl = Environment.GetEnvironmentVariable( "FOUNDRY_RESOURCE_URL" )!" (Supports: base URL environment variable) Quote: "Model = "gpt-5.5"" (Supports: model) Quote: "requiredEnvVars : [ "AZURE_TOKEN_CREDENTIALS" ]" (Supports: credential environment variable) Snapshot SHA-256: 2d7fc2287c224e3de1aa1db66a0fa57ee6c2c8df45d39b21637b15657287248e (captured 2026-11-18T13:04:41Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:04:41Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:09:23Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:09:23Z Last attempt: 2026-11-20T13:09:23Z Notes and limitations: Extracted automatically from a single official source (section "Use a token provider callback"). Related: https://latestn.com/tool/github-copilot/integrations/chat-in-windows-terminal How do I ask GitHub Copilot questions in Windows Terminal? https://latestn.com/tool/github-copilot/integrations/cli-actions-authentication-billing How do I authenticate GitHub Copilot CLI in GitHub Actions and what billing options are available? https://latestn.com/tool/github-copilot/integrations/cloud-agent-github-cli How do I use the GitHub Copilot cloud agent from the GitHub CLI? https://latestn.com/tool/github-copilot/integrations/automate-with-actions How do I automate tasks with GitHub Copilot CLI and GitHub Actions? https://latestn.com/tool/github-copilot/integrations/azure-boards-prerequisites What are the prerequisites for integrating GitHub Copilot cloud agent with Azure Boards? https://latestn.com/tool/github-copilot/integrations/azure-devops-prerequisites What are the prerequisites for using the Azure DevOps integration in the GitHub Copilot app? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:03:00Z | changed | credential environment variable: — → AZURE_TOKEN_CREDENTIALS | [1] 2026-11-19T13:03:00Z | changed | base URL environment variable: — → FOUNDRY_RESOURCE_URL | [1] 2026-11-19T13:03:00Z | changed | credential: DefaultAzureCredential → — | [1] 2026-11-19T13:03:00Z | changed | environment variable: FOUNDRY_RESOURCE_URL → — | [1] 2026-11-19T13:03:00Z | changed | base URL suffix: /openai/v1/ → — | [1] 2026-11-16T12:53:25Z | changed | credential: — → DefaultAzureCredential | [1] 2026-11-16T12:53:25Z | changed | environment variable: — → FOUNDRY_RESOURCE_URL | [1] 2026-11-16T12:53:25Z | changed | base URL suffix: — → /openai/v1/ | [1] 2026-11-16T12:53:25Z | changed | base URL environment variable: FOUNDRY_RESOURCE_URL → — | [1] 2026-11-16T12:53:25Z | changed | approach: Use a token provider callback → — | [1] 2026-11-13T03:28:51Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/integrations/azure-managed-identity-byok-setup/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/integrations/azure-managed-identity-byok-setup POST: https://latestn.com/dispute/tool/github-copilot/integrations/azure-managed-identity-byok-setup with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/integrations/azure-managed-identity-byok-setup?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure Azure Managed Identity with BYOK in the GitHub Copilot SDK? Revision 3, last verified 2026-11-20T13:09:23Z. https://latestn.com/tool/github-copilot/integrations/azure-managed-identity-byok-setup (accessed 2026-11-21T09:59:45Z). @misc{LatestN_tool_github_copilot_integrations_azure_managed_identity_byok_setup_r3, title = {How do I configure Azure Managed Identity with BYOK in the GitHub Copilot SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/integrations/azure-managed-identity-byok-setup}}, note = {Revision 3; digest sha256:7f3f7cb407c228a6; last verified 2026-11-20T13:09:23Z; accessed 2026-11-21T09:59:45Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/integrations/azure-managed-identity-byok-setup