|
266 | 266 | " ssh_port=22,\n", |
267 | 267 | " username=username,\n", |
268 | 268 | " 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", |
270 | 286 | " name=compute_target_name,\n", |
271 | 287 | " attach_configuration=attach_config)\n", |
272 | 288 | " attached_dsvm_compute.wait_for_completion(show_output=True)" |
|
0 commit comments