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
Azure Machine Learning provides a diagnostic API that can be used to identify problems with your workspace. Errors returned in the diagnostics report include information on how to resolve the problem.
19
24
20
25
You can use the workspace diagnostics from the Azure Machine Learning studio or Python SDK.
21
26
22
27
## Prerequisites
23
28
24
-
* An Azure Machine learning workspace. If you don't have one, see [Create a workspace](quickstart-create-resources.md).
25
-
* The [Azure Machine Learning SDK for Python](/python/api/overview/azure/ml).
From [Azure Machine Learning studio](https://ml.azure.com) or the Python SDK, you can run diagnostics on your workspace to check your setup. To run diagnostics, select the '__?__' icon from the upper right corner of the page. Then select __Run workspace diagnostics__.
@@ -35,19 +40,19 @@ After diagnostics run, a list of any detected problems is returned. This list in
35
40
36
41
The following snippet demonstrates how to use workspace diagnostics from Python
@@ -75,9 +80,8 @@ The response is a JSON document that contains information on any problems detect
75
80
76
81
If no problems are detected, an empty JSON document is returned.
77
82
78
-
For more information, see the [Workspace.diagnose_workspace()](/python/api/azureml-core/azureml.core.workspace(class)#diagnose-workspace-diagnose-parameters-) reference.
83
+
For more information, see the [Workspace](/python/api/azure-ai-ml/azure.ai.ml.entities.workspace) reference.
Azure Machine Learning provides a diagnostic API that can be used to identify problems with your workspace. Errors returned in the diagnostics report include information on how to resolve the problem.
24
+
25
+
In this article, learn how to use the workspace diagnostics from the Azure Machine Learning Python SDK v1.
26
+
27
+
## Prerequisites
28
+
29
+
* An Azure Machine learning workspace. If you don't have one, see [Create a workspace](../quickstart-create-resources.md).
30
+
* The [Azure Machine Learning SDK for Python](/python/api/overview/azure/ml).
31
+
32
+
## Diagnostics from Python
33
+
34
+
The following snippet demonstrates how to use workspace diagnostics from Python
The response is a JSON document that contains information on any problems detected with the workspace. The following JSON is an example response:
53
+
54
+
```json
55
+
{
56
+
'value': {
57
+
'user_defined_route_results': [],
58
+
'network_security_rule_results': [],
59
+
'resource_lock_results': [],
60
+
'dns_resolution_results': [{
61
+
'code': 'CustomDnsInUse',
62
+
'level': 'Warning',
63
+
'message': "It is detected VNet '/subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Network/virtualNetworks/<virtual-network-name>' of private endpoint '/subscriptions/<subscription-id>/resourceGroups/larrygroup0916/providers/Microsoft.Network/privateEndpoints/<workspace-private-endpoint>' is not using Azure default dns. You need to configure your DNS server and check https://docs.microsoft.com/azure/machine-learning/how-to-custom-dns to make sure the custom dns is set up correctly."
64
+
}],
65
+
'storage_account_results': [],
66
+
'key_vault_results': [],
67
+
'container_registry_results': [],
68
+
'application_insights_results': [],
69
+
'other_results': []
70
+
}
71
+
}
72
+
```
73
+
74
+
If no problems are detected, an empty JSON document is returned.
75
+
76
+
For more information, see the [Workspace.diagnose_workspace()](/python/api/azureml-core/azureml.core.workspace(class)#diagnose-workspace-diagnose-parameters-) reference.
0 commit comments