Skip to content

Commit e0ea99a

Browse files
authored
Merge pull request Azure#862 from Azure/release_update/Release-41
update samples from Release-41 as a part of SDK release
2 parents ed0ce9e + b06f5ce commit e0ea99a

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

how-to-use-azureml/training/train-in-spark/train-in-spark.ipynb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,20 @@
149149
" ssh_port=22, \n",
150150
" username=os.environ.get('hdiusername', '<ssh_username>'), \n",
151151
" password=os.environ.get('hdipassword', '<my_password>'))\n",
152+
"\n",
153+
"# The following Azure regions do not support attaching a HDI Cluster using the public IP address of the HDI Cluster.\n",
154+
"# Instead, use the Azure Resource Manager ID of the HDI Cluster with the resource_id parameter:\n",
155+
"# US East\n",
156+
"# US West 2\n",
157+
"# US South Central\n",
158+
"# The resource ID of the HDI Cluster can be constructed using the\n",
159+
"# subscription ID, resource group name, and cluster name using the following string format:\n",
160+
"# /subscriptions/<subscription_id>/resourceGroups/<resource_group>/providers/Microsoft.HDInsight/clusters/<cluster_name>. \n",
161+
"# If in US East, US West 2, or US South Central, use the following instead:\n",
162+
"# attach_config = HDInsightCompute.attach_configuration(resource_id='<resource_id>',\n",
163+
"# ssh_port=22,\n",
164+
"# username=os.environ.get('hdiusername', '<ssh_username>'),\n",
165+
"# password=os.environ.get('hdipassword', '<my_password>'))\n",
152166
" hdi_compute = ComputeTarget.attach(workspace=ws, \n",
153167
" name='myhdi', \n",
154168
" attach_configuration=attach_config)\n",

how-to-use-azureml/training/train-on-remote-vm/train-on-remote-vm.ipynb

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,23 @@
266266
" ssh_port=22,\n",
267267
" username=username,\n",
268268
" private_key_file='./.ssh/id_rsa')\n",
269-
" attached_dsvm_compute = ComputeTarget.attach(workspace=ws,\n",
269+
"\n",
270+
"\n",
271+
"# The following Azure regions do not support attaching a virtual machine using the public IP address of the VM.\n",
272+
"# Instead, use the Azure Resource Manager ID of the VM with the resource_id parameter:\n",
273+
"# US East\n",
274+
"# US West 2\n",
275+
"# US South Central\n",
276+
"# The resource ID of the VM can be constructed using the\n",
277+
"# subscription ID, resource group name, and VM name using the following string format:\n",
278+
"# /subscriptions/<subscription_id>/resourceGroups/<resource_group>/providers/Microsoft.Compute/virtualMachines/<vm_name>. \n",
279+
"# If in US East, US West 2, or US South Central, use the following instead:\n",
280+
"# attach_config = RemoteCompute.attach_configuration(resource_id='<resource_id>',\n",
281+
"# ssh_port=22,\n",
282+
"# username='username',\n",
283+
"# private_key_file='./.ssh/id_rsa')\n",
284+
"\n",
285+
" attached_dsvm_compute = ComputeTarget.attach(workspace=ws,\n",
270286
" name=compute_target_name,\n",
271287
" attach_configuration=attach_config)\n",
272288
" attached_dsvm_compute.wait_for_completion(show_output=True)"

0 commit comments

Comments
 (0)