Skip to content

Commit 8e121b6

Browse files
committed
Add LocationCompleter to Sql cmdlets
1 parent cb9a777 commit 8e121b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ResourceManager/Sql/Commands.Sql/Server/Cmdlet/NewAzureSqlServer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1516
using Microsoft.Azure.Commands.ResourceManager.Common.Tags;
1617
using Microsoft.Azure.Commands.Sql.Common;
1718
using Microsoft.Rest.Azure;
@@ -51,6 +52,7 @@ public class NewAzureSqlServer : AzureSqlServerCmdletBase
5152
/// </summary>
5253
[Parameter(Mandatory = true,
5354
HelpMessage = "The location in which to create the server")]
55+
[LocationCompleter("Microsoft.Sql/servers")]
5456
[ValidateNotNullOrEmpty]
5557
public string Location { get; set; }
5658

0 commit comments

Comments
 (0)