Can you confirm what is the identity used based on the error message ?
This could be a service principal, managed identity, or user account.
The identity needs to have the appropriate role assigned in the Azure Machine Learning workspace. The most common role for managing agents is Contributor or Owner.
If you need more granular permissions, you can create a custom role with the specific action Microsoft.MachineLearningServices/workspaces/agents/action
.
Steps to Assign a Role:
- Go to the Azure Portal.
- Navigate to your Azure Machine Learning workspace.
- In the left-hand menu, select Access control (IAM).
- Click Add role assignment.
- Choose the appropriate role (Contributor or Owner) and assign it to the identity (using the object ID
c9e91242-b841-4102-891e-e423a03ea18a
)