Skip to content

redisenterprise: add test-connection command to address a common supportability ask #9490

Merged
necusjz merged 2 commits intoAzure:mainfrom
yugangw-msft:test-redis-connection
Feb 1, 2026
Merged

redisenterprise: add test-connection command to address a common supportability ask #9490
necusjz merged 2 commits intoAzure:mainfrom
yugangw-msft:test-redis-connection

Conversation

@yugangw-msft
Copy link
Copy Markdown
Contributor

This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

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? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

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 December 20, 2025 22:34
@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd Bot commented Dec 20, 2025

⚠️Azure CLI Extensions Breaking Change Test
⚠️redisenterprise
rule cmd_name rule_message suggest_message
⚠️ 1001 - CmdAdd redisenterprise test-connection cmd redisenterprise test-connection added

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Dec 20, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@azure-client-tools-bot-prd
Copy link
Copy Markdown

Hi @yugangw-msft,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

@github-actions
Copy link
Copy Markdown
Contributor

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@github-actions
Copy link
Copy Markdown
Contributor

CodeGen Tools Feedback Collection

Thank you for using our CodeGen tool. We value your feedback, and we would like to know how we can improve our product. Please take a few minutes to fill our codegen survey

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 20, 2025

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 adds a new test-connection command to the Azure CLI redisenterprise extension to help users verify connectivity to Redis Enterprise clusters. This addresses a common supportability request by providing a diagnostic tool that can test connections using either Entra ID authentication or access key authentication.

Key changes:

  • Adds a new test-connection command that performs write/read/delete operations to verify Redis connectivity
  • Implements support for two authentication methods: Entra ID and access keys
  • Adds the redis package as a dependency to enable Redis client functionality

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
src/redisenterprise/setup.py Adds redis package dependency for Redis client functionality
src/redisenterprise/azext_redisenterprise/custom.py Implements connection testing logic with helper functions for creating Redis connections and performing test operations
src/redisenterprise/azext_redisenterprise/commands.py Registers the new test-connection command
src/redisenterprise/azext_redisenterprise/_params.py Defines command parameters including authentication method options
src/redisenterprise/azext_redisenterprise/_help.py Adds help documentation and usage examples for the new command

Comment thread src/redisenterprise/setup.py Outdated
Comment thread src/redisenterprise/azext_redisenterprise/custom.py Outdated
Comment thread src/redisenterprise/azext_redisenterprise/custom.py Outdated
Comment thread src/redisenterprise/azext_redisenterprise/custom.py
Comment thread src/redisenterprise/azext_redisenterprise/custom.py Outdated
Comment thread src/redisenterprise/azext_redisenterprise/custom.py
Comment thread src/redisenterprise/azext_redisenterprise/custom.py Outdated
Comment thread src/redisenterprise/azext_redisenterprise/custom.py
Comment thread src/redisenterprise/azext_redisenterprise/custom.py
Comment thread src/redisenterprise/azext_redisenterprise/custom.py
Comment thread src/redisenterprise/azext_redisenterprise/custom.py
Comment thread src/redisenterprise/azext_redisenterprise/custom.py
Comment thread src/redisenterprise/azext_redisenterprise/custom.py Outdated
Comment thread src/redisenterprise/azext_redisenterprise/custom.py Outdated
@github-actions github-actions Bot added the release-version-block Updates do not qualify release version rules. NOTE: please do not edit it manually. label Jan 31, 2026
@yugangw-msft yugangw-msft force-pushed the test-redis-connection branch from 7f1819d to 8f61ef6 Compare February 1, 2026 00:44
@github-actions github-actions Bot removed the release-version-block Updates do not qualify release version rules. NOTE: please do not edit it manually. label Feb 1, 2026
@necusjz necusjz merged commit 4ac89ae into Azure:main Feb 1, 2026
24 checks passed
@azclibot
Copy link
Copy Markdown
Collaborator

azclibot commented Feb 1, 2026

[Release] Update index.json for extension [ redisenterprise-1.4.0 ] : https://dev.azure.com/msazure/One/_build/results?buildId=151464481&view=results

jepetty pushed a commit to jepetty/azure-cli-extensions that referenced this pull request Feb 11, 2026
…ortability ask (Azure#9490)

* add test-connection command

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants