azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

New-AzureRmRoleAssignment: -ServicePrincipalName parameter is misnamed

Open nmackenzie opened this issue 11 years ago • 7 comments

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

nmackenzie avatar Oct 25 '15 20:10 nmackenzie

This has been fixed. Closing this issue.

cormacpayne avatar Apr 11 '17 02:04 cormacpayne

@cormacpayne Can you please link to the commit where it was fixed and what it was changed to?

seansaleh avatar Apr 19 '17 23:04 seansaleh

@nmackenzie @seansaleh oops, I misread the issue and thought it had been resolved. That's my fault. Let me re-open the issue.

cormacpayne avatar Apr 19 '17 23:04 cormacpayne

I just hit this issue with 4.4.0 of AzureRM.Resources , will it be fixed ?

andyjballgit avatar Oct 05 '17 19:10 andyjballgit

@darshanhs90 Hey Haridarshan, would you mind taking a look at this issue?

cormacpayne avatar Oct 05 '17 20:10 cormacpayne

thx , a quick win would be to update help / add an .example.

andyjballgit avatar Oct 05 '17 20:10 andyjballgit

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

darshanhs90 avatar Dec 07 '17 00:12 darshanhs90