diff --git a/src/Resources/Resources/RoleAssignments/GetAzureRoleAssignmentCommand.cs b/src/Resources/Resources/RoleAssignments/GetAzureRoleAssignmentCommand.cs index 9a87836f99eb..fac64ee4aab9 100644 --- a/src/Resources/Resources/RoleAssignments/GetAzureRoleAssignmentCommand.cs +++ b/src/Resources/Resources/RoleAssignments/GetAzureRoleAssignmentCommand.cs @@ -68,8 +68,8 @@ public class GetAzureRoleAssignmentCommand : ResourcesBaseCmdlet [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = ParameterSet.SPN, HelpMessage = "The app SPN.")] [ValidateNotNullOrEmpty] - [Alias("SPN")] - public string ServicePrincipalName { get; set; } + [Alias("SPN", "ServicePrincipalName")] + public string ApplicationId { get; set; } [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = ParameterSet.ResourceGroup, HelpMessage = "Resource group to assign the role to.")]