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-set-up-training-targets.md
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -149,21 +149,29 @@ Use the Azure Data Science Virtual Machine (DSVM) as the Azure VM of choice for
149
149
1.**Attach**: To attach an existing virtual machine as a compute target, you must provide the fully qualified domain name (FQDN), user name, and password for the virtual machine. In the example, replace \<fqdn> with the public FQDN of the VM, or the public IP address. Replace \<username> and \<password> with the SSH user name and password for the VM.
150
150
151
151
> [!IMPORTANT]
152
-
> The following Azure regions do not support attaching a virtual machine using the public IP address of the VM. Instead, use the Azure Resource Manager ID of the VM:
152
+
> The following Azure regions do not support attaching a virtual machine using the public IP address of the VM. Instead, use the Azure Resource Manager ID of the VM with the `resource_id` parameter:
153
153
>
154
154
> * US East
155
155
> * US West 2
156
156
> * US South Central
157
+
>
158
+
> The resource ID of the VM can be constructed using the subscription ID, resource group name, and VM name using the following string format: `/subscriptions/<subscription_id>/resourceGroups/<resource_group>/providers/Microsoft.Compute/virtualMachines/<vm_name>`.
159
+
157
160
158
161
```python
159
162
from azureml.core.compute import RemoteCompute, ComputeTarget
# If you authenticate with SSH keys instead, use this code:
169
177
# ssh_port=22,
@@ -200,11 +208,13 @@ Azure HDInsight is a popular platform for big-data analytics. The platform provi
200
208
1.**Attach**: To attach an HDInsight cluster as a compute target, you must provide the hostname, user name, and password for the HDInsight cluster. The following example uses the SDK to attach a cluster to your workspace. In the example, replace \<clustername> with the name of your cluster. Replace \<username> and \<password> with the SSH user name and password for the cluster.
201
209
202
210
> [!IMPORTANT]
203
-
> The following Azure regions do not support attaching an HDInsight cluster using the public IP address of the cluster. Instead, use the Azure Resource Manager ID of the cluster:
211
+
> The following Azure regions do not support attaching an HDInsight cluster using the public IP address of the cluster. Instead, use the Azure Resource Manager ID of the cluster with the `resource_id` parameter:
204
212
>
205
213
> * US East
206
214
> * US West 2
207
215
> * US South Central
216
+
>
217
+
> The resource ID of the cluster can be constructed using the subscription ID, resource group name, and cluster name using the following string format: `/subscriptions/<subscription_id>/resourceGroups/<resource_group>/providers/Microsoft.HDInsight/clusters/<cluster_name>`.
208
218
209
219
```python
210
220
from azureml.core.compute import ComputeTarget, HDInsightCompute
@@ -216,6 +226,11 @@ Azure HDInsight is a popular platform for big-data analytics. The platform provi
216
226
ssh_port=22,
217
227
username='<ssh-username>',
218
228
password='<ssh-pwd>')
229
+
# If you are in US East, US West 2, or US South Central, use the following instead:
0 commit comments