WebApp not loading my latest app image

Pallavi Gadepalli 0 Reputation points
2024-07-26T05:28:48.9966667+00:00

I made an update to my app and pushed the newly built image to the registry. That triggered the webapp to be refreshed and shows the new image id pulled. But when the app loads, it is still the old image. I cannot seem to figure out why. I created a test webapp service pointing to the same registry and that does run the new image.

I need urgent help on this.

Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
904 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XinGuo-MSFT 18,771 Reputation points
    2024-07-29T02:13:26.3733333+00:00

    Hi,

    It sounds like a frustrating issue! Here are a few steps you can try to resolve this:

    Restart the WebApp: Sometimes, a simple restart can force the web app to pull the latest image. You can do this from the Azure portal or using the Azure CLI:

    az webapp restart --name <YourAppName> --resource-group <YourResourceGroup>
    

    Clear Cached Data: Ensure that any cached data is cleared. In the Azure portal, go to your web app’s settings and enable the option to remove additional files at the destination under the "File Publish Options".

    Check Deployment Logs: Verify the deployment logs in the Azure portal to ensure that the new image is being pulled and there are no errors during the process.

    Verify Image Tag: Make sure that the image tag in your web app configuration matches the tag of the newly pushed image. Sometimes, using the latest tag can cause issues if the web app doesn’t detect the change.

    Configure Webhooks: Set up a webhook in your container registry to trigger a redeployment whenever a new image is pushed. This can help automate the process and ensure the latest image is always used.

    Check Connectivity and Credentials: Ensure that your web app can connect to the container registry and that the credentials are correct. Incorrect credentials can prevent the web app from pulling the latest image.

    If these steps don’t resolve the issue, please let me know, and we can dive deeper into the problem.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.