Azure app services setup

Hamid Tebianian 0 Reputation points
2024-10-28T09:55:27.55+00:00

Hello Support Team,

I am currently using Microsoft Azure App Services to host my application, but I'm encountering some issues during deployment.

Here is a summary of the steps I've followed so far:

I created an Azure App Service workspace.

I added my resource from Git, and my application files were located in /home/site/wwwroot/output.tar.gz.

Using Kudu (Advanced Tools → Kudu), I created and activated a virtual environment, migrated the database with manage.py, and performed other necessary setup steps. The server appeared to start correctly within Kudu’s command line.

However, despite these steps, my application isn’t functioning properly when accessed through the web browser at https://healiome-h7hpahfeefh8dbay.uaenorth-01.azurewebsites.net/.

Could you please confirm if my setup process is correct?

Upon checking the logs, I realized that executing these setup steps within the startup command might be necessary. I created a .sh file and set it as the startup command in the configuration tab of my App Service panel. However, this script requires modifications to some Python packages (e.g., python3.12/site_packages/Django_cron_model.py), but I am unable to locate these files in the root directory (/tmp/) of my web app.

I’m unsure how to proceed from here. Any guidance you could provide would be greatly appreciated.

Thank you for your assistance.

Best regards,

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,939 questions
Azure | Azure Startups
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2024-10-30T09:26:11.1+00:00

    @Hamid Tebianian Thanks for reaching here! As I can see- Build issues on Kudu were detected-

    You may want to know about Build Mechanism on App Service Linux:

    Kudu is the engine behind git deployments in Azure App Services. Oryx is a build system on Kudu which automatically compiles source code repos into runnable artifacts.

    Oryx generates and runs an opinionated build script within a build container based on analysis of a codebase's contents. For example, if package.json is discovered in the repo Oryx includes npm run build in the build script; or if requirements.txt is found it includes pip install -r requirements.txt.

    Oryx also generates a run-time startup script for the app including typical start commands like npm run start for Node.js or a WSGI module and server for Python.

    Suggest you to enable App Service Logs Also- go to diagnose and solve problems from Azure Portal and look for Linux deployment events-

    User's image

    1. The build that is causing your deployment to fail.

    Also there is Python Update Policy - App Service upgrades the underlying Python runtime of your application as part of the regular platform updates. As a result of this regular update process, your application will be automatically updated to the latest patch version of Python available for that platform.

    For more information about current supported Python versions check Support Timeline.

    Find additional Python articles on Technet/TechCommunity - Apps on Azure Blog.

    For Troubleshooting Python

    Below are some other topics that may be useful.

     Let us know.

    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.