Skip to content

[Service Connector] az connection preview-configuration: Add help examples - #34247

Open
Matt Van Horn (mvanhorn) wants to merge 2 commits into
Azure:devfrom
mvanhorn:fix/29663-connection-preview-configuration-examples
Open

Matt Van Horn (mvanhorn) wants to merge 2 commits into
Azure:devfrom
mvanhorn:fix/29663-connection-preview-configuration-examples

Conversation

@mvanhorn

@mvanhorn Matt Van Horn (mvanhorn) commented Oct 20, 2026 •

Copy link
Copy Markdown

🤖 PR Validation — ️✔️ All clear

Breaking Changes Tests
️✔️ None ️✔️ 130/130

Motivation

Help and the published reference for az connection preview-configuration show each target command with only a short summary. There is no sample of a plain preview and no sample that passes a client type or authentication options.

Those help entries were defined with only a command type and a short summary. The loop that writes help for the local targets never included an examples section, and the separate Confluent Cloud entry was written the same way, so reference generation had no examples to render.

What this changes

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. The filtered example is labeled service principal when that option is service-principal secret and secret otherwise, and it includes the parameters for that auth type. User-account examples pass object-id, and the MySQL flexible example also passes mysql-identity-id. The Confluent Cloud entry now has an unfiltered preview plus a second example that passes its first client type and the parameters of its first auth type, worded as secret authentication.

How it was tested

No local test run is recorded for the azure-cli change to src/azure-cli/azure/cli/command_modules/serviceconnector/_help.py.

Fixes #29663

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. The filtered example is labeled service principal when that
option is service-principal secret and secret otherwise, and it includes
the parameters for that auth type. User-account examples pass object-id,
and the MySQL flexible example also passes mysql-identity-id. The
Confluent Cloud entry now has an unfiltered preview plus a second
example that passes its first client type and the parameters of its
first auth type, worded as secret authentication.

Fixes Azure#29663
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Oct 20, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Thank you for your contribution Matt Van Horn (@mvanhorn)! We will review the pull request and get back to you soon.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The examples match supported arguments and existing preview behavior, with no unresolved findings.

No open issues 🎉

What changed in this PR

Adds help and reference examples for az connection preview-configuration, addressing issue #29663.

Changes:

  • Adds plain previews and client-type/authentication examples for local targets.
  • Adds two examples for Confluent Cloud.
File Description
src/​azure-cli/​azure/​cli/​command_modules/​serviceconnector/​_help.py Generates target-specific preview examples using supported client and authentication options.

Review effort: Balanced

@x-engineering-agent

Copy link
Copy Markdown
Contributor

Hi Matt Van Horn (@mvanhorn),
Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.

@yonzhan

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@mvanhorn Matt Van Horn (mvanhorn) changed the title add connection preview-configuration examples [Service Connector] az connection preview-configuration: Add help examples Oct 20, 2026

This branch has not been deployed

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

Labels

customer-reported Issues that are reported by GitHub users external to the Azure organization.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants