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-local-container-notebook-vm.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,16 +58,33 @@ An example notebook that demonstrates local deployments is included on your comp
58
58
59
59
To submit sample data to the running service, use the following code. Replace the value of `service_url` with the URL of from the previous step:
60
60
61
+
> [!NOTE]
62
+
> When authenticating to a deployment on the compute instance, the authentication is made using Azure Active Directory. The call to `interactive_auth.get_authentication_header()` in the example code authenticates you using AAD, and returns a header that can then be used to authenticate to the service on the compute instance. For more information, see [Set up authentication for Azure Machine Learning resources and workflows](how-to-setup-authentication.md#interactive-authentication).
63
+
>
64
+
> When authenticating to a deployment on Azure Kubernetes Service or Azure Container Instances, a different authentication method is used. For more information on, see [Set up authentication for Azure Machine Learning resources and workflows](how-to-setup-authentication.md#web-service-authentication).
65
+
61
66
```python
62
67
import requests
63
68
import json
69
+
from azureml.core.authentication import InteractiveLoginAuthentication
70
+
71
+
# Get a token to authenticate to the compute instance from remote
0 commit comments