AI Cloud Architect

Claude Code Meets Microsoft Foundry: From Terminal to Your First AI-Assisted Coding Session

MicrosoftHow-to by SapnaGiddegowdaMicrosoft Foundry Blog (Tech Community)

Claude Code + Microsoft Foundry: a local helper, an Azure connection Imagine asking a coding assistant to explain an unfamiliar repository, trace a bug, or suggest a change without leaving your terminal. Now imagine connecting that experience to a model deployment accessed through your organization's Azure identity and permissions. That is the idea behind using Claude Code with Microsoft Foundry. The easiest way to understand the setup is to separate the helper from the gate. Claude Code is…

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Claude Code can be pointed at a Claude deployment in Microsoft Foundry, using a resource name, a deployment name and Entra ID or a Foundry key, with a small test prompt to verify the path.

Who it is for

Developers and platform admins on Azure who want Claude Code to call a Claude deployment governed by their Azure identity and permissions.

Key points

  • Set CLAUDE_CODE_USE_FOUNDRY=1 and ANTHROPIC_FOUNDRY_RESOURCE to the resource name only, not a URL.
  • Entra ID is the recommended authentication path; the Azure CLI session is used.
  • Haiku and Opus deployments must be configured separately if the workflow uses them.

The same at other vendors