If you run GPT-4o on Azure OpenAI in Microsoft Foundry, the Azure OpenAI GPT-4o retirement is a dated deadline, not a vague roadmap item. The first Azure retirement date is 14 January 2027, and a second wave lands on 14 April 2027. The part that deserves attention is that some deployment types are upgraded for you at retirement, to a model with different behaviour.

This guide is a practical sequence: inventory, pin, evaluate, cut over, keep a rollback corridor, then retire. It focuses on Azure mechanics rather than model comparisons.

Which dates apply to your deployments

According to Microsoft Learn, two dates matter:

  • 14 January 2027: all active customer-facing base-model inference offers for gpt-4o version 2024-05-13 in Azure public cloud, in all applicable regions. That covers Global Standard, Data Zone Standard, Regional Provisioned, Global Provisioned, Data Zone Provisioned and Global Batch. Regional Standard deployments of this version already retired on 31 March 2026.
  • 14 April 2027: gpt-4o versions 2024-08-06 and 2024-11-20, gpt-4o-mini version 2024-07-18, and gpt-4.1-mini version 2025-04-14.

Older material still shows other dates for gpt-4o 2024-05-13: Microsoft's own migration blog post from late August 2026 quotes 1 October 2026. The Learn schedule, last updated on 18 November 2026, says 14 January 2027. Microsoft notes that dates and replacements are subject to change, so open the schedule yourself before you plan around any date.

What happens at retirement depends on the deployment type

The replacement listed for gpt-4o 2024-05-13 is gpt-5.1 version 2025-11-13. The schedule also lists gpt-5.1 for gpt-4o 2024-08-06 and 2024-11-20, and no replacement yet for gpt-4o-mini and gpt-4.1-mini. Whether you get it without asking depends on how you deploy:

Deployment type At retirement Your job
Global Standard, Data Zone Standard Upgraded automatically (per the schedule) Decide whether you accept that, or choose your own target first
Provisioned (regional, global, data zone) Not auto-upgraded Create replacement deployments, move traffic yourself
Global Batch Same date, but no automatic upgrade is implied Migrate side by side

The auto-upgrade is the risky one. It moves a gpt-4o deployment to gpt-5.1, a different model family. Once the old version is retired, inference against it returns 410 Gone, and Microsoft says retirement dates can't be extended, so there is no switching back afterwards. Prompts tuned for gpt-4o, output parsers and tool-calling code are all exposed to a swap you did not test.

Our take: don't let the gpt-5.1 auto-upgrade be your plan. Choose the target yourself and make the change on your own schedule.

The step-by-step plan

Microsoft's migration process has six phases: Discover, Assess, Adapt, Validate, Roll out, Retire. The steps below map onto them.

Step 1: Inventory every deployment

For each Azure OpenAI resource and subscription, record the model, version, SKU and versionUpgradeOption. You can read the upgrade option through REST, Azure CLI, Azure PowerShell and the Foundry portal.

The option can be OnceNewDefaultVersionAvailable, OnceCurrentVersionExpired or NoAutoUpgrade. A null value is equivalent to OnceCurrentVersionExpired, and if the property is absent on a model that supports upgrades, its value is currently null. In other words, "I never set it" still means "upgrade me at expiry".

Also check which subscriptions get the notifications. Azure emails subscription owners and contributors, sends Service Health alerts and updates the retirement tables. The lifecycle policy puts the notice for a GA model at least 60 days before retirement. When you create a Service Health alert, choose Azure OpenAI Service as the service name; there is no separate Microsoft Foundry entry. A shared inbox nobody reads is not a retirement process.

Step 2: Start a model register

A simple table or YAML file in the repo is enough:

- route: support-summarizer
  owner: team-support
  deployment: summarizer-prod-v2
  model: gpt-4o
  version: 2024-11-20
  sku: GlobalStandard
  retires: 2027-04-14
  lastChecked: 2026-12-01

Also keep deployment names in configuration, not code. The migration then becomes a config change and a gateway weight, not a release.

Step 3: Build a golden test set

Collect real, anonymised requests per route, with the outputs your product actually needs: JSON shape, tone, refusal behaviour, tool calls. Include the ugly cases, such as long inputs and malformed user text. Without this set, evaluation becomes opinion.

Step 4: Deploy the candidate under a new name and set the upgrade option

Create the candidate as a separate deployment (for example summarizer-prod-v3) rather than editing the old one. Then set versionUpgradeOption explicitly on every Standard-type deployment you own; automatic updates don't apply to provisioned deployments. You can change the option through REST, Azure PowerShell or the Foundry portal. Azure CLI can read the value but can't update it at the moment.

NoAutoUpgrade means the deployment stops working at retirement. That is a loud failure, which we prefer to a silent swap to another model family. It only makes sense once your cutover is on track, so treat it as a deadline you control.

Step 5: Evaluate against the golden set

