@@ -22,16 +22,16 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
22
22
using System . Text ;
23
23
24
24
[ Cmdlet ( "Remove" , Common . AzureRMConstants . AzureRMPrefix + "ManagementGroupDeploymentStack" ,
25
- SupportsShouldProcess = true , DefaultParameterSetName = RemoveByNameParameterSetName ) , OutputType ( typeof ( bool ) ) ]
25
+ SupportsShouldProcess = true , DefaultParameterSetName = RemoveByNameAndManagementGroupIdParameterSetName ) , OutputType ( typeof ( bool ) ) ]
26
26
public class RemoveAzManagementGroupDeploymentStack : DeploymentStacksCmdletBase
27
27
{
28
28
#region Cmdlet Parameters and Parameter Set Definitions
29
29
30
30
internal const string RemoveByResourceIdParameterSetName = "RemoveByResourceId" ;
31
- internal const string RemoveByNameParameterSetName = "RemoveByName " ;
31
+ internal const string RemoveByNameAndManagementGroupIdParameterSetName = "RemoveByNameAndManagementGroupId " ;
32
32
33
33
[ Alias ( "StackName" ) ]
34
- [ Parameter ( Position = 1 , Mandatory = true , ValueFromPipelineByPropertyName = true , ParameterSetName = RemoveByNameParameterSetName ,
34
+ [ Parameter ( Position = 1 , Mandatory = true , ValueFromPipelineByPropertyName = true , ParameterSetName = RemoveByNameAndManagementGroupIdParameterSetName ,
35
35
HelpMessage = "The name of the DeploymentStack to delete" ) ]
36
36
[ ValidateNotNullOrEmpty ]
37
37
public string Name { get ; set ; }
@@ -42,7 +42,7 @@ public class RemoveAzManagementGroupDeploymentStack : DeploymentStacksCmdletBase
42
42
[ ValidateNotNullOrEmpty ]
43
43
public string ResourceId { get ; set ; }
44
44
45
- [ Parameter ( Position = 0 , Mandatory = true , ValueFromPipelineByPropertyName = true ,
45
+ [ Parameter ( Position = 0 , Mandatory = true , ValueFromPipelineByPropertyName = true , ParameterSetName = RemoveByNameAndManagementGroupIdParameterSetName ,
46
46
HelpMessage = "The id of the ManagementGroup where the DeploymentStack is being deleted" ) ]
47
47
[ ValidateNotNullOrEmpty ]
48
48
public string ManagementGroupId { get ; set ; }
0 commit comments