Skill 2.3.2

Test and troubleshoot model endpoints

Key Concepts

A deployment can be tested on the developer's machine first with a local endpoint (--local), which needs Docker, or with the Azure Machine Learning inference HTTP server, which runs the scoring script without Docker. In Azure, az ml online-endpoint invoke with --deployment-name sends a test request straight to one deployment, as does the azureml-model-deployment header, even when that deployment has no traffic.

az ml online-deployment get-logs shows the inference server's container logs, and --container storage-initializer shows model download logs. Common failures are ImageBuildFailure (environment build problems), OutOfQuota (not enough cores for the instance type and count), BadArgument (for example a model or image that cannot be downloaded) and ResourceNotReady (the container crashes, often because init() fails).