Skip to content

[Container App] az containerapp env: Add http-route-config and premium-ingress#32240

Merged
yanzhudd merged 8 commits intoAzure:devfrom
Tratcher:tratcher/20250707/ga
Oct 14, 2025
Merged

[Container App] az containerapp env: Add http-route-config and premium-ingress#32240
yanzhudd merged 8 commits intoAzure:devfrom
Tratcher:tratcher/20250707/ga

Conversation

@Tratcher
Copy link
Copy Markdown
Contributor

@Tratcher Tratcher commented Oct 10, 2025

Related command
az containerapp env http-route-config
az containerapp env premium-ingress

Description
These commands were previously available in cli-extensions and now the features are ready for GA.

History Notes
[Container App] az containerapp env http-route-config: Add command group to manage environment level http routing
[Container App] az containerapp env premium-ingress: Add command group to configure premium ingress settings for the environment


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

@Tratcher Tratcher requested a review from zhoxing-ms as a code owner October 10, 2025 17:57
Copilot AI review requested due to automatic review settings October 10, 2025 17:57
@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Oct 10, 2025

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.13
️✔️acs
️✔️latest
️✔️3.12
️✔️3.13
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.13
️✔️ams
️✔️latest
️✔️3.12
️✔️3.13
️✔️apim
️✔️latest
️✔️3.12
️✔️3.13
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.13
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️aro
️✔️latest
️✔️3.12
️✔️3.13
️✔️backup
️✔️latest
️✔️3.12
️✔️3.13
️✔️batch
️✔️latest
️✔️3.12
️✔️3.13
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.13
️✔️billing
️✔️latest
️✔️3.12
️✔️3.13
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.13
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.13
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.13
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.13
️✔️config
️✔️latest
️✔️3.12
️✔️3.13
️✔️configure
️✔️latest
️✔️3.12
️✔️3.13
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.13
️✔️container
️✔️latest
️✔️3.12
️✔️3.13
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.13
️✔️core
️✔️latest
️✔️3.12
️✔️3.13
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.13
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.13
️✔️dls
️✔️latest
️✔️3.12
️✔️3.13
️✔️dms
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.13
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.13
️✔️find
️✔️latest
️✔️3.12
️✔️3.13
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.13
️✔️identity
️✔️latest
️✔️3.12
️✔️3.13
️✔️iot
️✔️latest
️✔️3.12
️✔️3.13
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.13
️✔️lab
️✔️latest
️✔️3.12
️✔️3.13
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️maps
️✔️latest
️✔️3.12
️✔️3.13
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.13
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.13
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.13
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.13
️✔️network
️✔️latest
️✔️3.12
️✔️3.13
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.13
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.13
️✔️profile
️✔️latest
️✔️3.12
️✔️3.13
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.13
️✔️redis
️✔️latest
️✔️3.12
️✔️3.13
️✔️relay
️✔️latest
️✔️3.12
️✔️3.13
️✔️resource
️✔️latest
️✔️3.12
️✔️3.13
️✔️role
️✔️latest
️✔️3.12
️✔️3.13
️✔️search
️✔️latest
️✔️3.12
️✔️3.13
️✔️security
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.13
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.13
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.13
️✔️sql
️✔️latest
️✔️3.12
️✔️3.13
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.13
️✔️storage
️✔️latest
️✔️3.12
️✔️3.13
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.13
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.13
️✔️util
️✔️latest
️✔️3.12
️✔️3.13
️✔️vm
️✔️latest
️✔️3.12
️✔️3.13

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

azure-client-tools-bot-prd bot commented Oct 10, 2025

⚠️AzureCLI-BreakingChangeTest
⚠️containerapp
rule cmd_name rule_message suggest_message
⚠️ 1011 - SubgroupAdd containerapp env http-route-config sub group containerapp env http-route-config added
⚠️ 1011 - SubgroupAdd containerapp env premium-ingress sub group containerapp env premium-ingress added

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Oct 10, 2025

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

@github-actions
Copy link
Copy Markdown

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>

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 support for two new command groups for Azure Container Apps environments: http-route-config and premium-ingress. These commands were previously available in CLI extensions and are now being promoted to GA status in the main CLI.

Key changes:

  • Added HTTP route configuration management commands for environment-level request routing
  • Added premium ingress configuration commands for enhanced ingress settings
  • Added comprehensive test coverage for both command groups

Reviewed Changes

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

