In short.
Claude in Microsoft Foundry is a guide for Azure developers connecting applications to Claude, but hosting choices change available features and data handling. It explains Azure resources and deployments, API keys and Microsoft Entra ID, request examples across seven programming languages, and Azure Marketplace billing. Azure-hosted deployments omit several tools available with Anthropic hosting, while some APIs are unavailable throughout Foundry. Actual prices, performance and runtime behavior are not established by this page.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete supplied page at [https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry.md], including hosting options, prerequisites, provisioning, SDK and HTTP examples, authentication, model availability, feature exclusions, billing, migration, monitoring, notices and troubleshooting. Linked pricing, legal, regional availability, lifecycle and feature pages are excluded. Listed capabilities and errors describe the publisher's documented behavior; no software or API requests were executed.
The overview
identity
This Anthropic documentation page explains how to access Claude models through Microsoft Foundry using Azure endpoints and authentication. The source address is [https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry.md].
Its subject is an integration guide covering two hosting options: an Anthropic-operated service on Azure infrastructure and an Anthropic-operated service on Anthropic infrastructure. Both use Foundry deployments and Azure Marketplace billing.
assessment
The guide is useful for teams that want Claude access alongside Azure identity, billing and monitoring. It connects provisioning instructions to concrete API requests and explains compatibility differences that can affect an application's architecture.
Its practical value is configuration guidance. It provides no comparative measurements of model quality, latency, throughput or reliability, and it does not establish the total cost of a workload.
users
Application developers can use the request examples to connect software to a Claude deployment. Azure administrators and platform engineers can use the resource, identity, network and monitoring instructions to plan access and operations.
Beginners need an Azure subscription and sufficient permissions before the examples become usable. Experienced developers should focus on deployment names, hosting-specific tool support, token authentication and the missing Anthropic rate-limit headers.
capabilities
The page lists Opus, Sonnet, Haiku, Fable and limited-availability Mythos models. Anthropic hosting supports all models in its table; Azure hosting supports the specified subset of Opus, Sonnet and Haiku versions. Global Standard deployments are available with either hosting option, while US Data Zone Standard is available with Azure hosting.
The documented context window is one million tokens for the listed models except Opus 4.5, Sonnet 4.5 and Haiku 4.5, which have 200,000-token windows. A context window limits how much material a model can consider in a request; it does not establish answer quality.
Examples cover Python, TypeScript, C#, Go, Java, PHP and Ruby, plus cURL and the ant CLI. Responses follow the standard Claude API format, including a usage object.
Using it
requirements
Required access includes an active Azure subscription, the Foundry portal and an appropriate role on the Foundry resource, such as Foundry User or Cognitive Services User. The chosen model must be available in the resource's Azure region. The first Claude deployment also requires acceptance of the Azure Marketplace offer.
Applications can use an SDK or direct HTTP requests. Microsoft Entra ID authentication requires enabling it for the resource and obtaining a bearer token; Azure Identity libraries support the illustrated SDK patterns. The Azure CLI is optional. Mythos models require Entra ID authentication and have limited availability.
Minimum language runtimes and a complete pinned dependency set are not specified.
mechanism
A Foundry resource holds security and billing configuration. Deployments inside that resource represent the model configurations an application calls. The API's model parameter must contain the deployment name, which can differ from the published model ID.
Requests go to an Azure endpoint such as [https://{resource}.services.ai.azure.com/anthropic/v1/messages]. Authentication uses an api-key or x-api-key header, or an Authorization bearer token. Entra ID allows access management through Azure role-based access control.
Deployment names cannot be changed after creation. Multiple deployments of the same model can manage separate configurations or rate limits. Responses include request-id and apim-request-id identifiers for tracing across Anthropic and Azure systems.
setup
Create or select a Foundry resource in a supported region, then find the Claude model in the catalog and deploy it. Custom settings expose the hosting choice through the model version setting. For models supporting both options, default settings select Azure hosting. Select Global or, for Azure hosting, the US Data Zone scope as appropriate.
After provisioning, obtain the endpoint and credentials from the deployment's Details tab. In the classic portal, deployments appear under Models + endpoints. Private network access can be configured through Azure Virtual Network.
For Python, the page installs anthropic and uses AnthropicFoundry; TypeScript uses @anthropic-ai/foundry-sdk. Foundry SDK clients accept a resource name or, where supported, a full base URL, with those choices mutually exclusive. The C# client constructs its URL from the resource name and does not read ANTHROPIC_FOUNDRY_BASE_URL.
example
The Python API-key example creates an AnthropicFoundry client with a resource name and ANTHROPIC_FOUNDRY_API_KEY, then calls messages.create with model set to claude-opus-5-5, max_tokens set to 1024 and a user message containing Hello!. A custom deployment requires replacing that model value with its deployment name. The 1024 setting is an output-token limit, not a measured response length.
The Entra ID example uses DefaultAzureCredential and get_bearer_token_provider with the scope [https://ai.azure.com/.default], passing the provider as azure_ad_token_provider. The CLI example unsets ANTHROPIC_API_KEY so the CLI sends the bearer token instead. These are documented examples; none was executed.
Assessment & evidence
limitations
Across Foundry, the page lists the Admin API, Advisor tool, Claude Managed Agents, Compliance API, Models API, Message Batches API, server-side fallback and user profile endpoints as unsupported.
Azure-hosted deployments additionally lack code execution, Agent Skills, programmatic tool calling and the Files API. Their web tools support only web_search_20250305 and web_fetch_20250910, without dynamic filtering, response inclusion or cache bypass. Requests using unsupported Azure-hosted features return 400 Bad Request by design.
Foundry omits Anthropic's standard rate-limit response headers. Applications must use Azure monitoring to manage limits. Numeric quotas, service-level guarantees and measured performance are not supplied.
reasoning
The hosting decision should follow the application's required model and tools. An application depending on the Files API or hosted code execution needs Anthropic hosting under the documented feature matrix. A larger context window does not remove those compatibility constraints.
Azure hosting is a plausible fit when its supported models and tools meet the workload's needs and its infrastructure or US inference geography is useful. That conclusion follows from the documented deployment options; it is not evidence of better quality, speed or reliability.
alternatives
The guide's main alternatives are the two Foundry hosting options. Anthropic hosting offers the full listed model catalog and the additional tools unavailable on Azure hosting. Azure hosting offers the documented subset and the US Data Zone deployment option.
Changing hosting requires a new deployment and an application update to its deployment name. Within the same Foundry resource, the endpoint and authentication remain unchanged. A new resource requires updated endpoint and credentials.
For missing server-side fallback, the page points to a client-side fallback pattern. For user profile creation, it points to the direct Claude API. Those linked instructions, direct API pricing and other providers are not assessed.
evidence
The evidence is the complete supplied Anthropic documentation page, including its model table, request examples, hosting comparison, feature exclusions, billing explanation and troubleshooting guidance. It supports statements about documented configuration and intended behavior.
No commands, SDK examples or API requests were executed. Successful provisioning, authentication, actual feature behavior, response quality, latency, reliability and charges are not assessed. Linked documents do not provide additional evidence within this scope.
Access & freshness
costs
Claude usage is billed through Azure Marketplace in Claude Consumption Units, metered hourly and invoiced monthly in arrears on the Azure bill. The page explicitly says these units are not prepaid credits and have no balance or commitment.
The selected page does not supply numeric unit prices, conversion mechanics or per-model token rates, so actual cost is unknown. It directs readers to [https://platform.claude.com/docs/en/about-claude/pricing#claude-in-microsoft-foundry-pricing]. Workload cost cannot be estimated from this page alone.
Azure Cost Management is identified as the tool for monitoring and forecasting Claude-related costs.
rights
Using the service requires accepting Azure Marketplace terms. The page states that Anthropic acts as an independent processor for Microsoft and that customers are subject to Anthropic's data use terms at [https://www.anthropic.com/legal]. The linked terms are outside the supplied page; full contractual obligations and output rights are unknown here.
For Azure hosting, the page says prompts and completions remain within Azure, with usage metadata and content flagged by Anthropic's safety systems sent to Anthropic. US Data Zone Standard keeps inference within the United States. These statements do not establish every aspect of data retention or residency.
The page provides no explicit redistribution licence for its documentation or code examples.
freshness
The supplied page was captured on 15 November 2026 at 01:18:42 UTC. Its publication and last-update dates are not stated. Model availability, hosting support, portal navigation and SDK installation instructions should be understood as that captured documentation snapshot.
HTTP examples specify anthropic-version 2026-10-21, and Java dependency examples specify version 3.8.0. Several other installation commands do not pin versions. The model table marks Sonnet 4.5 as deprecated and says Foundry follows the Claude API lifecycle schedule; retirement dates are not included.
actions
Before deploying, match the required model, tools and inference geography to a hosting option. Confirm regional availability, access eligibility, applicable terms and numeric pricing. Choose a deployment name carefully because it cannot be renamed, and keep API keys out of version control.
For an initial integration check, send a minimal request using the actual deployment name, inspect the usage object and retain both request identifiers for troubleshooting. Configure Azure Monitor, Log Analytics and Cost Management as needed. The page recommends at least 30 days of rolling activity logs.
For 401 errors, check credentials or token expiry; for 403 errors, check role assignments; for 429 errors, apply exponential backoff and retry logic. Use Azure monitoring rather than expecting Anthropic rate-limit headers. Before moving traffic between hosting options, verify the replacement deployment's required features.
