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
Enabling logging during image creation will allow you to see any errors during the build process. Set the `show_output` param on the `wait_for_deployment()` function.
84
-
85
-
```python
86
-
from azureml.core.webservice import Webservice
87
-
88
-
service = Webservice.deploy_from_image(deployment_config=your_config,
89
-
image=image,
90
-
name="example-image",
91
-
workspace=ws
92
-
)
93
-
94
-
service.wait_for_deployment(show_output=True)
95
-
```
96
-
97
81
## Logging for deployed models
98
82
99
83
To retrieve logs from a previously deployed web service, load the service and use the `get_logs()` function. The logs may contain detailed information about any errors that occurred during deployment.
Copy file name to clipboardExpand all lines: articles/machine-learning/how-to-setup-authentication.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,7 +165,7 @@ ws.get_details()
165
165
166
166
The service principal created in the steps above can also be used to authenticate to the Azure Machine Learning [REST API](https://docs.microsoft.com/rest/api/azureml/). You use the Azure Active Directory [client credentials grant flow](https://docs.microsoft.com/azure/active-directory/develop/v1-oauth2-client-creds-grant-flow), which allow service-to-service calls for headless authentication in automated workflows. The examples are implemented with the [ADAL library](https://docs.microsoft.com/azure/active-directory/develop/active-directory-authentication-libraries) in both Python and Node.js, but you can also use any open-source library that supports OpenID Connect 1.0.
167
167
168
-
> ![NOTE]
168
+
> [!NOTE]
169
169
> MSAL.js is a newer library than ADAL, but you cannot do service-to-service authentication using client credentials with MSAL.js, since it is primarily a client-side library intended
170
170
> for interactive/UI authentication tied to a specific user. We recommend using ADAL as shown below to build automated workflows with the REST API.
0 commit comments