VM created / but timed out trying to connect

Aaron B 1 Reputation point
2021-07-17T21:30:19.46+00:00

I'm trying to create a VM with the parameters below:

az vm create --no-wait --resource-group forecast1 --name forecast1vm1 --public-ip-address-dns-name forecast1vm1 --image microsoft-dsvm:ubuntu-1804:1804:21.06.01 --admin-username azureuser --ssh-key-value %homepath%/.ssh/id_rsa.pub --size Standard_L16s_v2 --storage-sku StandardSSD_LRS --public-ip-address-allocation dynamic

It seems to spin up the VM just fine (I see it under 'Resources' at the online portal).

Next, this part seems to run fine as well:

start ssh azureuser@forecast1vm1.westus2.cloudapp.azure.com /anaconda/envs/py37_default/bin/dask-scheduler
start ssh azureuser@forecast1vm1.westus2.cloudapp.azure.com /anaconda/envs/py37_default/bin/dask-worker tcp://forecast1vm1.westus2.cloudapp.azure.com:8786 --nprocs 16 --nthreads 1

But when trying to run a script subsequently:

OSError: Timed out trying to connect to 'tcp://forecast1vm1.westus2.cloudapp.azure.com:8786' after 10 s: connect() didn't finish in time

Are any of the parameters or URL for connecting to the VM now obsolete? This code was last run successfully ~12 months ago.

TYIA

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
5,971 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Cristian SPIRIDON 4,461 Reputation points
    2021-07-18T19:17:51.57+00:00

    Could be from NSG? Is port 8786 opened?

    Hope this helps!

    1 person found this answer helpful.