-
Notifications
You must be signed in to change notification settings - Fork 4k
Fix ServicePrincipalName misnaming in new-azurermroleassignment command #5095
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
### -------------------------- Example 5 -------------------------- | ||
``` | ||
PS C:\> $servicePrincipal = New-AzureRmADServicePrincipal -DisplayName "testServiceprincipal" | ||
PS C:\> New-AzureRmRoleAssignment -RoleDefinitionName "Reader" -ServicePrincipalName $servicePrincipal.ApplicationId |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@darshanhs90 I believe the user from the issue is suggesting that ServicePrincipalName
be renamed to ApplicationId
. If that is the case, then we rename the parameter to ApplicationId
and add an alias to ServicePrincipalName
. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure sounds good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will update the pr once this [ https://github.com//pull/5023 ] gets merged,since i would need to rerecord the tests once i change the parameter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@darshanhs90 that PR has been merged
Fix to the following issue #1166
Description
This checklist is used to make sure that common guidelines for a pull request are followed. You can find a more complete discussion of PowerShell cmdlet best practices here.
General Guidelines
Testing Guidelines
Cmdlet Signature Guidelines
ShouldProcess
and haveSupportShouldProcess=true
specified in the cmdlet attribute. You can find more information onShouldProcess
here.OutputType
attribute if any output is produced - if the cmdlet produces no output, it should implement aPassThru
parameter.Cmdlet Parameter Guidelines