Skip to content

Commit d90eae4

Browse files
authored
Merge pull request #11211 from dingmeng-xue/fix-resources
Fix Remove-AzADGroup issue
2 parents 14b8d7e + fd6a671 commit d90eae4

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/Resources/Resources/ActiveDirectory/Cmdlets/RemoveAzureADGroupCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
namespace Microsoft.Azure.Commands.ActiveDirectory
2121
{
22-
[Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ADGroup", SupportsShouldProcess = true, DefaultParameterSetName = ParameterSet.ObjectId), OutputType(typeof(bool))]
22+
[Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ADGroup", SupportsShouldProcess = true, DefaultParameterSetName = ParameterSet.DisplayName), OutputType(typeof(bool))]
2323
public class RemoveAzureADGroupCommand : ActiveDirectoryBaseCmdlet
2424
{
2525
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = ParameterSet.ObjectId, HelpMessage = "The object id of the group to be removed.")]

src/Resources/Resources/ChangeLog.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
-->
2020
## Upcoming Release
2121
* Fixed for null reference bug in `Get-AzRoleAssignment`
22-
* Marked switch `-Force` and `-PassThru` optional in `Remove-AzADGroup` (#10849)
23-
* Fixed issue that `MailNickname` doesn't return in `Remove-AzADGroup` (#11167)
24-
* Fix for null reference bug in GetAzureRoleAssignmentCommand
25-
* Add breaking change attributes for upcoming changes to policy cmdlets
22+
* Marked switch `-Force` and `-PassThru` optional in `Remove-AzADGroup` [#10849]
23+
* Fixed issue that `MailNickname` doesn't return in `Remove-AzADGroup` [#11167]
24+
* Fixed issue that `Remove-AzADGroup` pipe operation doesn't work [#11171]
25+
* Fixed for null reference bug in GetAzureRoleAssignmentCommand
26+
* Added breaking change attributes for upcoming changes to policy cmdlets
2627
* Updated `Get-AzResourceGroup` to perform resource group tag filtering on server-side
2728
* Extended Tag cmdlets to accept -ResourceId
2829
- Get-AzTag -ResourceId

tools/StaticAnalysis/Exceptions/Az.Resources/BreakingChangeIssues.csv

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,5 @@
110110
"Microsoft.Azure.PowerShell.Cmdlets.ResourceManager.Cmdlets.dll","Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.SetAzurePolicyAssignmentCmdlet","Set-AzPolicyAssignment","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Set-AzPolicyAssignment' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Set-AzPolicyAssignment'."
111111
"Microsoft.Azure.PowerShell.Cmdlets.ResourceManager.Cmdlets.dll","Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.SetAzurePolicyAssignmentCmdlet","Set-AzPolicyAssignment","0","1050","The parameter set 'IdParameterSet' for cmdlet 'Set-AzPolicyAssignment' has been removed.","Add parameter set 'IdParameterSet' back to cmdlet 'Set-AzPolicyAssignment'."
112112
"Microsoft.Azure.PowerShell.Cmdlets.Resources.dll","Microsoft.Azure.Commands.ActiveDirectory.NewAzureADUserCommand","New-AzADUser","0","1050","The parameter set '__AllParameterSets' for cmdlet 'New-AzADUser' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'New-AzADUser'."
113-
"Microsoft.Azure.PowerShell.Cmdlets.ResourceManager.dll","Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.GetAzureDeploymentCmdlet","Get-AzDeployment","0","1050","The parameter set 'GetByDeploymentId' for cmdlet 'Get-AzDeployment' has been removed.","Add parameter set 'GetByDeploymentId' back to cmdlet 'Get-AzDeployment'."
113+
"Microsoft.Azure.PowerShell.Cmdlets.ResourceManager.dll","Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.GetAzureDeploymentCmdlet","Get-AzDeployment","0","1050","The parameter set 'GetByDeploymentId' for cmdlet 'Get-AzDeployment' has been removed.","Add parameter set 'GetByDeploymentId' back to cmdlet 'Get-AzDeployment'."
114+
"Microsoft.Azure.PowerShell.Cmdlets.Resources.dll","Microsoft.Azure.Commands.ActiveDirectory.RemoveAzureADGroupCommand","Remove-AzADGroup","0","1060","The parameter set 'ObjectIdParameterSet' for cmdlet 'Remove-AzADGroup' is no longer the default parameter set.","Change the default parameter for cmdlet 'Remove-AzADGroup' back to 'ObjectIdParameterSet'."

0 commit comments

Comments
 (0)