Home > Mobile >  Scheduling start of a container in Azure Container Apps
Scheduling start of a container in Azure Container Apps

Time:08-04

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.

CodePudding user response:

There's no scheduling concept in Container Apps. Here are some ideas:

1-Enable Ingress and create a Function or a Logic App that runs on a schedule and "ping" the Container App to start the process.

2-Create a Logic App that runs on a schedule and creates a Container Instance every hour, wait for it to complete, and delete it.

  • Related