You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/machine-learning/how-to-deploy-mlflow-models-online-endpoints.md
+46-1Lines changed: 46 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -543,8 +543,24 @@ version = registered_model.version
543
543
544
544
When your deployment is ready, you can use it to serve requests. One way to test the deployment is by using the built-in invocation capability in the deployment client that you use. In the examples repository, the sample-request-sklearn.json file contains the following JSON code. You can use it as a sample request filefor the deployment.
> This file uses the `input_data` key instead of `inputs`, which MLflow serving uses. Azure Machine Learning requires a different inputformat to be able to automatically generate the swagger contracts for the endpoints. For more information about expected input formats, see [Deployment in the MLflow built-in server vs. deployment in Azure Machine Learning inferencing server](how-to-deploy-mlflow-models.md#models-deployed-in-azure-machine-learning-vs-models-deployed-in-the-mlflow-built-in-server).
550
566
@@ -557,7 +573,7 @@ Submit a request to the endpoint:
557
573
# [Python (Azure Machine Learning SDK)](#tab/sdk)
558
574
559
575
```python
560
-
ml_client.online_endpoints.invoke(
576
+
response=ml_client.online_endpoints.invoke(
561
577
endpoint_name=endpoint_name,
562
578
request_file="sample-request-sklearn.json",
563
579
)
@@ -588,13 +604,42 @@ MLflow models can use the __Test__ tab to create invocations to the created endp
588
604
589
605
The response should be similar to the following text:
590
606
607
+
# [Azure CLI](#tab/cli)
608
+
591
609
```json
592
610
[
593
611
11633.100167144921,
594
612
8522.117402884991
595
613
]
596
614
```
597
615
616
+
# [Python (Azure Machine Learning SDK)](#tab/sdk)
617
+
618
+
```json
619
+
[
620
+
11633.100167144921
621
+
]
622
+
```
623
+
624
+
# [Python (MLflow SDK)](#tab/mlflow)
625
+
626
+
```json
627
+
[
628
+
11633.100167144921
629
+
]
630
+
```
631
+
632
+
# [Studio](#tab/studio)
633
+
634
+
```json
635
+
[
636
+
11633.100167144921,
637
+
8522.117402884991
638
+
]
639
+
```
640
+
641
+
---
642
+
598
643
> [!IMPORTANT]
599
644
> For MLflow no-code-deployment, **[testing via local endpoints](how-to-deploy-online-endpoints.md#deploy-and-debug-locally-by-using-a-local-endpoint)** is currently not supported.
0 commit comments