Remove assgined Contributor role

דוד שושני 1 Reputation point
2020-07-04T19:35:57.683+00:00

Hello,
I have tried this cmdlet Remove-AzureRmRoleAssignment, to remove a Contributor role from AAD group that has the delegated Contributor role in my tenant.

I got this error:

PS C:\Users\myuser\Desktop> Remove-AzureRmRoleAssignment -ObjectId xxxxxxxxxxxxxxxxxxxxxxxxxxx
-RoleDefinitionName Contributor
Remove-AzureRmRoleAssignment : Method 'get_SerializationSettings' in type
'Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient' from assembly
'Microsoft.Azure.Commands.ResourceManager.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
does not have an implementation.
At line:1 char:1

  • Remove-AzureRmRoleAssignment -ObjectId xxxxxxxxxxxxxxxxxxxxxxxxxxx ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : NotSpecified: (:) [Remove-AzureRmRoleAssignment], TypeLoadException
  • FullyQualifiedErrorId : System.TypeLoadException,Microsoft.Azure.Commands.Resources.RemoveAzureRoleAssignmentCom
    mand

Anyone can help me remove this assigned role, I also cannot find it at the IAM portal
On the other hand, the managing tenant has still Contributor access

Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
709 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Laude 85,716 Reputation points
    2020-07-04T19:42:43.293+00:00
    1 person found this answer helpful.