Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scheduling start of a container in Azure Container Apps

I have a short running container that does background processing (no ingress) that I have deployed to the Azure Container Apps service in Azure, my config is min replicas 0 (for when the container completes its work and exits) and max replicas 1 (i want only want one instance of my container running at any time).

I want to start my container once every hour, it generally runs for 3 mins and completes its task and closes.

Is there anyway with Azure Container Apps to schedule the start of my container? At the moment I have reverted to running my Azure DevOps pipeline on a schedule which calls the az containerapp update command, but it feels like the wrong way to go about this.

like image 361
DriveBlind Avatar asked Oct 29 '25 19:10

DriveBlind


1 Answers

This concept is now supported (in preview) via Container App Jobs.

Specific to your ask, the container app job supports cron expressions at creation time, which would allow you to configure the schedule.

e.g.

az containerapp job create ... --trigger-type "Schedule" --cron-expression "0 */1 * * *"

like image 97
jasper Avatar answered Nov 01 '25 13:11

jasper



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!