# How does traffic mirroring work for an Azure ML managed online endpoint?

Exam: AI-300 — Operationalizing Machine Learning and Generative AI Solutions
Knowledge domain: Implement machine learning model lifecycle and operations
Updated: 2026-11-25T04:35:29.745244+00:00
HTML: https://learningpathx.com/faq/AI-300/ai300-azure-ml-online-shadow-traffic.html

## Also asked as

- What does shadow traffic test on an Azure Machine Learning online endpoint?
- What limits and behavior should I expect when mirroring Azure ML online traffic?

Mirroring copies a share of ordinary endpoint requests to a shadow deployment. Clients receive the live deployment's responses. Calls that explicitly name a deployment bypass the shadow copy, so generate ordinary traffic when testing the mirror. Use side-effect-free scoring because mirrored requests run again.

Microsoft supports mirroring for managed online endpoints, with one shadow target per endpoint, a maximum of 50 percent and only live or mirrored traffic on a given deployment. Microsoft documents the Azure CLI `ml` extension (v2) 2.4.0 or later and the v2 Python SDK (`azure-ai-ml`) 1.0.0 or later. Older tools can remove the mirror setting when updating the endpoint. Check observed shadow requests, errors and latency, then set and verify mirror traffic at zero before sending candidate responses to clients.

### Microsoft Learn

* [Safe rollout for online endpoints - Azure Machine Learning](https://learn.microsoft.com/en-us/azure/machine-learning/how-to-safely-rollout-online-endpoints?view=azureml-api-2)
* [Online endpoints for real-time inference - Azure Machine Learning](https://learn.microsoft.com/en-us/azure/machine-learning/concept-endpoints-online?view=azureml-api-2)

Source: [AI-300: Lab: Testing, Rolling Out, and Reverting an Online Model](https://learningpathx.com/news/ai-300-lab-testing-rolling-out-and-reverting-an-online-model.html)
