Skip to content

Conversation

@khushishah513
Copy link
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

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 January 20, 2026 18:18
@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Jan 20, 2026

⚠️Azure CLI Extensions Breaking Change Test
⚠️containerapp
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd containerapp list cmd containerapp list added parameter kind

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

Hi @khushishah513,
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.

@yonzhan
Copy link
Collaborator

yonzhan commented Jan 20, 2026

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

@github-actions
Copy link

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

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

Hi @khushishah513

Release Suggestions

Module: containerapp

  • Update VERSION to 1.3.0b2 in src/containerapp/setup.py

Notes

Copy link
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 pull request adds a --kind filter parameter to the az containerapp list command, enabling users to filter container apps by their kind property (currently supporting 'functionapp' as an option).

Changes:

  • Added --kind parameter to filter container apps by kind (e.g., 'functionapp')
  • Updated the list output transformer to include the 'kind' field in results
  • Added help documentation and example showing how to list Azure Functions on Container Apps

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/containerapp/azext_containerapp/custom.py Added kind parameter to list_containerapp function signature
src/containerapp/azext_containerapp/containerapp_decorator.py Implemented filtering logic for kind parameter and added get_argument_kind() method
src/containerapp/azext_containerapp/commands.py Updated import and transformer for list command to use new transformer that includes kind field
src/containerapp/azext_containerapp/_transformers.py Added transform_containerapp_list_output_with_kind function to include kind field in output
src/containerapp/azext_containerapp/_params.py Defined --kind argument with enum type for 'functionapp' value
src/containerapp/azext_containerapp/_help.py Added documentation example showing usage of --kind functionapp
src/containerapp/HISTORY.rst Updated release notes to document the new feature

if self.get_argument_kind():
containerapps = [c for c in containerapps if c.get("kind") == self.get_argument_kind()]
return containerapps

Copy link

Copilot AI Jan 20, 2026

Choose a reason for hiding this comment

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

Trailing whitespace detected. Remove the trailing whitespace at the end of this line.

Suggested change

Copilot uses AI. Check for mistakes.


def list_containerapp(cmd, resource_group_name=None, managed_env=None, environment_type="all"):
def list_containerapp(cmd, resource_group_name=None, managed_env=None, environment_type="all", kind=None):
Copy link

Copilot AI Jan 20, 2026

Choose a reason for hiding this comment

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

The new --kind filter functionality lacks test coverage. Consider adding a test case that verifies filtering container apps by kind, similar to the existing tests for --environment-type filtering. The test should verify that when --kind functionapp is specified, only container apps with kind='functionapp' are returned in the list.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot ContainerApp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants