-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Describe the bug
When the cosmosdb-preview extension is installed, the --minimal-tls-version argument is no longer recognized.
Related command
az cosmosdb create --subscription --name --resource-group --kind globaldocumentdb --default-consistency-level BoundedStaleness --minimal-tls-version Tls12 --public-network-access Disabled --locations regionName=uksouth failoverPriority=0 isZoneRedundant=True --max-interval 300 --max-staleness-prefix 100000 --output json
Errors
When cosmosdb-preview is NOT installed: success with json output, e.g.
{
"analyticalStorageConfiguration": {
"schemaType": "WellDefined"
},
"apiProperties": null,
When cosmosdb-preview is installed:
unrecognized arguments: --minimal-tls-version Tls12
Issue script & Debug output
az cosmosdb create --subscription --name --resource-group --kind globaldocumentdb --default-consistency-level BoundedStaleness --minimal-tls-version Tls12 --public-network-access Disabled --locations regionName=uksouth failoverPriority=0 isZoneRedundant=True --max-interval 300 --max-staleness-prefix 100000 --output json --debug
cli.knack.cli: Command arguments: ['cosmosdb', 'create', '--subscription', '', '--name', '', '--resource-group', '', '--kind', 'globaldocumentdb', '--default-consistency-level', 'BoundedStaleness', '--minimal-tls-version', 'Tls12', '--public-network-access', 'Disabled', '--locations', 'regionName=uksouth', 'failoverPriority=0', 'isZoneRedundant=True', '--max-interval', '300', '--max-staleness-prefix', '100000', '--output', 'json', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7bd1bd8d28b0>, <function OutputProducer.on_global_arguments at 0x7bd1bd7974c0>, <function CLIQuery.on_global_arguments at 0x7bd1bd7319d0>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'cosmosdb': ['azure.cli.command_modules.cosmosdb', 'azext_cosmosdb_preview']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: cosmosdb 0.145 58 200
cli.azure.cli.core: Total (1) 0.145 58 200
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name Load Time Groups Commands Directory
cli.azure.cli.core: cosmosdb-preview 0.432 52 154 /home/jorogg/.azure/cliextensions/cosmosdb-preview
cli.azure.cli.core: Total (1) 0.432 52 154
cli.azure.cli.core: Loaded 81 groups, 298 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : cosmosdb create
cli.azure.cli.core: Command table: cosmosdb create
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7bd1bcaa3700>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/home/jorogg/.azure/commands/2025-09-22.14-24-02.cosmosdb_create.65014.log'.
az_command_data_logger: command args: cosmosdb create --subscription {} --name {} --resource-group {} --kind {} --default-consistency-level {} --minimal-tls-version {} --public-network-access {} --locations {} {} {} --max-interval {} --max-staleness-prefix {} --output {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x7bd1bca4f310>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x7bd1bc995790>, <function register_cache_arguments..add_cache_arguments at 0x7bd1bc9958b0>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x7bd1bc995940>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs [<function _documentdb_deprecate at 0x7bd1bc934310>]
cli.azure.cli.core.command_recommender: "--minimal-tls-version" is an invalid parameter for command "cosmosdb create".
urllib3.connectionpool: Starting new HTTPS connection (1): app.aladdin.microsoft.com:443
urllib3.connectionpool: https://app.aladdin.microsoft.com:443 "GET /api/v1.0/suggestions?query= HTTP/1.1" 200 None
cli.azure.cli.core.command_recommender: "--minimal-tls-version" is an invalid parameter for command "cosmosdb create".
cli.azure.cli.core.azclierror: NoneType: None
Expected behavior
Expect the argument to work with the preview extension.
Environment Summary
az --version
azure-cli 2.73.0 *
core 2.73.0 *
telemetry 1.1.0
Extensions:
cosmosdb-preview 1.6.1
kusto 0.5.0
sentinel 0.2.0
Dependencies:
msal 1.32.3
azure-mgmt-resource 23.3.0
Python location '/home/jorogg/code/'
Config directory '/home/jorogg/.azure'
Extensions directory '/home/jorogg/.azure/cliextensions'
Python (Linux) 3.9.20 (main, Oct 2 2024, 11:51:12)
[GCC 11.4.0]
Legal docs and information: aka.ms/AzureCliLegal
You have 2 update(s) available. Consider updating your CLI installation with 'az upgrade'
Extension versions:
az extension list
[
{
"experimental": false,
"extensionType": "whl",
"name": "cosmosdb-preview",
"path": "/home/jorogg/.azure/cliextensions/cosmosdb-preview",
"preview": false,
"version": "1.6.1"
},
{
"experimental": false,
"extensionType": "whl",
"name": "kusto",
"path": "/home/jorogg/.azure/cliextensions/kusto",
"preview": false,
"version": "0.5.0"
},
{
"experimental": false,
"extensionType": "whl",
"name": "sentinel",
"path": "/home/jorogg/.azure/cliextensions/sentinel",
"preview": true,
"version": "0.2.0"
}
]
Additional context
No response