Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/containerapp/azext_containerapp/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,11 @@ def update_containerapp_logic(cmd,
from_revision=None):
_validate_subscription_registered(cmd, CONTAINER_APPS_RP)

# Validate that max_replicas is set to 0-30
if max_replicas is not None:
if max_replicas < 1 or max_replicas > 30:
raise ArgumentUsageError('--max-replicas must be in the range [1,30]')

if yaml:
if image or min_replicas or max_replicas or\
set_env_vars or remove_env_vars or replace_env_vars or remove_all_env_vars or cpu or memory or\
Expand Down