Hello Angelo Martin Asuncion
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
Based on the issue description, the error message is indicating that the client with the specified object ID does not have the required permissions to perform the specified action. Reason could be incorrect scope or incorrect permissions.
To troubleshoot this issue, you can try the following steps:
Verify that the scope specified in the error message is correct and that the client has the required permissions at that scope.
Check if the client has the required permissions to perform the specified action. You can do this by checking the permissions specified in the role definition that you created.
Ensure that the client has the correct credentials and that they are up-to-date. You can try refreshing the credentials to see if that resolves the issue.
- Check if there are any conflicting role assignments that might be causing the issue. You can do this by checking the role assignments for the client and the scope in question.
In your case, it appears that the role definition and role assignment are correctly created. You can try refreshing the credentials for the client or verifying the object ID to ensure that it has the required permissions. Additionally, you can check if the scope specified in the role definition and role assignment matches the resource group and subscription specified in the error message.
Hope this helps.