azureml-inference-server-http
Azure Machine Learning inferencing server.
What it is and what it does
Azure Machine Learning Inference HTTP Server is a Flask-based HTTP server designed to host and serve machine learning models deployed through Azure ML. It wraps user-defined scoring scripts (Python functions decorated with input/output schemas) and exposes them as HTTP endpoints, handling request routing, response formatting, and error management. The server includes built-in observability through OpenTelemetry and Azure Monitor integration, allowing operators to collect metrics, traces, and logs for production monitoring.
The package abstracts away much of the HTTP server boilerplate, letting data scientists focus on the scoring logic while the server handles Flask configuration, CORS, health checks, and request/response validation. It supports both gunicorn (Linux/macOS) and waitress (Windows) as WSGI servers and includes features like configurable health check ports and JSON-based server configuration through environment variables.
Use it for:
- Deploy a trained scikit-learn or TensorFlow model as a production HTTP endpoint in Azure ML with automatic request validation and response formatting.
- Monitor inference latency and error rates in production by leveraging built-in OpenTelemetry metrics and Azure Monitor export.
- Host a batch of related scoring functions (e.g., preprocessing, model inference, postprocessing) as separate endpoints on a single server instance.
- Migrate existing Flask-based scoring scripts to Azure ML without rewriting the core logic, using the server's Flask compatibility layer.
- Configure separate health check and inference ports to isolate monitoring traffic from production scoring requests.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides an HTTP server for serving Azure Machine Learning models with built-in support for Flask-based scoring scripts, OpenTelemetry observability, and Azure Monitor integration.
Yes, if you are deploying models through Azure ML and need a standardized, Microsoft-supported HTTP server for inference. The package is actively maintained with recent dependency upgrades (Pydantic 2.12 in version 1.5.1) and has no known security vulnerabilities. The aging maintenance status reflects a stable, mature codebase rather than abandonment. However, review the unclear proprietary license terms before use, and ensure your scoring scripts are compatible with Flask 2.x and Pydantic 2.0+.
Install
azureml-inference-server-http on PyPI
pip
pip install azureml-inference-server-httpuv
uv add azureml-inference-server-httppoetry
poetry add azureml-inference-server-httpInstalling azureml-inference-server-http
Before you install
Low install friction with a pure-Python wheel. Maintenance status is aging (239 days since last release), though the package receives periodic updates for dependency upgrades and security patches.
License in practice
License treatment is unclear; the raw license URL points to a Microsoft proprietary license at https://aka.ms/azureml-sdk-license with no SPDX identifier. Review Microsoft's terms before use in proprietary or open-source contexts.
Quickstart
pip install azureml-inference-server-http
from azureml_inference_server_http.server import Server
from inference_schema.schema_decorators import input_schema, output_schema
# Define your score function with decorators
@input_schema('data', ...)
@output_schema(...)
def score(data):
return prediction
# Server loads and runs the scoring script
Requires Python 3.9 or later; Python 3.8 support was dropped in version 1.4.0. Pydantic 2.0+ is required as of version 1.1.0, which is a breaking change from Pydantic 1.x.
Verify before relying
- Whether the package works with custom Flask 2.x request handling beyond the documented compatibility layer removal
- Performance characteristics and throughput limits under production load
- Whether OpenTelemetry integration requires additional Azure Monitor configuration beyond the exporter dependency
Package facts
| License | https://aka.ms/azureml-sdk-license (unclear) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 14 — flask, flask-cors, gunicorn, inference-schema, opentelemetry-sdk, opentelemetry-api, opentelemetry-semantic-conventions, azure-monitor-opentelemetry-exporter, psutil, pydantic, pydantic-settings, waitress, werkzeug, certifi |
| Maintenance | aging — 239 days since the last release |
| First released | |
| Downloads | 181,485/month — #10,126 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azureml_inference_server_http-1.5.1-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
azureml-contrib-servicesProvides utilities for handling raw HTTP…
unclear · top 15,000 on PyPI
azureml-mlflowIntegrates MLflow experiment tracking and model…
permissive · top 5,000 on PyPI
azureml-train-restclients-hyperdriveProvides REST client classes for creating and…
unclear · top 15,000 on PyPI
azureml-ai-monitoringCollects model input and output data during…
permissive · top 15,000 on PyPI
azureml-defaultsazureml-defaults is a metapackage that bundles…
unclear · top 15,000 on PyPI
azureml-trainA deprecated wrapper package that redirects…
unclear · top 15,000 on PyPI
azuremlConnects to Azure Machine Learning Studio…
permissive · top 15,000 on PyPI
azure-ml-componentAuthoring, managing, and submitting Azure…
unclear · top 15,000 on PyPI
azureml-fsspecProvides a filesystem interface to Azure…
unclear · top 15,000 on PyPI
kserveKServe Python SDK provides server and client…
permissive · top 15,000 on PyPI