Show a summary per file
File Description
utils.py Added helper function for creating VNet subnets in tests
test_containerapp_env_http_route_config.py New test file for HTTP route configuration CRUD operations
test_containerapp_commands.py Added tests for premium ingress commands
custom.py Implemented business logic for both HTTP route config and premium ingress operations
commands.py Registered new command groups and their subcommands
_params.py Added parameter definitions for both command groups
_help.py Added comprehensive help documentation for all new commands
_clients.py Added HttpRouteConfigClient for API interactions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +1651 to +1653
helps['containerapp env http-route-config list'] = """
type: command
short-summary: List the http route configs in the environment.
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

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

The help message should start with an active voice verb. Change 'List the http route configs' to 'List http route configs'.

Copilot uses AI. Check for mistakes.
Comment on lines +1660 to +1662
helps['containerapp env http-route-config create'] = """
type: command
short-summary: Create a new http route config.
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

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

The help message should start with an active voice verb. Change 'Create a new http route config' to 'Create http route config'.

Copilot uses AI. Check for mistakes.
Comment on lines +1669 to +1671
helps['containerapp env http-route-config update'] = """
type: command
short-summary: Update a http route config.
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

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

The help message should start with an active voice verb. Change 'Update a http route config' to 'Update http route config'.

Copilot uses AI. Check for mistakes.
Comment on lines +1678 to +1680
helps['containerapp env http-route-config show'] = """
type: command
short-summary: Show a http route config.
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

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

The help message should start with an active voice verb. Change 'Show a http route config' to 'Show http route config'.

Copilot uses AI. Check for mistakes.
Comment on lines +1687 to +1689
helps['containerapp env http-route-config delete'] = """
type: command
short-summary: Delete a http route config.
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

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

The help message should start with an active voice verb. Change 'Delete a http route config' to 'Delete http route config'.

Copilot uses AI. Check for mistakes.
Comment on lines +1697 to +1699
helps['containerapp env premium-ingress show'] = """
type: command
short-summary: Show the premium ingress settings for the environment.
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

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

The help message should start with an active voice verb. Change 'Show the premium ingress settings' to 'Show premium ingress settings'.

Copilot uses AI. Check for mistakes.
Comment on lines +1717 to +1719
helps['containerapp env premium-ingress add'] = """
type: command
short-summary: Enable the premium ingress settings for the environment.
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

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

The help message should start with an active voice verb. Change 'Enable the premium ingress settings' to 'Enable premium ingress settings'.

Copilot uses AI. Check for mistakes.
Comment on lines +1728 to +1730
helps['containerapp env premium-ingress update'] = """
type: command
short-summary: Update the premium ingress settings for the environment.
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

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

The help message should start with an active voice verb. Change 'Update the premium ingress settings' to 'Update premium ingress settings'.

Copilot uses AI. Check for mistakes.
Comment on lines +1737 to +1739
helps['containerapp env premium-ingress remove'] = """
type: command
short-summary: Remove the ingress settings and restores the system to default values.
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

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

The help message should start with an active voice verb. Change 'Remove the ingress settings and restores' to 'Remove ingress settings and restore'.

Copilot uses AI. Check for mistakes.
@Tratcher Tratcher changed the title [Container App] Add http-route-config and premium-ingress [Container App] az containerapp env: add http-route-config and premium-ingress Oct 10, 2025
@Tratcher Tratcher changed the title [Container App] az containerapp env: add http-route-config and premium-ingress [Container App] az containerapp env: Add http-route-config and premium-ingress Oct 10, 2025
Greedygre
Greedygre previously approved these changes Oct 13, 2025
@yanzhudd
Copy link
Copy Markdown
Contributor

It is better to include more details in the history notes section, as it will be shown in the release notes.
I have helped to refine them:
image

Comment thread src/azure-cli/azure/cli/command_modules/containerapp/_params.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/containerapp/_params.py Outdated
@yanzhudd yanzhudd merged commit 8c484bc into Azure:dev Oct 14, 2025
48 checks passed
@Tratcher Tratcher deleted the tratcher/20250707/ga branch October 28, 2025 16:11
handle_raw_exception(e)


def update_environment_premium_ingress(cmd, name, resource_group_name, workload_profile_name=None, min_replicas=None, max_replicas=None, termination_grace_period=None, request_idle_timeout=None, header_count_limit=None, no_wait=False):
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.

Hi @Tratcher
You didn't remove not needed params min_replicas=None, max_replicas=None

image image

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.

6 participants