Rebuild Image for App Service without code change

Aaron Bidwell 1 Reputation point
2021-07-26T18:37:37.277+00:00

I have an app service hosting a front end application by way of ACR. The front end is a cms application that requires rebuilds whenever I make changes to the back end data. I would like a way to rebuild the image in the App service without making a code change.

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
386 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,866 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 22,401 Reputation points Microsoft Employee
    2021-07-29T17:29:11.247+00:00

    @Aaron Bidwell ,

    Just to highlight, ACR is a repository of images, and if you need to rebuild an image, you need to do that outside of ACR.

    You may use ADO pipelines to rebuild the image or you can use ACR Tasks to rebuild the image. You can trigger an ACR Task to do the build and store the new image in ACR.

    As mentioned, you may add a Build&Push step in the pipeline that can automate this in ACR, please see this doc.

    Please see, automate container image builds and maintenance with ACR Tasks

    See continuous deployment doc, you can enable CI/CD, so that App Service gets notified of a new image and triggers a pull automatically.

    Based on my understanding of your scenario, I have shared the options that you could leverage. Please let me know if it helps or/As requested share additional information about your requirement to better assist you.

    0 comments No comments