-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Hardcoded API Version "2025-01-01" Causes Failures with Future System Dates #32181
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botContainerAppService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-observability-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botContainerAppService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-observability-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Describe the bug
Azure CLI containerapp module fails with "InvalidApiVersionParameter" when system date is set to 2025. The core module has a hardcoded API version "2025-01-01" that is not valid. This affects all containerapp commands when using the core module (not extension) on systems with dates in 2025.
Related command
Errors
Issue script & Debug output
Debug output shows:
Expected behavior
Commands should execute successfully using a valid API version like "2024-03-01" instead of the hardcoded "2025-01-01".
Environment Summary
Additional context
The root cause is in
/opt/az/lib/python3.13/site-packages/azure/cli/command_modules/containerapp/_clients.pyline 19:This hardcoded value is not a valid API version. The issue only affects the core module - when the containerapp extension is installed, it masks this bug.
Workaround:
sudo sed -i 's/CURRENT_API_VERSION = "2025-01-01"/CURRENT_API_VERSION = "2024-03-01"/' \ /opt/az/lib/python3.13/site-packages/azure/cli/command_modules/containerapp/_clients.pySystem Information: