Hi @nikithakoshy Greetings! Welcome to Microsoft Q&A forum. Thank you for posting this question here.
One of the ways we can achieve the use case is by sending the ImagePushed
events from the Azure Container Registry to a storage queue and trigger the Container job based on the messages received to the Storage Queue.
Please refer to the article Subscribe to registry events which provides a sample implementation of subscribing event to Event grid. Instead of subscribing to event grid, you can use the az eventgrid event-subscription create
command to create a subscription to Storage queue end point. You can find the samples to create this event subscription in the document az eventgrid event-subscription create
Here is a sample for reference
az eventgrid event-subscription create --name es2 --source-resource-id /subscriptions/{SubID} --endpoint-type storagequeue --endpoint /subscriptions/{SubID}/resourceGroups/TestRG/providers/Microsoft.Storage/storageAccounts/sa1/queueservices/default/queues/q1
Once you have the events routed, you can refer the article Deploy an event-driven job with Azure Container Apps and follow the steps to trigger the deployed job based on the triggered events
Hope this helps! Please let us know if you have any additional questions.
If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.