GitHub action Azure/functions-action@v1 crashes randomly, 404 on zip

Lucien Moy 25 Reputation points
2025-03-12T02:44:38.1666667+00:00

I am trying to use the actions in my github workflow. Action triggers normaly, but sometimes doesn't find it's own zip file and i don't understand why.

I run it with the following args :

app-name: autom-edge-b2b

slot-name: Production

package: .

publish-profile: ***

sku: flexconsumption

remote-build: true

I found theses arguments in the doc for the flex consumption plan.

The app runs without issue locally, and I haven't made any changes to it since a few pushes, but the workflow crashes sometimes.

As you can understand, this is a pain to deal with.

Here are the logs of the errorerror

Here is the history of commits, sometimes works sometimes not but always the same error. These commit did not apply any changes to the function app, but to files used in a fastapi we have in the same repo, that it deployed on a az containerapp (works smoothly). i redacted the commit names because i'm ashamed of my lazyness.

historique

Thanks for your help !

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
{count} votes

Accepted answer
  1. Dasari Kamali 425 Reputation points Microsoft External Staff Moderator
    2025-03-24T10:40:16.61+00:00

    Hi @Lucien Moy ,

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer.

     I found a fix, I now run this in my Github Action :

    BashCopy

    `# * Zip up` `zip -r new-zip-file-name.zip . -x` `"*.git*"` `-x` `"*.pytest_cache*"` `-x` `"*.venv*"` `-x` `"*.vscode*"` `-x` `"*.idea*"` `-x` `"*.DS_Store"` `-x` `"*__pycache__*"` `-x` `"*.pyc"` `-x` `"zz-notes/*"` `-x` `"local.settings.json"`  
    `# * Deploy to az function` `az functionapp deployment` `source` `config-zip -g {{ rg }} -n {{app name}} --src new-zip-file-name.zip`
    

    If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.


0 additional answers

Sort by: Most helpful

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.