Setting up a Web App. I deploy the example code and it works. I deploy my own code and the web app breaks. I revert back to the example code and the web app is STILL broken. What is going on here?

Tyler Suard 55 Reputation points
2025-11-07T04:10:40.4533333+00:00

Hello. I am following the Python fastapi example for a web app. I was able to get the app up and running by deploying the example code from Github using CI/CD. Then I modified the code to add my own functions. The web app stopped working completely, it won't even load anymore. So I rolled back to the original example code, and the web app still won't work. What is going on here? If I rolled back to the exact code that worked before, why is the web app no longer working? What did my code do that messed the web app up? Thank you for your help.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2025-11-07T04:10:54.03+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    There could be several reasons why your web app is still broken even after reverting to the original example code. Here are a few possibilities to consider:

    1. Environment Issues: Changes in the environment settings or dependencies might have occurred when you deployed your own code. Ensure that the environment is configured correctly and that all necessary dependencies are installed as per the original example.
    2. Cache or State: Sometimes, the application state or cache might not reset properly when you revert to the original code. You might want to clear any caches or reset the application state if possible.
    3. Configuration Changes: If you made any changes to the configuration settings (like app settings or connection strings) while deploying your own code, those changes might still be in effect. Double-check the configuration settings to ensure they match those of the original example.
    4. Deployment Logs: Check the deployment logs for any errors or warnings that might indicate what went wrong during the deployment of your own code and after reverting. This can provide insights into what might be causing the issue.
    5. Container Issues: If you are using a custom container, ensure that the container image is correctly updated and that there are no issues with the image itself. You might need to refresh the container if it's still using an old version.

    If you continue to face issues, consider reviewing the troubleshooting guide for Azure App Service, which can provide more specific guidance on resolving deployment problems.


    References:


Your answer

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