New-AzRoleAssignment: Exception of type 'Microsoft.Rest.Azure.CloudException' was thrown.

Alex Eldridge 6 Reputation points
2021-11-19T14:21:13.93+00:00

I cannot run New-AzRoleAssignment using a service principal account. There is no way to assign the azure AD graph API permissions as its greyed out and deprecated soon. is there an alternative?

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,721 questions
1 vote