New-AzureRmRoleAssignment: -ServicePrincipalName parameter is misnamed
The -ServicePrincipalName parameter to the New-AzureRmRoleAssignment seems to be misnamed since the parameter takes an ApplicationId NOT a service principal name. For example, the following comes from the official Azure documentation:
New-AzureRmRoleAssignment -RoleDefinitionName Reader -ServicePrincipalName $azureAdApplication.ApplicationId
This has been fixed. Closing this issue.
@cormacpayne Can you please link to the commit where it was fixed and what it was changed to?
@nmackenzie @seansaleh oops, I misread the issue and thought it had been resolved. That's my fault. Let me re-open the issue.
I just hit this issue with 4.4.0 of AzureRM.Resources , will it be fixed ?
@darshanhs90 Hey Haridarshan, would you mind taking a look at this issue?
thx , a quick win would be to update help / add an .example.
updated the help with an example in this pr https://github.com/Azure/azure-powershell/pull/5095
Closing this as the example is included in the next powershell release