@Andrei F Thanks for using Microsoft Q&A forum and posting your query.
I suspect you created the role assignment by
RoleDefinitionName
. When you create role assignment by role name, the cmdlet needs to get therole id
through role name using api Role Definitions - List Role Definitions - REST API (Azure Synapse) | Microsoft Learn, which need the workspace read permission and resulting in above error.To resolve the issue, please create role assignment by
role id
directly instead ofrole name
.Here are the role ID's:
"roleDefinitions": [
{
"roleId": "6e4bf58a-b8e1-4cc3-bbf9-d73143322b78",
"roleName": "Synapse Administrator"
},
{
"roleId": "7572bffe-f453-4b66-912a-46cc5ef38fda",
"roleName": "Synapse Contributor"
},
{
"roleId": "dd665582-e433-40ca-b183-1b1b33e73375",
"roleName": "Synapse Linked Data Manager"
},
{
"roleId": "05930f57-09a3-4c0d-9fa9-6d1eb91c178b",
"roleName": "Synapse Artifact Publisher"
},
{
"roleId": "53faaa0e-40b6-40c8-a2ff-e38f2d388875",
"roleName": "Synapse Artifact User"
},
{
"roleId": "e3844cc7-4670-42cb-9349-9bdac1ee7881",
"roleName": "Synapse Compute Operator"
},
{
"roleId": "5eb298b4-692c-4241-9cf0-f58a3b42bb25",
"roleName": "Synapse Credential User"
},
{
"roleId": "2a385764-43e8-416c-9825-7b18d05a2c4b",
"roleName": "Synapse User"
},
{
"roleId": "c3a6d2f1-a26f-4810-9b0f-591308d5cbf1",
"roleName": "Apache Spark Administrator"
},
{
"roleId": "7af0c69a-a548-47d6-aea3-d00e69bd83aa",
"roleName": "Synapse SQL Administrator"
},
{
"roleId": "8f9b2195-5b12-4a7c-af30-8f1f46197650",
"roleName": "Synapse Monitoring Operator"
}
]
Hope this helps. Let me know how it goes.
Please don’t forget to Accept Answer
and Yes
for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.