Why does my Azure Function app deploy successfully from VS Code but not from GitHub Actions?

0
9
Asked By MysteriousGiraffe92 On

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

Answered By CuriousCoder23 On

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!

Answered By DebuggingDiva88 On

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.

MysteriousGiraffe92 -

I checked and there are no errors in the GitHub Action workflow log.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.