Skip to content

Commit fbb008f

Browse files
author
Larry Franks
committed
writing
1 parent 082b138 commit fbb008f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

articles/machine-learning/how-to-deploy-managed-online-endpoints.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,15 @@ for endpoint in ml_client.online_endpoints.list():
733733

734734
# [ARM template](#tab/arm)
735735

736+
The `show` command contains information in `provisioning_status` for endpoint and deployment:
737+
738+
::: code language="azurecli" source="~/azureml-examples-main/cli/deploy-managed-online-endpoint.sh" ID="get_status" :::
736739

740+
You can list all the endpoints in the workspace in a table format by using the `list` command:
741+
742+
```azurecli
743+
az ml online-endpoint list --output table
744+
```
737745

738746
---
739747

@@ -768,6 +776,10 @@ ml_client.online_deployments.get_logs(
768776

769777
# [ARM template](#tab/arm)
770778

779+
:::code language="azurecli" source="~/azureml-examples-main/cli/deploy-managed-online-endpoint.sh" ID="get_logs" :::
780+
781+
By default, logs are pulled from inference-server. To see the logs from storage-initializer (it mounts assets like model and code to the container), add the `--container storage-initializer` flag.
782+
771783
---
772784

773785
For more information on deployment logs, see [Get container logs](how-to-troubleshoot-online-endpoints.md#get-container-logs).
@@ -819,6 +831,17 @@ ml_client.online_endpoints.invoke(
819831

820832
# [ARM template](#tab/arm)
821833

834+
You can use either the `invoke` command or a REST client of your choice to invoke the endpoint and score some data:
835+
836+
::: code language="azurecli" source="~/azureml-examples-main/cli/deploy-managed-online-endpoint.sh" ID="test_endpoint" :::
837+
838+
The following example shows how to get the key used to authenticate to the endpoint:
839+
840+
> [!TIP]
841+
> You can control which Azure Active Directory security principals can get the authentication key by assigning them to a custom role that allows `Microsoft.MachineLearningServices/workspaces/onlineEndpoints/token/action` and `Microsoft.MachineLearningServices/workspaces/onlineEndpoints/listkeys/action`. For more information, see [Manage access to an Azure Machine Learning workspace](how-to-assign-roles.md).
842+
843+
:::code language="azurecli" source="~/azureml-examples-main/cli/deploy-managed-online-endpoint.sh" ID="test_endpoint_using_curl_get_key":::
844+
822845
---
823846

824847
### (Optional) Update the deployment
@@ -921,6 +944,8 @@ ml_client.online_endpoints.begin_delete(name=online_endpoint_name)
921944

922945
# [ARM template](#tab/arm)
923946

947+
::: code language="azurecli" source="~/azureml-examples-main/cli/deploy-managed-online-endpoint.sh" ID="delete_endpoint" :::
948+
924949
---
925950

926951
## Next steps

0 commit comments

Comments
 (0)