How to delete Azure Container Apps revisions
Hello Microsoft support,
We are using Container Apps to deploy our workloads in France Central region and the response time of portal.azure.com is sometime very long for displaying "Application / Revisions and replicas" or "Application / Containers" page.
As I understand, it is trying to get information about all inactive replicas.
When checking with the following CLI command:
time sh -c "az containerapp revision list -n <containerapp> -g <resourcegroup> --all | jq '. | length'"
...it seems that time for listing all revisions is following the number of replicas (not linear but growing as the number of replicas). Examples:
- 197 total revisions => total time = 18.00 seconds
- 150 total revisions => total time = 16.67 seconds
- 116 total revisions => total time = 16.04 seconds
- 78 total revisions => total time = 6.09 seconds
I find those time very important and I wanted to keep only a few latest inactive revisions on each container app but I am unable to prune inactive revisions. Did not found any CLI or REST API method to do so. Of course, there is the deactivate
operation but it does not delete the container app, only ensures it is not active.
There is the workaround of recreating the whole container app but it does not allow to keep a few inactive revisions for rollback if needed.
Do you have any clue for either:
- maintain the total number of revisions (including inactive ones) to a smaller number
- ensure the service is performant enough for day-to-day use (eg response time < 1 second)
?
Thanks in advance for any answer.