Run the old and new deployments on the same inputs, first with your current prompts and settings unchanged, so you can separate what the model changed from what you changed. Microsoft's migration guide warns that temperature, top_p, max_tokens and reasoning-effort controls don't map one-to-one across generations, that newer model families might not support some parameters, and that calling code can differ too (Chat Completions versus Responses, streaming shape, renamed request fields). It gives no gpt-4o to gpt-5.1 list, so test your own calls.

Step 6: Shift traffic gradually through your gateway

Weighted routing between two deployments is something you implement in your own gateway or application layer. A minimal sketch:

const routes = {
  summarizer: [
    { deployment: process.env.SUMMARIZER_OLD, weight: 90 },
    { deployment: process.env.SUMMARIZER_NEW, weight: 10 },
  ],
};

Move from a small share to full traffic in stages, and compare sampled production outputs at each stage. Microsoft suggests continuous evaluation of sampled production traffic on the Foundry Observability dashboard, with Azure Monitor alerts when quality drops.

Step 7: Keep a rollback corridor, then retire the old deployment

Keeping the old deployment warm after cutover is a deliberate choice. Microsoft's migration guidance says teams typically want about 30 days. Counting back from 14 January 2027, that means being fully cut over around 15 December 2026. If you can't make that, shorten the corridor instead of skipping evaluation.

When the corridor ends, delete the old deployment, update the register and close the ticket.

Trade-offs by deployment type

Standard types

Standard, Global Standard and Data Zone Standard deployments upgrade on a rolling schedule. Quota carries over automatically. You can accept that, but you give up the chance to compare first. The side-by-side route costs a little extra work and gives you control.

Provisioned

Provisioned deployments migrate manually, either in place or side by side. In place uses an Azure-managed traffic transition that takes 20 to 30 minutes. In-place migration to a new version in the same model family is supported in Foundry, REST and CLI. Migration to a new model family, which is what gpt-5.1 is relative to gpt-4o, is supported only through REST and CLI. Migrations can only happen between provisioned deployments of the same deployment type, so check capacity for the target model first. Side by side is safer if you need a rollback path, but you need quota for both deployments while you validate. Before you delete the old deployment, check that the Azure OpenAI Requests metric shows no calls on it for 5 to 10 minutes after the switch.

Batch

Batch migrates side by side: deploy the new model, resubmit the jobs, then retire the old deployment. For gpt-4o 2024-05-13, the lifecycle policy says the shared retirement date doesn't imply an automatic upgrade for Global Batch. Not every model is offered for Batch, so confirm that your target is available for your Batch deployment type and that you have quota for it before you plan the switch.

Fine-tuned models

Fine-tuned workloads can't be auto-upgraded, because they carry their own training and deployment retirement clocks. For fine-tuned gpt-4o 2024-08-06 and gpt-4o-mini 2024-07-18, the schedule lists training retirement no earlier than 1 April 2027 (for existing customers) and deployment retirement on 1 October 2027. Plan to re-tune against the replacement base model early.

Don't treat gpt-5.1 as a permanent home

The standard GA lifecycle is 18 months, and the official replacement is declared roughly 90 to 120 days before retirement. gpt-5.1 (2025-11-13) has its own retirement date on the same schedule: 13 July 2027, six months after the first gpt-4o date. Microsoft says the listed replacement doesn't limit your manual migration choices, and newer GA models on the schedule retire later (gpt-5.4 on 2 September 2027, for example). Whichever model you pick, keep the migration you will do again in mind: a gateway, config-driven deployment names and a repeatable golden set.

If you automate alerts from the Models API (GET .../providers/Microsoft.CognitiveServices/locations/{location}/models?api-version=2024-10-01), watch the terminology. It exposes lifecycleStatus, deprecation.inference, deprecation.fineTune and per-SKU deprecationDate. A model the docs call "Deprecated" (still works, blocked for new customers) appears as lifecycleStatus: "Deprecating", and the API value "Deprecated" means retired and no longer serving inference.

One more item for the same review: Microsoft's Foundry GA overview lists Workflows as a preview feature, says Foundry is retiring them on 1 December 2026 and points new development to Microsoft Agent Framework. That is unrelated to model retirement, but don't build new production dependencies on them.

Key takeaways

  • gpt-4o 2024-05-13 retires on 14 January 2027 for most active offers; gpt-4o 2024-08-06 and 2024-11-20, gpt-4o-mini and gpt-4.1-mini follow on 14 April 2027.
  • Global Standard and Data Zone Standard upgrade automatically, to gpt-5.1 for gpt-4o 2024-05-13. Provisioned deployments don't, and the shared date doesn't imply an automatic upgrade for Global Batch.
  • Inventory model, version, SKU and versionUpgradeOption on every deployment; null means upgrade at expiry.
  • Deploy the candidate under a new name, evaluate on a golden set, shift traffic through your own gateway.
  • Keep the old deployment about 30 days as a rollback corridor, then retire it.
  • Set versionUpgradeOption explicitly and prefer a loud failure over a silent model swap.
  • Verify dates on the Learn schedule; gpt-5.1 itself retires on 13 July 2027.