Skip to content

[serviceconnector-passwordless] Fix postgres command argument name#10050

Open
avanigupta wants to merge 2 commits into
Azure:mainfrom
avanigupta:main
Open

[serviceconnector-passwordless] Fix postgres command argument name#10050
avanigupta wants to merge 2 commits into
Azure:mainfrom
avanigupta:main

Conversation

@avanigupta

@avanigupta avanigupta commented Jun 29, 2026

Copy link
Copy Markdown
Member

Updated internal argument for az postgres flexible-server db show command from --database-name to --name.
This was broken due to a recent breaking change in postgres CLI module: Azure/azure-cli#33343

This PR also pins the minimum CLI version to 2.87.0 - which contains the Postgres breaking change.
CLI Version pin instructions: https://github.com/Azure/azure-cli/blob/dev/doc/extensions/metadata.md

Related command

az extension add --name serviceconnector-passwordless --upgrade

az webapp connection create postgres-flexible --connection xxx --source-id xxx --target-id xxx --client-type dotnet --system-identity
 

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (azdev required; see .azure-pipelines/templates/azdev_setup.yml for the install command until azdev==0.2.11b1 is on PyPI)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

Copilot AI review requested due to automatic review settings June 29, 2026 22:36
@azure-client-tools-bot-prd

Copy link
Copy Markdown
Validation for Breaking Change Starting...

Thanks for your contribution!

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.

Pull request overview

This PR updates the serviceconnector-passwordless extension to stay compatible with a breaking change in the core Azure CLI Postgres module by switching the internal az postgres flexible-server db show argument from --database-name to --name, and bumps the extension version accordingly.

Changes:

  • Update internal invocation of az postgres flexible-server db show to use --name instead of --database-name.
  • Bump extension version to 3.3.7 in both setup.py and extension config.
  • Add a 3.3.7 release note describing the compatibility fix.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/serviceconnector-passwordless/setup.py Bumps extension package version to 3.3.7.
src/serviceconnector-passwordless/HISTORY.rst Adds 3.3.7 changelog entry documenting the CLI argument update.
src/serviceconnector-passwordless/azext_serviceconnector_passwordless/config.py Keeps extension runtime VERSION in sync at 3.3.7.
src/serviceconnector-passwordless/azext_serviceconnector_passwordless/_credential_free.py Updates the internal az postgres flexible-server db show call to use --name.

@yonzhan

yonzhan commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

serviceconnector

@yonzhan yonzhan assigned yanzhudd and unassigned necusjz Jun 29, 2026
@avanigupta

Copy link
Copy Markdown
Member Author

Hi @yonzhan @yanzhudd, can we include this change in the next CLI release? Its a small change so should be a quick review.
This is blocking one of our customers and we are hoping to release this as soon as possible.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants