diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index 14891684d21..31c59b57e4d 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -56,6 +56,10 @@ Release History * Added new commands `az atp show` and `az atp update` to view and manage advanced threat protection settings for storage accounts. +**SQL** + +* [BREAKING CHANGE] `az sql db create`: Remove "WideWorldImportersStd" and "WideWorldImportersFull" as documented allowed values for "az sql db create --sample-name". These sample databases would always cause creation to fail. + **Storage** * Add a new command group `az storage share-rm` to use the Microsoft.Storage resource provider for Azure file share management operations. diff --git a/src/azure-cli/azure/cli/command_modules/sql/_params.py b/src/azure-cli/azure/cli/command_modules/sql/_params.py index 520187db55c..54fcc2a96d5 100644 --- a/src/azure-cli/azure/cli/command_modules/sql/_params.py +++ b/src/azure-cli/azure/cli/command_modules/sql/_params.py @@ -419,9 +419,11 @@ def load_arguments(self, _): arg_group=creation_arg_group, arg_type=get_enum_type(CatalogCollationType)) + # WideWorldImportersStd and WideWorldImportersFull cannot be successfully created. + # AdventureWorksLT is the only sample name that is actually supported. c.argument('sample_name', arg_group=creation_arg_group, - arg_type=get_enum_type(SampleName)) + arg_type=get_enum_type([SampleName.adventure_works_lt])) c.argument('license_type', arg_type=get_enum_type(DatabaseLicenseType))