Hi Hishan-2429,
This process should be pretty simple using Azure PowerShell commands such as:
New-AzRoleAssignment -ObjectId <objectId> \-RoleDefinitionName <roleName>
-Scope /subscriptions/<subscriptionId>/resourcegroups/<resourceGroupName>/providers/<providerName>/<resourceType>/<resourceSubType>/<resourceName>
Here's a guide from Microsoft:
https://learn.microsoft.com/en-us/azure/role-based-access-control/role-assignments-powershell
--------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answer--