Answer: Pin specific model versions for every deployment by setting the model environment variables to match your deployment names, and when creating Azure deployments select a specific model version rather than "auto-update to latest." For example, set ANTHROPIC_DEFAULT_OPUS_MODEL to 'claude-opus-4-8', ANTHROPIC_DEFAULT_SONNET_MODEL to 'claude-sonnet-5', and ANTHROPIC_DEFAULT_HAIKU_MODEL to 'claude-haiku-4-5'. Status: Confirmed Entry: tool/claude-code/models/pin-model-versions-foundry Revision: 3 Digest: sha256:2cb148efae00dcbe (changes whenever the content changes) Timeline: Created: 2026-11-13T03:04:41Z Last changed: 2026-11-17T12:27:38Z (Deployment guidance: — → auto-update to latest) Last verified: 2026-11-20T12:22:12Z Next check: 2026-11-21T12:22:12Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Opus model variable | claude-opus-4-8 | [1] | 2026-11-20 Sonnet model variable | claude-sonnet-5 | [1] | 2026-11-20 Haiku model variable | claude-haiku-4-5 | [1] | 2026-11-20 Default Opus alias resolution | Opus 4.6 | [1] | 2026-11-20 Deployment guidance | auto-update to latest | [1] | 2026-11-20 Sources: [1] Anthropic. "Claude Code on Microsoft Foundry". https://code.claude.com/docs/en/microsoft-foundry.md Role: primary. Accessed: 2026-11-20T12:22:12Z Quote: "export ANTHROPIC_DEFAULT_OPUS_MODEL='claude-opus-4-8'" (Supports: Opus model variable) Quote: "export ANTHROPIC_DEFAULT_SONNET_MODEL='claude-sonnet-5'" (Supports: Sonnet model variable) Quote: "export ANTHROPIC_DEFAULT_HAIKU_MODEL='claude-haiku-4-5'" (Supports: Haiku model variable) Quote: "the `opus` alias on Microsoft Foundry resolves to Opus 4.6" (Supports: Default Opus alias resolution) Quote: "select a specific model version rather than "auto-update to latest."" (Supports: Deployment guidance) Published: 2026-11-20T10:36:07Z Snapshot SHA-256: 6880acc75e13a7f03c8092103ce89d8795215df081b704be7e7587d54a9c8289 (captured 2026-11-17T12:27:36Z) 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-17T12:27:38Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:22:12Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:22:12Z Last attempt: 2026-11-20T12:22:12Z Notes and limitations: Extracted automatically from a single official source (section "4. Pin model versions"). Related: https://latestn.com/tool/claude-code/models/redirect-request-to-model How do I send a request to a different model from a Claude Code mod hook? https://latestn.com/tool/claude-code/models/restrict-available-models How do I restrict which models are available in Claude Code? https://latestn.com/tool/claude-code/models/set-default-model How do I set the default model in Claude Code settings.json? https://latestn.com/tool/claude-code/models/pin-model-versions How do I pin model versions for Claude Code on Amazon Bedrock? https://latestn.com/tool/claude-code/models/pin-model-versions-aws How do I pin model versions when using Claude Code on Claude Platform on AWS? https://latestn.com/tool/claude-code/models/pin-model-versions-cloud How do I pin model versions for cloud providers when deploying Claude Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-17T12:27:38Z | changed | Deployment guidance: — → auto-update to latest | [1] 2026-11-17T12:27:38Z | changed | Haiku model variable: — → claude-haiku-4-5 | [1] 2026-11-17T12:27:38Z | changed | Sonnet model variable: — → claude-sonnet-5 | [1] 2026-11-17T12:27:38Z | changed | Deployment selection guidance: select a specific model version rather than "auto-update to latest." → — | [1] 2026-11-17T12:27:38Z | changed | Haiku model ID example: claude-haiku-4-5 → — | [1] 2026-11-17T12:27:38Z | changed | Sonnet model ID example: claude-sonnet-5 → — | [1] 2026-11-17T12:27:38Z | changed | Opus model ID example: claude-opus-4-8 → — | [1] 2026-11-17T12:27:38Z | changed | Opus model variable: ANTHROPIC_DEFAULT_OPUS_MODEL → claude-opus-4-8 | [1] 2026-11-15T12:22:18Z | changed | Deployment selection guidance: — → select a specific model version rather than "auto-update to latest." | [1] 2026-11-15T12:22:18Z | changed | Default Opus alias resolution: — → Opus 4.6 | [1] 2026-11-15T12:22:18Z | changed | Haiku model ID example: — → claude-haiku-4-5 | [1] 2026-11-15T12:22:18Z | changed | Sonnet model ID example: — → claude-sonnet-5 | [1] 2026-11-15T12:22:18Z | changed | Opus model ID example: — → claude-opus-4-8 | [1] 2026-11-15T12:22:18Z | changed | Example newer Opus model: Opus 4.8 → — | [1] 2026-11-15T12:22:18Z | changed | Default opus alias resolution: Opus 4.6 → — | [1] 2026-11-15T12:22:18Z | changed | Haiku model variable: claude-haiku-4-5 → — | [1] 2026-11-15T12:22:18Z | changed | Sonnet model variable: claude-sonnet-5 → — | [1] 2026-11-15T12:22:18Z | changed | Opus model variable: claude-opus-4-8 → ANTHROPIC_DEFAULT_OPUS_MODEL | [1] 2026-11-13T03:04:41Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/models/pin-model-versions-foundry/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/claude-code/models/pin-model-versions-foundry POST: https://latestn.com/dispute/tool/claude-code/models/pin-model-versions-foundry with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/models/pin-model-versions-foundry?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I pin Claude model versions when deploying Claude Code on Microsoft Foundry? Revision 3, last verified 2026-11-20T12:22:12Z. https://latestn.com/tool/claude-code/models/pin-model-versions-foundry (accessed 2026-11-21T09:55:12Z). @misc{LatestN_tool_claude_code_models_pin_model_versions_foundry_r3, title = {How do I pin Claude model versions when deploying Claude Code on Microsoft Foundry?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/models/pin-model-versions-foundry}}, note = {Revision 3; digest sha256:2cb148efae00dcbe; last verified 2026-11-20T12:22:12Z; accessed 2026-11-21T09:55:12Z} } 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/claude-code/models/pin-model-versions-foundry