Skip to content

Commit 9fdfe75

Browse files
bojovicmatijaMatija Bojovic
andauthored
Fixes to STG cmdlets params (#14549)
* fixing some errors with cmdlet * change positional argument * change default Co-authored-by: Matija Bojovic <[email protected]>
1 parent 6527209 commit 9fdfe75

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Sql/Sql/ServerTrustGroup/Cmdlet/GetAzureSqlServerTrustGroup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Sql.ServerTrustGroup.Cmdlet
2626
/// <summary>
2727
/// Cmdlet to retrieve a Azure Sql Server Trust Group.
2828
/// </summary>
29-
[Cmdlet(VerbsCommon.Get, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlServerTrustGroup"), OutputType(typeof(AzureSqlServerTrustGroupModel))]
29+
[Cmdlet(VerbsCommon.Get, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlServerTrustGroup", DefaultParameterSetName = "ListByLocationSet"), OutputType(typeof(AzureSqlServerTrustGroupModel))]
3030
public class GetAzureSqlServerTrustGroup : AzureSqlServerTrustGroupCmdletBase
3131
{
3232
/// <summary>

src/Sql/Sql/ServerTrustGroup/Cmdlet/NewAzureSqlServerTrustGroup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using Microsoft.Rest.Azure;
2020
using System;
2121
using System.Collections.Generic;
22+
using System.Globalization;
2223
using System.Linq;
2324
using System.Management.Automation;
2425
using System.Text;
@@ -28,7 +29,7 @@ namespace Microsoft.Azure.Commands.Sql.ServerTrustGroup.Cmdlet
2829
/// <summary>
2930
/// Cmdlet to create a new Azure Sql Server Trust Group.
3031
/// </summary>
31-
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlServerTrustGroup", DefaultParameterSetName = "GroupMemberObjectSet"), OutputType(typeof(AzureSqlServerTrustGroupModel))]
32+
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlServerTrustGroup", DefaultParameterSetName = "GroupMemberObjectSet", SupportsShouldProcess = true), OutputType(typeof(AzureSqlServerTrustGroupModel))]
3233
public class NewAzureSqlServerTrustGroup : AzureSqlServerTrustGroupCmdletBase
3334
{
3435
/// <summary>
@@ -84,7 +85,6 @@ public class NewAzureSqlServerTrustGroup : AzureSqlServerTrustGroupCmdletBase
8485
/// Gets or sets the trust scope of the ServerTrustGroup to use.
8586
/// </summary>
8687
[Parameter(Mandatory = false,
87-
Position = 4,
8888
HelpMessage = "The trust scope of the Server Trust Group to create.")]
8989
[ValidateNotNullOrEmpty]
9090
public List<String> TrustScope { get; set; }

0 commit comments

Comments
 (0)