Deployment doesn't work

Hugo Lu 0 Reputation points

Deployment from github via github actions to microsoft app service normally takes about 5 minutes.

Sometimes it decides to take 5 hours and I just get:

Package deployment using ZIP Deploy initiated.

8Error: The operation was canceled.

What is going on?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,142 questions
{count} votes

2 answers

Sort by: Most helpful
  1. RevelinoB 2,775 Reputation points

    Hi Hugo Lu,

    When I look at your message you posted it indicates that the deployment process was canceled before completion. This could be caused by a variety of factors, including network connectivity issues, server overload, or configuration problems.

    One possible cause of the slow deployment time and occasional failures could be related to the size of your deployment package. If your package is too large, it may take longer to upload to the server, which could result in timeouts and cancellation of the operation. In such cases, you may want to consider optimizing your deployment package to reduce its size.

    Another potential issue could be related to the configuration of your Github actions workflow. Make sure that your workflow is configured correctly and that it is using the appropriate deployment settings. You may want to review your workflow logs to see if there are any error messages or warnings that could provide more insight into the issue.

    Overall, there are several factors that could be contributing to the slow deployment times and occasional failures. Carefully reviewing your deployment package size, Github actions workflow, and Microsoft App Service configuration could help you identify and resolve the issue.

    I hope this helps?

    0 comments No comments

  2. ajkuma 23,641 Reputation points Microsoft Employee

    @Hugo Lu ,

    Just checking in to see if you had got a chance to see the previous response.  If the answer helped (pointed you in the right direction) > please click Accept Answer Or please share the requested/more info to help you better.


    As RevelinoB  mentioned, the error message "The operation was canceled" can occur for a variety of reasons when deploying an app to Azure App Service using GitHub Actions. Couple of other things you may try to isolate the issue.


    1. Check the size of the ZIP package you are trying to deploy. If it is too large, consider breaking it down into smaller packages.
    2. Try deploying the ZIP package using the Kudu API. You can access the Kudu API by navigating to https://<app_name> in your browser. From there, you can upload your ZIP package and deploy it to your App Service.
    3. If you haven’t done already so, you may leverage App Service diagnostics from Azure Portal> Navigate to your App Service app in the Azure Portal.
    • In the left navigation, click on Diagnose and solve problems – Checkout the tile for “Diagnostic Tools” > “Availability and Performance” & "Best Practices" and review to fetch additional information to isolate further.

    •  You may enable logs from Azure Portal (App Service logs blade) to fetch more pointers on the error. You may enable these logs– Application logging, Web Server logging, Detailed Error Messages -- process here - >>Enable diagnostics logging for apps in Azure App Service

    Kindly let us know, I'll be more than happy to assist you further.

    0 comments No comments