From 1ddbc00a216064eaad727a2c6148bd59f16649d1 Mon Sep 17 00:00:00 2001 From: Sebastian Claesson <34689432+SebastianClaesson@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:07:35 +0100 Subject: [PATCH 1/2] Update RemoveAzureRoleAssignmentCommand.cs Adding ApplicationId parameter, with aliases; - SPN - ServicePrincipalName --- .../RoleAssignments/RemoveAzureRoleAssignmentCommand.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Resources/Resources/RoleAssignments/RemoveAzureRoleAssignmentCommand.cs b/src/Resources/Resources/RoleAssignments/RemoveAzureRoleAssignmentCommand.cs index 5e26dddf255c..d767acbafed9 100644 --- a/src/Resources/Resources/RoleAssignments/RemoveAzureRoleAssignmentCommand.cs +++ b/src/Resources/Resources/RoleAssignments/RemoveAzureRoleAssignmentCommand.cs @@ -67,8 +67,8 @@ public class RemoveAzureRoleAssignmentCommand : ResourcesBaseCmdlet [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = ParameterSet.ScopeWithSPN, 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.ResourceGroupWithObjectId, HelpMessage = "Resource group to assign the role to.")] From d475649e14d20b6fb38bbbc22b25d88f25a7a48c Mon Sep 17 00:00:00 2001 From: Sebastian Claesson <34689432+SebastianClaesson@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:08:18 +0100 Subject: [PATCH 2/2] Update GetAzureRoleAssignmentCommand.cs Adding ApplicationId parameter, with aliases; - SPN - ServicePrincipalName --- .../RoleAssignments/GetAzureRoleAssignmentCommand.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.")]