Describe the bug
Unable to specify custom environment name for the Azure CLI az containerapp connection create command via --customized-keys argument.
The documentation declares the use of --customized-keys, but it does not actually work, reporting as not being recognized.
https://learn.microsoft.com/en-us/cli/azure/containerapp/connection/create?view=azure-cli-latest#az-containerapp-connection-create-postgres-flexible
--customized-keys
The customized keys used to change default configuration names. Key is the original name, value is the customized name.
Original Implementation: #25515
Related command
az containerapp connection create postgres-flexible --connection {connection} --source-id /subscriptions/{subscription}/resourceGroups/{resource_group}/providers/Microsoft.App/containerApps/{container_app} --target-id /subscriptions/{subscription}/resourceGroups/{resource_group}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{server}/databases/{database} --client-type dotnet --system-identity -c {container} --customized-keys AZURE_POSTGRESQL_CONNECTIONSTRING=CUSTOMCONNSTR_POSTGRESQL
Errors
unrecognized arguments: --customized-keys AZURE_POSTGRESQL_CONNECTIONSTRING=CUSTOMCONNSTR_POSTGRESQL
Issue script & Debug output
az containerapp connection create postgres-flexible --connection {connection} --source-id /subscriptions/{subscription}/resourceGroups/{resource_group}/providers/Microsoft.App/containerApps/{container_app} --target-id /subscriptions/{subscription}/resourceGroups/{resource_group}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{server}/databases/{database} --client-type dotnet --system-identity -c {container} --customized-keys AZURE_POSTGRESQL_CONNECTIONSTRING=CUSTOMCONNSTR_POSTGRESQL --debug
cli.knack.log: File logging enabled - writing logs to 'C:\Users\{username}\.azure\logs'.
cli.knack.cli: Command arguments: ['containerapp', 'connection', 'create', 'postgres-flexible', '--connection', '{connection}', '--source-id', '/subscriptions/{subscription}/resourceGroups/{resource_group}/providers/Microsoft.App/containerApps/{container_app}', '--target-id', '/subscriptions/{subscription}/resourceGroups/{resource_group}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{server}/databases/{database}', '--client-type', 'dotnet', '--system-identity', '-c', '{container}', '--customized-keys', 'AZURE_POSTGRESQL_CONNECTIONSTRING=CUSTOMCONNSTR_POSTGRESQL', '--debug']
cli.knack.cli: __init__ debug log:
Enable color in terminal.
Enable VT mode.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x026FD538>, <function OutputProducer.on_global_arguments at 0x028C9CD0>, <function CLIQuery.on_global_arguments at 0x028E9928>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'containerapp': ['azure.cli.command_modules.serviceconnector', 'azext_serviceconnector_passwordless', 'azext_containerapp']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: serviceconnector 0.217 12 182
cli.azure.cli.core: Total (1) 0.217 12 182
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: containerapp 0.127 41 127 C:\Users\{username}\.azure\cliextensions\containerapp
cli.azure.cli.core: serviceconnector-passwordless 0.050 8 12 C:\Users\{username}\.azure\cliextensions\serviceconnector-passwordless
cli.azure.cli.core: Total (2) 0.177 49 139
cli.azure.cli.core: Loaded 52 groups, 309 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : containerapp connection create postgres-flexible
cli.azure.cli.core: Command table: containerapp connection create postgres
cli.azure.cli.core: remaining : flexible
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x04AB81D8>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\{username}\.azure\commands\2023-08-03.23-34-46.containerapp_connection_create_postgres-flexible.4412.log'.
az_command_data_logger: command args: containerapp connection create postgres-flexible --connection {} --source-id {} --target-id {} --client-type {} --system-identity -c {} --customized-keys {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x04AE1220>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x04AF02F8>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x04AF0388>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.azure.cli.core.command_recommender: "--customized-keys" is an invalid parameter for command "containerapp connection create postgres-flexible".
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=%7B%22command%22%3A+%22containerapp+connection+create+postgres-flexible%22%2C+%22parameters%22%3A+%22%22%7D&clientType=AzureCli&context=%7B%22versionNumber%22%3A+%222.46.0%22%2C+%22errorType%22%3A+%22UnrecognizedArguments%22%7D HTTP/1.1" 200 None
cli.azure.cli.core.command_recommender: "--customized-keys" is an invalid parameter for command "containerapp connection create postgres-flexible".
cli.azure.cli.core.azclierror: NoneType: None
cli.azure.cli.core.azclierror: unrecognized arguments: --customized-keys AZURE_POSTGRESQL_CONNECTIONSTRING=CUSTOMCONNSTR_POSTGRESQL
az_command_data_logger: unrecognized arguments: --customized-keys AZURE_POSTGRESQL_CONNECTIONSTRING=CUSTOMCONNSTR_POSTGRESQL
Examples from AI knowledge base:
https://aka.ms/cli_ref
Read more about the command in reference docs
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x04AB82F8>]
az_command_data_logger: exit code: 2
cli.__main__: Command ran in 1.132 seconds (init: 0.298, invoke: 0.835)
Expected behavior
A CLI command does not fail as described in the documentation.
https://learn.microsoft.com/en-us/cli/azure/containerapp/connection/create?view=azure-cli-latest#az-containerapp-connection-create-postgres-flexible
--customized-keys
The customized keys used to change default configuration names. Key is the original name, value is the customized name.
Environment Summary
azure-cli 2.51.0
core 2.51.0
telemetry 1.1.0
Extensions:
account 0.2.5
azure-devops 0.26.0
containerapp 0.3.36
serviceconnector-passwordless 0.3.6
Dependencies:
msal 1.24.0b1
azure-mgmt-resource 23.1.0b2
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\{username}\.azure\cliextensions'
Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:05:00) [MSC v.1929 32 bit (Intel)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response
Describe the bug
Unable to specify custom environment name for the Azure CLI
az containerapp connection createcommand via--customized-keysargument.The documentation declares the use of
--customized-keys, but it does not actually work, reporting as not being recognized.https://learn.microsoft.com/en-us/cli/azure/containerapp/connection/create?view=azure-cli-latest#az-containerapp-connection-create-postgres-flexible
Original Implementation: #25515
Related command
Errors
Issue script & Debug output
Expected behavior
A CLI command does not fail as described in the documentation.
https://learn.microsoft.com/en-us/cli/azure/containerapp/connection/create?view=azure-cli-latest#az-containerapp-connection-create-postgres-flexible
Environment Summary
Additional context
No response