Study FAQ
How do I test an Azure ML online deployment before giving it live traffic?
Also asked as 2
- How can I invoke a new Azure Machine Learning deployment directly at zero live traffic?
- How do I get a candidate deployment response without changing Azure ML endpoint routing?
Answer
Create the candidate deployment with no live allocation and read back the endpoint's traffic settings. Use an authorized client with access to the intended endpoint. With Azure Machine Learning CLI v2, use az ml online-endpoint invoke with --name for the endpoint, --deployment-name for the candidate, and a reviewed --request-file. The response comes from that named deployment without a traffic split or shadow copy.
Verify the candidate's representative outputs, errors and latency, and send ordinary requests without the deployment override to confirm the baseline still serves them. On a failed direct test, keep the candidate at zero while investigating its initialization, input or dependency failure.
Microsoft Learn
Full explanation
AI-300: Lab: Testing, Rolling Out, and Reverting an Online Model
Study guide · AI-300
Read the full explanation