Skip to content

az connection preview-configuration | no examples given in reference content #29663

Open

Description

Describe the bug

Bug category:

Missing information

Request:

The Azure CLI reference guidelines specifiy at least two examples for each command. Please review the Azure CLI reference guidelines for examples and parameters and add missing content to your source code.

If a parameter accepts JSON content, provide a JSON example in the parameter long or short summary, or in a separate code block.

Command list without examples:

Reference name Parameter count is Create
az connection preview-configuration app-insights 2
az connection preview-configuration appconfig 4
az connection preview-configuration confluent-cloud 2
az connection preview-configuration cosmos-cassandra 4
az connection preview-configuration cosmos-gremlin 4
az connection preview-configuration cosmos-mongo 4
az connection preview-configuration cosmos-sql 4
az connection preview-configuration cosmos-table 4
az connection preview-configuration eventhub 4
az connection preview-configuration keyvault 3
az connection preview-configuration mysql 2
az connection preview-configuration mysql-flexible 3
az connection preview-configuration postgres 3
az connection preview-configuration postgres-flexible 3
az connection preview-configuration redis 2
az connection preview-configuration redis-enterprise 2
az connection preview-configuration servicebus 4
az connection preview-configuration signalr 4
az connection preview-configuration sql 3
az connection preview-configuration storage-blob 4
az connection preview-configuration storage-file 2
az connection preview-configuration storage-queue 4
az connection preview-configuration storage-table 4
az connection preview-configuration webpubsub 4

Related command

az connection preview-configuration

Errors

n/a

Issue script & Debug output

n/a

Expected behavior

n/a

Environment Summary

Azure CLI 2.63.0

Additional context

No response

Activity

  1. added
    bugThis issue requires a change to an existing behavior in the product in order to be resolved.
    on Aug 6, 2024
  2. yonzhan commented on Aug 6, 2024

    @yonzhan
    Collaborator

    Thank you for opening this issue, we will look into it.

  3. x-engineering-agent commented on Oct 17, 2026

    @x-engineering-agent
    Contributor

    X Engineering Agent Bug Analysis

    Below is my analysis of this issue:

    Summary

    Classification: documentation defect, not an established runtime bug. Ownership: Azure CLI serviceconnector; CODEOWNERS assigns @Azure/act-codegen-extensibility-squad. Recommended priority: P3, because missing usage guidance has no reported execution failure; this repository has no configured priority-field support. All 24 reported children still lack examples in current dev source. No implementation job has been queued.

    Likely root cause

    The handwritten help definitions omit examples in both the shared target loop and the separate confluent-cloud entry. Each defines only command type and short summary, supplying no usage examples to inline help/reference generation. This confirms a current source gap, not an already-fixed source discrepancy; current published reference content was not independently inspected.

    Affected code
    • src/azure-cli/azure/cli/command_modules/serviceconnector/_help.py › helps (line 773)
    • src/azure-cli/azure/cli/command_modules/serviceconnector/commands.py › load_command_table (line 108)
    • src/azure-cli/azure/cli/command_modules/serviceconnector/_params.py › add_auth_block (line 113)
    • src/azure-cli/azure/cli/command_modules/serviceconnector/custom.py › connection_preview_configuration (line 204)
    Ruled out
    • Configuration: The omissions are explicit in help source, independent of subscription, account, authentication values, or user configuration. No configuration-dependent failure was reported.
    • Environment: The report concerns CLI 2.63.0 documentation; current dev retains the omissions. Operating-system changes cannot supply missing source examples, and no runtime failure is established.
    • Intended behavior: Previewing configuration is intended behavior, but omitting examples contradicts the repository reference guidelines. This command group has no documented exemption.
    Proposed change

    Add at least two distinct valid examples for every reported child in serviceconnector/_help.py: a common preview and a supported client/authentication-filtered preview. Update both the shared template and separate confluent-cloud entry with target-specific supported values. Cover exposed parameters; provide JSON examples only where an input actually accepts JSON, rather than assuming variadic authentication options do. Preserve command behavior.

    Technical details

    Evidence

    • On configured branch dev, _help.py lines 773-777 and 818-821 have no examples key (file SHA b907c66351d26bb7ee27e6338533b4f00547ca1a).
    • commands.py lines 108-116 register the local targets; lines 136-137 separately register confluent-cloud. _resource_config.py SUPPORTED_AUTH_TYPE[RESOURCE.Local], lines 819-846, includes all 24 reported children.
    • custom.py lines 204-248 derives target service and authentication/client filters, then calls client.list. _params.py lines 388-390 and 427-429 register authentication/client inputs; add_auth_block uses variadic authentication options.
    • doc/reference_doc_guidelines.md lines 132-144 require at least two examples per reference command and parameter coverage. .github/CODEOWNERS line 68 identifies the module owner.

    Test plan

    During implementation, validate rendered help for all 24 children, example counts, command names, supported client/authentication combinations, and applicable parameter/JSON guidance using existing help/example checks. Review generated reference output. Source-only help validation needs no live Azure execution or recordings; no local tests were run for this analysis.

    Generated code: Handwritten code. The defect is in ordinary serviceconnector/_help.py templates, outside generated directories. Building help entries in a Python loop does not make this source generator-owned.

    Posted by x-engineering-agent (Fixer)

  4. x-engineering-agent commented on Oct 19, 2026

    @x-engineering-agent
    Contributor

    ⏳ Queued — X Engineering Agent picked up this request and will post its findings here.

  5. mvanhorn commented on Oct 20, 2026

    @mvanhorn

    Those help entries were defined with only a command type and a short summary.

    The shared help template now adds examples for every local preview-configuration target: an unfiltered preview, a preview filtered by the first supported client type and the first non-user-account auth option, and one further example for each remaining auth type on that target.

    #34247

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Service AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions