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:
- 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.
- 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.
- 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>
- 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.
- 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.
- 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
- 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.
- 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.
- Open the developer tools in your browser (ex:
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.