Azure Machine Learning Compute Instance Access Error with Private Network

Takayoshi Enomoto 40 Reputation points
2023-11-13T02:50:45.97+00:00

Following error displayed when I selected notebooks on AML workspace:

Error: User does not have access to this compute instance. Please check if this compute instance is assigned to you and you have access to the workspace. Additionally, verify that you are on the correct network to access this compute instance.

My workspace is on a private network, and I am using a VPN gateway to access the AML workspace.

If I change the network to public, the error is not displayed.

How can I fix the problem while keeping a private network?

Additional information:

  • The error is also displayed when accessing JupyterLab.
  • I do not use CustomDNS Server
Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,333 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,762 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Ramr-msft 17,826 Reputation points
    2023-11-13T12:40:21.1566667+00:00

    @Takayoshi Enomoto Thanks for the question. Here is the document for troubleshooting guide. If you’re using a private network, make sure that your network configuration allows access to the compute instance. This includes checking your DNS configuration, browser configuration, and proxy configuration. If you’re using a VPN, make sure that the VPN is correctly configured to allow access to the compute instance.

    1 person found this answer helpful.
    0 comments No comments

  2. Takayoshi Enomoto 40 Reputation points
    2023-11-14T13:47:34.5266667+00:00

    I resolved by following steps.

    1. Get services endpoint_uri by following azure cli command.
      $ az ml compute show -g <resoucegroup name> -w <azuremachinelearning name> -n <compute instance name>
    2. Get workspace IP Address by refer to private DNS zone on azure portal.
    3. Add following line to "C:\Windows\System32\drivers\etc\hosts" on local PC.
      <workspace IP Address> <common part of endpoint_uri>
      ex. 10.0.0.11 ml-instance-001.japaneast.instances.azureml.ms
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.