Hi @Anand Rao Nednur ,
I understand that you are receiving the error, "Couldn't connect the workspace" and "Failed to assign roles to subscription."
In order to assign RBAC roles to a subscription, you need to be logged in with an account that has Microsoft.Authorization/roleAssignments/write
permissions, such as Role Based Access Control Administrator or User Access Administrator. Note also that to enable Sentinel, the account needs to have Contributor permissions on the subscription where the workspace resides.
If the permissions are set correctly and you are still seeing issues with the workspace connector, I would recommend disconnecting and reconnecting the Defender XDR connector and trying again.
I've also looped in a colleague from the Sentinel team to look into your request since I was unable to find documentation for those specific errors. I'll update this thread as I have more information.
If the information helped you, please Accept the answer. This will help us as well as others in the community who may be researching similar questions.