diff --git a/how-to-use-azureml/training/train-in-spark/train-in-spark.ipynb b/how-to-use-azureml/training/train-in-spark/train-in-spark.ipynb index b658eba0..7fc51604 100644 --- a/how-to-use-azureml/training/train-in-spark/train-in-spark.ipynb +++ b/how-to-use-azureml/training/train-in-spark/train-in-spark.ipynb @@ -149,6 +149,20 @@ " ssh_port=22, \n", " username=os.environ.get('hdiusername', ''), \n", " password=os.environ.get('hdipassword', ''))\n", + "\n", + "# The following Azure regions do not support attaching a HDI Cluster using the public IP address of the HDI Cluster.\n", + "# Instead, use the Azure Resource Manager ID of the HDI Cluster with the resource_id parameter:\n", + "# US East\n", + "# US West 2\n", + "# US South Central\n", + "# The resource ID of the HDI Cluster can be constructed using the\n", + "# subscription ID, resource group name, and cluster name using the following string format:\n", + "# /subscriptions//resourceGroups//providers/Microsoft.HDInsight/clusters/. \n", + "# If in US East, US West 2, or US South Central, use the following instead:\n", + "# attach_config = HDInsightCompute.attach_configuration(resource_id='',\n", + "# ssh_port=22,\n", + "# username=os.environ.get('hdiusername', ''),\n", + "# password=os.environ.get('hdipassword', ''))\n", " hdi_compute = ComputeTarget.attach(workspace=ws, \n", " name='myhdi', \n", " attach_configuration=attach_config)\n", diff --git a/how-to-use-azureml/training/train-on-remote-vm/train-on-remote-vm.ipynb b/how-to-use-azureml/training/train-on-remote-vm/train-on-remote-vm.ipynb index 7d2b546b..76a08906 100644 --- a/how-to-use-azureml/training/train-on-remote-vm/train-on-remote-vm.ipynb +++ b/how-to-use-azureml/training/train-on-remote-vm/train-on-remote-vm.ipynb @@ -266,7 +266,23 @@ " ssh_port=22,\n", " username=username,\n", " private_key_file='./.ssh/id_rsa')\n", - " attached_dsvm_compute = ComputeTarget.attach(workspace=ws,\n", + "\n", + "\n", + "# The following Azure regions do not support attaching a virtual machine using the public IP address of the VM.\n", + "# Instead, use the Azure Resource Manager ID of the VM with the resource_id parameter:\n", + "# US East\n", + "# US West 2\n", + "# US South Central\n", + "# The resource ID of the VM can be constructed using the\n", + "# subscription ID, resource group name, and VM name using the following string format:\n", + "# /subscriptions//resourceGroups//providers/Microsoft.Compute/virtualMachines/. \n", + "# If in US East, US West 2, or US South Central, use the following instead:\n", + "# attach_config = RemoteCompute.attach_configuration(resource_id='',\n", + "# ssh_port=22,\n", + "# username='username',\n", + "# private_key_file='./.ssh/id_rsa')\n", + "\n", + " attached_dsvm_compute = ComputeTarget.attach(workspace=ws,\n", " name=compute_target_name,\n", " attach_configuration=attach_config)\n", " attached_dsvm_compute.wait_for_completion(show_output=True)"