Hi Rajitha Nellore
Greetings & Welcome to the Microsoft Q&A forum! Thank you for sharing your query.
The error you're encountering indicates that the Azure Active Directory (AAD) client (with object ID 0dae0dfa-9a0d-4999-9500-8a8656d419e2) does not have sufficient permissions to perform the action Microsoft.MachineLearningServices/workspaces/computes/read on the specified resource.
Here are some steps to troubleshoot and resolve this issue:
1.Verify Role Assignments
Even though you mentioned having the "AzureML Data Scientist" and "Contributor" roles, ensure that these roles are assigned at the correct scope (e.g., subscription, resource group, or workspace level). The error suggests that the required permissions are missing for the specific resource.
- Go to the Azure Portal.
- Navigate to the Resource Group or Workspace (avadevitsmlsvc) where the resource resides.
- Check the Access Control (IAM) settings.
- Ensure that your user or service principal has the necessary roles assigned.
- Required Permissions
- The error indicates that the action Microsoft.MachineLearningServices/workspaces/computes/read is being blocked. To resolve this:
- Ensure that your role includes the required permissions for Machine Learning Services. The "Contributor" role should suffice, but you may also need the "Owner" or "Machine Learning Workspace Contributor" role for full access.
- If you're using a service principal, ensure it has the correct role assignments.
- Check DefaultAzureCredential Configuration
- If you're using DefaultAzureCredential() for authentication, ensure that:
- The environment is correctly configured to authenticate the client.
- If you're using a service principal, verify that the AZURE_CLIENT_ID, AZURE_TENANT_ID, and AZURE_CLIENT_SECRET environment variables are set correctly.
Hope this helps. Do let us know if you have any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful.