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?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,465 questions
{count} vote