Github deployment to Azure functions using Git Actions Error

Ian De Leon 0 Reputation points
2023-07-09T09:14:44.6533333+00:00

Hi! I'm new to azure and using github actions in deploying. Currently trying to deploy codes from github to azure functions. When I'm commiting, I receive these errors.

Error: Failed to deploy web package to App Service.

204Error: Execution Exception (state: PublishContent) (step: Invocation)

205Error: When request Azure resource at PublishContent, zipDeploy : Failed to use /home/runner/work/_temp/temp_web_package_14011467814301537.zip as ZipDeploy content

206Error: Package deployment using ZIP Deploy failed. Refer logs for more details.

207Error: Deployment Failed!

Can anyone tell me what I did wrong? I basically followed the guide in their documentations.

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

2 answers

Sort by: Most helpful
  1. Konstantinos Passadis 19,376 Reputation points MVP
    2023-07-09T11:55:36.01+00:00

    Hello @Ian De Leon !

    Welcome to Microsoft QnA!

    This eror may have its root in several reasons

    Have you set up the correct path ?

    Does GitHub has the correct permissons

    There is thread that a similar error is resolved by adding this into the Functions Configuration Setting

    ENABLE_ORYX_BUILD

    https://stackoverflow.com/questions/72280118/deployment-failed-with-error-package-deployment-using-zip-deploy-failed-refer#:~:text=You%20can%20try%20the%20following%20workarounds%20to%20resolve,on%20top.%20After%20that%20re-run%20the%20release%20pipeline.

    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Otherwise send us more feedback!

    Regards


  2. SnehaAgrawal-MSFT 22,181 Reputation points
    2023-07-27T08:52:29.99+00:00

    @Ian De Leon Just checking if you are still facing issue here,

    When using GitHub Actions, the code is deployed to your function app using Zip deployment for Azure Functions.

    Could you confirm if sets a subpath in your repository from which to publish. By default, this value is set to ., which means all files and folders in the GitHub repository are deployed.

    see- parameters are most commonly used.

    If you are using VS Code for development, consider utilizing the VS Code Azure Tool Extension. The extension is designed to enhance Azure-related functionalities within VS Code, which might help you tackle the problem more effectively.

    Also, In the context of the Azure App Service, navigate to the "Deployment Center" blade. This refers to a specific section or feature within the Azure portal related to managing deployments. Once you are in the "Deployment Center" blade, look for a button labeled "Disconnect" at the top.

    Clicking on this button will disconnect any existing connections or configurations associated with your app's deployment. After performing this disconnection, proceed to re-run the release pipeline. This will initiate the deployment process again, and it may potentially fix the issue you encountered during the previous deployment attempt.

    Also see if issue is due to authentication, GitHub Actions to authenticate with Azure Functions for deployment is by using a publish profile. You can also authenticate using a service principal. To learn more, see this GitHub Actions repository.

    Hope this helps.

    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.