Forum Discussion
DevendraKumar2
Oct 25, 2024Copper Contributor
Function App Service
Hi,
I'm having trouble deploying my Python script to an Azure Function App. Can someone help me troubleshoot the deployment process and ensure the function works correctly?
I have followed all the articles available on the internet, I am not able to figure out , where is actual issue?
Worth to take a look at this:
Troubleshoot Python function apps in Azure Functions | Microsoft Learn
- balasubramanimIron Contributor
To troubleshoot the Python Azure Function App deployment:
Check Requirements: Ensure a requirements.txt file lists all dependencies.
Verify Structure: Follow this structure:
MyFunctionApp
├── my_function
│ ├── __init__.py
│ ├── function.json
└── requirements.txtCheck App Settings: In Azure Portal, match PYTHON_VERSION and set any required environment variables.
Deploy with CLI:
func azure functionapp publish <YOUR_FUNCTION_APP_NAME>Check Logs: In Azure Portal, go to Log stream for errors.
Test Locally:
func startCheck logs for specific errors.
- bhanutejachindukuriCopper Contributor
You can deploy the code from vs Code:
Please refer below
https://medium.com/@saurabh.dasgupta1/developing-and-deploying-a-python-azure-function-step-by-step-83c5066a2531