Hey everyone! I'm having a bit of trouble. When I deploy my Azure Function app using Visual Studio Code, everything works perfectly. However, when I try to deploy it using GitHub Actions with the same .yaml file that Azure provided, my functions don't appear in the Azure portal. Does anyone have suggestions on what might be going wrong or how to fix this? I really appreciate any help! Thanks!
2 Answers
It sounds like you might be dealing with a Python dependency issue. A lot of people have this problem because of how Azure functions handle the runtime version. Try starting with a fresh Azure function and add each package from your requirements.txt one at a time. One of them is likely causing the issue. Don't forget to check the Azure function logs for more details!
Make sure to check the logs from your GitHub Action workflow. Any errors there can really help pinpoint the problem. If you’re not seeing any errors in the logs, it’s worth looking into the Azure deployment logs directly. You can find those in the Azure portal under 'Diagnose and solve problems' for your function. This will give you a clearer picture of what's going wrong after deployment.
I checked and there are no errors in the GitHub Action workflow log.