Skip to content

containerapp update removes existing scale rules #32409

@epDugas

Description

@epDugas

Describe the bug

Containerapp with kind = functionapp.
Scale triggers are automatically handled by the function host.
When issuing command:

 az containerapp update \
            --name somename \
            --resource-group somerg \
            --image someimageregistry:commithash

all existing scale rules are removed. This causes an issue, as the azure function host checks a hash on blob storage, and if the hash is the same, it doesn't perform a synctriggers, to re-create the rules.
I effectively end up with a non-functioning containerapp every time I deploy.
The only workaround I have found it to go and manually delete the blob that contains the hash, and restart the containerapp.

Related command

 az containerapp update \
            --name somename \
            --resource-group somerg \
            --image someimageregistry:commithash

Errors

No errors, output shows rules removed.

Issue script & Debug output

"scale": ***
"cooldownPeriod": 300,
"maxReplicas": 3,
"minReplicas": 0,
"pollingInterval": 30,
"rules": null
***,

Expected behavior

Expect existing scale rules to not be deleted on az containerapp update.

Environment Summary

azure-cli available on github runner (ubuntu-latest)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignAuto assign by botContainerAppService AttentionThis issue is responsible by Azure service team.bugThis 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions