# Codestral-2501 and Command A leave Foundry Feb 15: what to move

URL: https://infro.io/blog/codestral-2501-and-command-a-leave-foundry-feb-15-what-to-move
Author: INFRO Editorial (https://infro.io/blog/editorial)
Publisher: INFRO
Published: 2026-11-28
Last modified: 2026-11-28
Last reviewed: 2026-11-28 (next review due 2026-12-28)
Topic: Architecture and migration
Format: Checklist

> Codestral-2501 and cohere-command-a both retire on Azure Foundry on 2027-02-15, and Microsoft's listed replacements are a preview Mistral model and managed-compute Command A+ variants [^ms-schedule]. Treat the date as fixed, pick candidates by their own retirement dates, and prove them with a frozen code and tool-call test before cutover.

Key takeaways:
- Codestral-2501 (version 2) and cohere-command-a (version 1) both show a retirement date of 2027-02-15 on Foundry's schedule, and Microsoft says retirement dates are not extendable.
- Microsoft's listed replacements are not drop-in: mistral-large-4-latest is labeled Preview, and the Command A+ replacements are managed-compute deployments from a Hugging Face collection.
- Choose candidates by their own retirement dates; grok-code-fast-1 and the Llama models on Foundry retire on 2027-02-03, earlier than the models you are replacing.
- Replay your own logged code and tool-call requests unchanged on each candidate before editing any prompt, then score compile or test pass rate, schema validity and tool choice separately.
- Check reasoning defaults: Mistral Large 4 defaults to High reasoning, which can change latency and token use for short completions.

## What retires on 15 February, and what Foundry names as the replacement

Foundry's retirement schedule lists `Codestral-2501` (version 2, GA) and `cohere-command-a` (version 1, GA) with a retirement date of 2027-02-15.[1] The same date applies to `Cohere-embed-v3-english`, `Cohere-embed-v3-multilingual`, `mistral-small-2503` and `mistral-document-ai-2512`, so a team with several of these will hit one deadline.[1] From today, 28 November 2026, that is 79 days.

The schedule's replacement column is not a like-for-like swap in either case:

- Codestral-2501 lists `mistral-large-4-latest`, which the schedule itself labels Preview.[1] Microsoft's policy does not recommend preview models for production, and preview deployments are upgraded or terminated when a decision is made, with at least 30 days notice.[2]
- cohere-command-a lists three Command A+ variants (`coherelabs-command-a-plus-05-2026` in fp8, bf16 and w4a4). The schedule's footnote says they are available through the Hugging Face collection for managed compute deployment.[1] That is a deployment you size and run in your subscription, not the endpoint you call today. The earlier Foundry listing `Cohere-command-a-plus-05-2026` already retired on 2026-10-16.[1]

Once the date passes, a retired model's inference requests return 410 Gone and nothing new can be deployed.[2] This is ordinary ai model retirement mechanics, but a 410 inside a fallback chain looks like a dead target, not a degraded one, so find those too.

## Dated plan to 15 February

The lifecycle policy commits to a 60-day minimum retirement notice for GA models, a replacement testable in Global Standard about 90 days out, and in provisioned regions about 30 days out.[2] Work back from the hard date, not from the notice.

| Date | Step |
| --- | --- |
| Fri 4 Dec | Inventory complete; request dataset frozen |
| Fri 18 Dec | Candidates replayed unchanged; shortlist cut to two |
| Fri 8 Jan | Prompt, schema and parameter changes done; regression gate passes |
| Mon 11 Jan | Canary on a small share of traffic |
| Fri 22 Jan | Full cutover; old deployment kept as rollback only |
| Fri 29 Jan | Remove old ids from routes, fallbacks and allowlists |
| Mon 15 Feb | Retirement; nothing should call the old ids |

Table: a suggested schedule. The dates are a proposal; only the retirement date and notice rules come from Microsoft.

Provisioned deployments are not auto-upgraded, and Microsoft's migration page describes in-place and side-by-side paths for them.[3] Whichever path you are on, the guidance is the same: auto-upgrade is a safety net, not a migration plan.[3]

## Replacement shortlist

Pick candidates by their own dates first, then by fit. A model that retires sooner than the one you are leaving is not a replacement.

| Candidate | For | Foundry lifecycle and date | Notes |
| --- | --- | --- | --- |
| `mistral-large-4-latest` | Codestral chat and code | Preview, no date listed[1] | Microsoft's listed replacement. 1T parameters, 52B active at preview.[4] |
| `mistral-medium-3-5` | Codestral chat and code | Preview, 2027-10-01[1] | Mistral launched it with remote coding agents in Vibe.[5] |
| `gpt-5.3-codex` | Codestral, code-heavy | GA, 2027-08-24[1] | Azure OpenAI model; check the API shape your client uses. |
| `gpt-5.4-mini` | Command A chat and tools | GA, 2027-09-21[1] | Azure OpenAI model; re-measure cost on your own traffic. |
| Command A+ variants | Command A | Managed compute from Hugging Face[1] | 218B total, 25B active, 128K input, 64K output, tool use, Apache 2.0.[6] |
| North Mini Code | Command A, code tasks | Not on the Foundry schedule | 30B total, 3B active, 256K context. Cohere API, Model Vault, OpenRouter or weights.[7] |

Table: candidates read on 2026-11-28. Retirement dates are Foundry's, from the schedule.

Two exclusions matter. `grok-code-fast-1` and the Llama models on Foundry retire on 2027-02-03, before your deadline, and `mistral-small-2503` has the same 15 February date.[1] If any of them sit in a fallback list, change them now.

Running Command A+ on managed compute is a different operating model from a serverless endpoint; the trade-offs are covered in [Phi-4 leaves Foundry serverless Jan 17: is Managed Compute worth it?](https://infro.io/blog/phi-4-leaves-foundry-serverless-jan-17-is-managed-compute-worth-it). Cohere's own hardware floor for Command A+ is two H100s at W4A4.[6] North Mini Code through Cohere's API or Model Vault is a different contract and data path from your Azure subscription, so get that approved before you test it.

## Find every caller

Do this before choosing anything. The date applies to every deployment, including the ones nobody remembers.

- [ ] List every Foundry deployment of `Codestral-2501` and `cohere-command-a` in every subscription, with deployment type (Standard, Provisioned, Batch).
- [ ] Query the Models API for `lifecycleStatus` and per-SKU `deprecationDate` so the inventory carries Microsoft's date, not a copied one.[2]
- [ ] Search code, config and prompt stores for the model ids and the deployment names, including IDE plugins and CI bots.
- [ ] Check every fallback list, route and allowlist for the retiring ids and for ids retiring before 15 February.
- [ ] Record the request shape per caller: chat messages, completion-style prompts, tool definitions, streaming, max tokens, stop sequences.
- [ ] Turn on payload capture now. Microsoft notes that production content capture is opt-in and never retroactive, so you cannot evaluate traffic you did not record.[3]
- [ ] Confirm the replacement accepts your request shape. If you send fill-in-the-middle or other completion-style requests, check the candidate's model card; the pages read for this post do not say.

## Regression test for code prompts

Follow Microsoft's order: replay the current configuration on the target unchanged first, so behavior the model changed is separate from behavior you changed.[3] Build the set from logged requests, freeze it, and do not edit it mid-migration.[3]

Score four things separately, because a single quality number hides which one broke:

1. **Executes**: generated code parses or compiles, and your own unit tests pass.
2. **Edit fidelity**: for diff or patch outputs, the patch applies cleanly to the original file.
3. **Boundaries**: output stops where the editor expects, with no stray prose or code fences, and is not cut off by the length limit.
4. **Latency and length**: time to first token and output tokens per request.

The fourth matters for Mistral Large 4. Mistral's released model has three reasoning modes, Low, Medium and High, with High as the default and Low replacing "None".[8] A short inline completion on High can be slower and longer than your Codestral baseline. Whether the Foundry deployment exposes that setting is unconfirmed, so test whatever your deployment actually accepts.

> **Example: Illustrative gate, not measured data**
> Suppose the frozen set has 400 code requests. A gate could be: unit-test pass rate no more than 3 points below the Codestral baseline, patch-apply rate no lower, median time to first token within 1.5x, and zero responses wrapped in prose where the baseline had none. These numbers are examples; set yours from the baseline run.

## Regression test for tool-use prompts

Command A callers usually fail on tool behavior, not prose. Microsoft's migration page says schema and tool-call work often outweighs prompt work for agentic workloads, and that renamed arguments and changed sequencing show up only in real traces, not single-turn benchmarks.[3]

Score these separately per case: right tool chosen (or correctly none), arguments valid against your JSON schema, required fields present, parallel calls handled, and the follow-up turn after a tool result. Replay multi-turn traces, not just first turns.

```python
import json, os, subprocess, tempfile
from jsonschema import validate, ValidationError
from openai import OpenAI

client = OpenAI(base_url=os.environ["BASE_URL"], api_key=os.environ["API_KEY"])

def tool_case(model, case):
    r = client.chat.completions.create(
        model=model, messages=case["messages"], tools=case["tools"], temperature=0
    )
    calls = r.choices[0].message.tool_calls or []
    if not calls:
        return {"ok": case["expect_tool"] is None, "why": "no call"}
    c = calls[0].function
    if c.name != case["expect_tool"]:
        return {"ok": False, "why": f"wrong tool {c.name}"}
    try:
        validate(json.loads(c.arguments), case["schema"])
    except (ValueError, ValidationError) as e:
        return {"ok": False, "why": f"bad args: {e}"}
    return {"ok": True, "why": ""}

def code_case(model, case):
    r = client.chat.completions.create(model=model, messages=case["messages"])
    code = r.choices[0].message.content or ""
    with tempfile.NamedTemporaryFile("w", suffix=".py", delete=False) as f:
        f.write(code + "\n" + case["tests"])
    p = subprocess.run(["python", f.name], capture_output=True, timeout=30)
    return {"ok": p.returncode == 0, "why": p.stderr.decode()[:200]}
```

Run the same file against the old deployment and each candidate, then diff the failure reasons. Repeat tool cases a few times at your production temperature; an argument that is valid 9 times in 10 is a defect. For how many cases you need, see [How many eval cases do you need before switching models?](https://infro.io/blog/how-many-eval-cases-do-you-need-before-switching-models).

## Cutover and rollback checklist

- [ ] Shortlist cut to two candidates, each with a passing gate on the frozen set.
- [ ] Canary on a small share of real traffic, with errors, latency and tool-call validity compared against the old deployment side by side.
- [ ] Prompts and schemas changed only after the unchanged replay, with the original kept.
- [ ] Quota, region and deployment type confirmed for the target, with the old deployment kept alongside for rollback.[3]
- [ ] Fallback chain rebuilt: no retired ids, no ids retiring earlier than 15 February, and a fallback that has passed the same test ([fallback equivalence test](https://infro.io/blog/is-your-fallback-model-good-enough-test-fallback-equivalence)).
- [ ] Old deployments deleted and their ids removed from allowlists after the canary is stable.
- [ ] If you also use Cohere Embed v3, schedule the re-embedding separately; the plan is in [Embed v3 retires on Azure Feb 15](https://infro.io/blog/embed-v3-retires-on-azure-feb-15-a-dual-index-re-embedding-plan).

## Replaying and refusing with INFRO

If your calls pass through INFRO, the model lifecycle feature records vendors' deprecation and shutdown dates, warns organizations still sending a retiring model, and from the shutdown date refuses it before any provider call, naming the replacement. Datasets built from logged requests and experiments across up to six variants, with the request count and estimated provider cost shown before the run and a spend cap, cover the replay step. Routing rules can send a share of requests to a candidate. Whether your Foundry model ids are in INFRO's catalog is something to check in the [docs](https://infro.io/docs)[9] and the catalog before relying on any of this; none of it replaces the Foundry inventory above.

## Questions

### Can the 15 February retirement date be extended?

Microsoft's migration guidance says retirement dates are not extendable and that there is no exception process [3]. Plan on the published date.

### Will Foundry upgrade my Codestral-2501 or Command A deployment automatically?

The lifecycle policy describes automatic upgrades for Global Standard, Data Zone Standard and Standard deployments, and says provisioned deployments are not upgraded [2]. The pages read do not say how that applies to these two partner models, so treat auto-upgrade as unconfirmed and migrate yourself.

### What happens to a call after the model retires?

On Foundry, a retired model's inference requests return 410 Gone and no new deployments can be created [2]. Remove retired deployments from routes and fallback lists before the date.

## Sources

1. Model retirement schedule - Microsoft Foundry — Microsoft Learn. https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/model-retirement-schedule (accessed 2026-11-28)
2. Microsoft Foundry Models lifecycle and support policy — Microsoft Learn. https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/model-retirements (accessed 2026-11-28)
3. Model migration: upgrade or switch models in Microsoft Foundry — Microsoft Learn. https://learn.microsoft.com/en-us/azure/foundry/foundry-models/concepts/model-migration (accessed 2026-11-28)
4. Introducing Mistral Large 4 — Mistral. https://mistral.ai/news/mistral-large-4/ (accessed 2026-11-28)
5. Latest news — Mistral. https://mistral.ai/news/ (accessed 2026-11-28)
6. Introducing Command A+ — Cohere. https://cohere.com/blog/command-a-plus (accessed 2026-11-28)
7. Introducing North Mini Code — Cohere. https://cohere.com/blog/north-mini-code (accessed 2026-11-28)
8. Mistral Large 4 (Le Chonk) is now open weight — Mistral. https://mistral.ai/news/mistral-large-4-oss/ (accessed 2026-11-28)
9. INFRO documentation — INFRO. https://infro.io/docs (accessed 2026-11-28)
