Azure / Azure/azure-cli

[Reference feedback]: This article references the command `az bot connections` that do not exist

Open
#31,620 1 comment 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad Auto-Assign Bot Services needs-triage Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Type of issue

Code doesn't work

### Reference command name

The article mentions the OAuth providers can be queried with `az bot connection listproviders`, however it does not exist, I believe it should be `az bot authsetting list-providers`

### Feedback

```
C:\_code> az bot connection listserviceproviders --debug
cli.knack.cli: Command arguments: ['bot', 'connection', 'listserviceproviders', '--debug']
cli.knack.cli: __init__ debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [, , ]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'bot': ['azure.cli.command_modules.botservice']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: botservice 0.011 12 42
cli.azure.cli.core: Total (1) 0.011 12 42
cli.azure.cli.core: Loaded 12 groups, 42 commands.
cli.azure.cli.core: Could not find a match in the command or command group table for 'bot connection listserviceproviders'. The index may be outdated.
cli.azure.cli.core: Loading all modules and extensions
cli.azure.cli.core: Discovered command modules: ['acr', 'acs', 'advisor', 'ams', 'apim', 'appconfig', 'appservice', 'aro', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'compute_recommender', 'computefleet', 'config', 'configure', 'consumption', 'container', 'containerapp', 'cosmosdb', 'databoxedge', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'identity', 'interactive', 'iot', 'keyvault', 'lab', 'managedservices', 'maps', 'marketplaceordering', 'monitor', 'mysql', 'netappfiles', 'network', 'policyinsights', 'privatedns', 'profile', 'rdbms', 'redis', 'relay', 'resource', 'role', 'search', 'security', 'servicebus', 'serviceconnector', 'servicefabric', 'signalr', 'sql', 'sqlvm', 'storage', 'synapse', 'util', 'vm']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: acr 0.852 36 149
cli.azure.cli.core: acs 0.056 15 79
cli.azure.cli.core: advisor 0.005 3 6
cli.azure.cli.core: ams 0.010 22 100
cli.azure.cli.core: apim 0.014 14 69
cli.azure.cli.core: appconfig 0.008 9 47
cli.azure.cli.core: appservice 0.060 80 277
cli.azure.cli.core: aro 0.030 1 10
cli.azure.cli.core: backup 0.010 16 60
cli.azure.cli.core: batch 0.077 32 96
cli.azure.cli.core: batchai 0.008 10 30
cli.azure.cli.core: billing 0.043 19 53
cli.azure.cli.core: botservice 0.002 12 42
cli.azure.cli.core: cdn 0.365 8 50
cli.azure.cli.core: cloud 0.006 1 7
cli.azure.cli.core: cognitiveservices 0.006 10 33
cli.azure.cli.core: compute_recommender 0.012 1 1
cli.azure.cli.core: computefleet 0.019 1 1
cli.azure.cli.core: config 0.005 2 7
cli.azure.cli.core: configure 0.004 2 5
cli.azure.cli.core: consumption 0.050 8 9
cli.azure.cli.core: container 0.026 2 17
cli.azure.cli.core: containerapp 0.254 37 123
cli.azure.cli.core: cosmosdb 0.029 58 200
cli.azure.cli.core: databoxedge 0.022 5 28
cli.azure.cli.core: dls 0.007 6 36
cli.azure.cli.core: dms 0.005 3 22
cli.azure.cli.core: eventgrid 0.009 25 96
cli.azure.cli.core: eventhubs 0.038 14 21
cli.azure.cli.core: extension 0.003 1 7
cli.azure.cli.core: feedback 0.003 1 2
cli.azure.cli.core: find 0.004 1 1
cli.azure.cli.core: hdinsight 0.021 9 42
cli.azure.cli.core: identity 0.006 2 11
cli.azure.cli.core: interactive 0.002 1 1
cli.azure.cli.core: iot 0.182 19 82
cli.azure.cli.core: keyvault 0.014 20 113
cli.azure.cli.core: lab 0.113 9 30
cli.azure.cli.core: managedservices 0.030 3 8
cli.azure.cli.core: maps 0.005 5 13
cli.azure.cli.core: marketplaceordering 0.010 1 2
cli.azure.cli.core: monitor 0.564 18 61
cli.azure.cli.core: mysql 0.207 16 56
cli.azure.cli.core: netappfiles 0.121 8 17
cli.azure.cli.core: network 0.123 104 346
cli.azure.cli.core: policyinsights 0.036 9 17
cli.azure.cli.core: privatedns 0.052 14 60
cli.azure.cli.core: profile 0.006 2 8
cli.azure.cli.core: rdbms 0.171 53 223
cli.azure.cli.core: redis 0.006 7 38
cli.azure.cli.core: relay 0.069 7 8
cli.azure.cli.core: resource 0.030 52 232
cli.azure.cli.core: role 0.006 17 62
cli.azure.cli.core: search 0.023 7 19
cli.azure.cli.core: security 0.028 48 98
cli.azure.cli.core: servicebus 0.023 13 17
cli.azure.cli.core: serviceconnector 0.036 20 323
cli.azure.cli.core: servicefabric 0.036 27 80
cli.azure.cli.core: signalr 0.006 10 42
cli.azure.cli.core: sql 0.029 56 215
cli.azure.cli.core: sqlvm 0.045 4 20
cli.azure.cli.core: storage 0.140 60 275
cli.azure.cli.core: synapse 0.020 54 246
cli.azure.cli.core: util 0.006 3 7
cli.azure.cli.core: vm 0.130 59 267
cli.azure.cli.core: Total (65) 4.339 1192 4723
cli.azure.cli.core: Loaded 1178 groups, 4723 commands.
cli.azure.cli.core: Updated command index in 0.005 seconds.
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate []
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\rmpablos\.azure\commands\2025-06-09.08-55-26.bot.50992.log'.
az_command_data_logger: command args: bot {} {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [.add_subscription_parameter at 0x0379EB18>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [.add_ids_arguments at 0x0379EB68>, .add_cache_arguments at 0x037CB7A8>, .update_breaking_change_info at 0x037CB7F8>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
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+%22bot+connection%22%2C+%22parameters%22%3A+%22%22%7D&clientType=AzureCli&context=%7B%22versionNumber%22%3A+%222.71.0%22%2C+%22errorType%22%3A+%22UnknownSubcommand%22%2C+%22correlationId%22%3A+%229b44646e-5f60-495e-963e-7b64b02d3807%22%2C+%22subscriptionId%22%3A+%2234480777-8708-4c2c-9bee-6fcd65b5557f%22%2C+%22eventId%22%3A+%22d679cb37-7a84-4b25-a859-6969c72f1480%22%7D HTTP/1.1" 200 None
cli.azure.cli.core.azclierror: NoneType: None

cli.azure.cli.core.azclierror: 'connection' is misspelled or not recognized by the system.
az_command_data_logger: 'connection' is misspelled or not recognized by the system.

Examples from AI knowledge base:
https://aka.ms/cli_ref
Read more about the command in reference docs
cli.knack.cli: Event: Cli.PostExecute []
az_command_data_logger: exit code: 2
cli.__main__: Command ran in 5.404 seconds (init: 0.577, invoke: 4.827)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 3876 in cache file under C:\Users\rmpablos\.azure\telemetry\20250609085527080
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry\__init__.pyc C:\Users\rmpablos\.azure C:\Users\rmpablos\.azure\telemetry\20250609085527080"
telemetry.process: Return from creating process 56696
telemetry.main: Finish creating telemetry upload process.
```

### Page URL

https://learn.microsoft.com/en-us/cli/azure/bot/authsetting?view=azure-cli-latest#az-bot-authsetting-create

### Content source URL

https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/docs-ref-autogen/Latest-version/latest/bot/authsetting.yml

### Author

@mikefrobbins

### Document Id

17b5d242-ef99-a170-558f-e58f2455f30d

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.