Encountered an error "Failed to get the list of workspaces"

Trinh Tran 0 Reputation points
2024-12-08T07:43:47.68+00:00

Hi Team,

I’m encountering the error “Failed to get the list of workspaces” after logging into my account at https://ml.azure.com/.

Could you please help identify the issue?

Screenshot 2024-12-08 at 14.42.05

Regards!

Trinh Tran

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,335 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Vinodh247 34,666 Reputation points MVP Volunteer Moderator
    2024-12-08T13:41:33.7366667+00:00

    Hi Trinh Tran,

    Thanks for reaching out to Microsoft Q&A.

    The error "Failed to get the list of workspaces" with the message PassthroughTokenValidationFailed: Token validation failed typically occurs due to a misconfiguration or permission issue with the Azure Machine Learning service.

    Here are the common causes and solutions for this issue:

    1. Insufficient Permissions:
      • Ensure your Azure account has the correct permissions to access the workspaces.
      • Check that your user account has at least the Contributor role assigned on the subscription or resource group that contains the Machine Learning workspaces.
      • Verify that you are added as a user in the Azure Machine Learning workspace.
    2. AAD Issues:
      • If you are using a service principal or Managed Identity to authenticate, confirm that it has access to the Azure Machine Learning workspace and the proper role assignment.
      • Check that the AAD token is not expired. Logging out and back into the portal may help refresh your token.
    3. Tenant or Subscription Context Issue:
      • Ensure you are logged into the correct Azure tenant or subscription that contains the workspaces.
      • If you manage multiple tenants, verify that you have switched to the correct directory from the Azure portal or CLI using: az account set --subscription <subscription-id>
    4. Region-Specific or Service Principal Token Issues:
      • Check the Azure region where your workspaces are hosted. If you are accessing a workspace in a region-specific configuration, ensure that the token you are using is valid for that specific region.
    5. Browser Caching or Network Problems:
      • Clear your browser cache and cookies, then log back into the portal.
      • If using a VPN, ensure it does not block access to the Azure Machine Learning resources.
    6. Resource Provider Registration:
      • Verify that the required Azure resource providers are registered in your subscription. Run the following command in Azure CLI: az provider register --namespace Microsoft.MachineLearningServices
    7. Azure Role Assignments:
      • Verify if there is a mismatch between your Azure role and the workspace access level. Go to Azure Portal > Subscription > Access Control (IAM) and ensure the role assignments are appropriate.
    8. Browser Debugging:
      • Open the developer tools in your browser (ex: F12 in Chrome or Edge) and check the network logs for more details about the error.

    Please feel free to click the 'Upvote' (Thumbs-up) button and 'Accept as Answer'. This helps the community by allowing others with similar queries to easily find the solution.

    0 comments No comments

  2. Trinh Tran 0 Reputation points
    2024-12-11T08:53:43.5966667+00:00

    Hi,

    The issue occurs after I complete the registration and log in again. I suspect it might be due to “Insufficient Permissions” but where and how can I check this?Screenshot 2024-12-11 at 15.51.31

    Regards,

    Trinh Tran


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.