# Azure AI Gateway Model Router: Test the Alias Before You Switch Traffic

Check preview model selection, priorities, API compatibility, and multi-turn behavior before routing an app through an Azure AI Gateway alias.

By Paras Madan | 2026-11-24


Adding a second model to an Azure AI Gateway alias can take away an API your app already uses. If the models share Chat Completions but only one supports Responses, Microsoft says the alias offers Chat Completions. That's the kind of change a demo with one prompt won't catch.

Microsoft posted the [Azure update for automatic model selection](https://azure.microsoft.com/en-us/updates?id=581398) on November 23. The feature brings Foundry's model ranking to Azure AI Gateway aliases in public preview. The gateway still applies its own policies and sends the request to one of your registered backends. I would make a separate test alias first rather than change the one an application already calls.

## Decide what gets first pick

An alias can select for Balanced, Quality, or Cost. That setting tells the router how to rank candidate models. **Model first** and **Priorities first** answer a different question: should the best-ranked eligible model win across groups, or should the model come from the highest-priority group?

Suppose your support app has a reserved deployment of one model in the preferred group and an on-demand deployment of another in a lower group. For a difficult prompt, the router might rank the on-demand model first. With Model first, it can choose that model. With Priorities first, it chooses within the preferred group instead. Weights are a further decision: they split traffic between backends of the selected model at the chosen priority. They don't express how often you want one model to beat another in the ranking.

## Check the API surface before the quality scores

Take a few actual request shapes from the app and turn them into synthetic test calls. Include its API format, optional parameters, and any function tools it sends. In the [Microsoft Learn gateway guide](https://learn.microsoft.com/en-us/azure/foundry/openai/how-to/model-router-ai-gateway), the alias advertises only formats common to its models. The gateway also does not adapt unsupported parameters for the selected model. A request that sends a custom temperature can work on one backend and fail when another is selected.

Run the request shapes against each configured backend before comparing the routed results. If one doesn't support the app's format or a required option, leave it out of the alias or use a separate alias for that workload. Don't make the app's request contract depend on whichever model wins a ranking.

## Test a second turn on purpose

For an app using the Responses API, send a first message and a follow-up that includes `previous_response_id`. Microsoft documents that this follow-up remains on the backend that answered the earlier turn; it isn't ranked again. If you want new ranking on each turn, Microsoft suggests sending the conversation history on each request or [calling the Foundry model router directly](https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/model-router).

Use a first turn and follow-up that look meaningfully different, such as looking up a support policy and then asking for a structured comparison. Record which backend answered each turn and compare it with the behavior your app expects. That gives you more useful evidence than a test that sends a single easy prompt twenty times.

## Separate the cost and keep a way back

The gateway and the backend can still charge for use; Microsoft's preview waiver is for the router's ranking fee, not those other charges. If your team uses telemetry, review the ranked candidates, selected model, and time spent ranking alongside application latency and estimated cost. A cheaper model isn't a saving if callers have to retry requests the alias wasn't built to handle.

Keep the old alias unchanged while the preview is being evaluated. Advance only after the test alias handles the same request shapes, the ranking respects your capacity preference, and the second turn behaves as expected. If the preview toggle isn't visible in your gateway, wait for it rather than changing a production alias to work around missing access.

I'm Paras. I work at the intersection of AI, engineering and distribution.

I help AI infrastructure teams explain product behavior and trade-offs through clear technical writing and practical storytelling.

[Book a 30-minute call](https://cal.com/paras-madan/30min).
