Skip to content

Commit 586bc44

Browse files
[Az.Resources] Adding ApplicationId parameter to get- and remove-azRoleAssignment cmdlets (Azure#26890)
* Update RemoveAzureRoleAssignmentCommand.cs Adding ApplicationId parameter, with aliases; - SPN - ServicePrincipalName * Update GetAzureRoleAssignmentCommand.cs Adding ApplicationId parameter, with aliases; - SPN - ServicePrincipalName * adding Applicaiton Id as Alias and remaning SerivcePrincipalName as param name --------- Co-authored-by: sebastian claesson <[email protected]>
1 parent 8d01932 commit 586bc44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Resources/Resources/RoleAssignments/GetAzureRoleAssignmentCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public class GetAzureRoleAssignmentCommand : ResourcesBaseCmdlet
6868
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = ParameterSet.SPN,
6969
HelpMessage = "The app SPN.")]
7070
[ValidateNotNullOrEmpty]
71-
[Alias("SPN")]
71+
[Alias("SPN", "ApplicationId")]
7272
public string ServicePrincipalName { get; set; }
7373

7474
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = ParameterSet.ResourceGroup,

src/Resources/Resources/RoleAssignments/RemoveAzureRoleAssignmentCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public class RemoveAzureRoleAssignmentCommand : ResourcesBaseCmdlet
6767
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = ParameterSet.ScopeWithSPN,
6868
HelpMessage = "The app SPN.")]
6969
[ValidateNotNullOrEmpty]
70-
[Alias("SPN")]
70+
[Alias("SPN", "ApplicationId")]
7171
public string ServicePrincipalName { get; set; }
7272

7373
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = ParameterSet.ResourceGroupWithObjectId,

0 commit comments

Comments
 (0)