Deploying angular web application in azure app service by using bitbucket pipelines

Spino Inc 0 Reputation points
2023-11-17T08:56:49.7766667+00:00

I'm trying to Deploying angular web application in azure app service by using bitbucket pipelines getting error like zip deployment failed.

(+ az webapp deployment source config-zip --resource-group toskie-dev-api-rg01 --name toskie-web-test --src "package.tar"

2

WARNING: Getting scm site credentials for zip deployment

3

WARNING: Starting zip deployment. This operation can take a while to complete ...

4

WARNING: Deployment endpoint responded with status code 202

5

WARNING: Configuring default logging for the app, if not already enabled

6

ERROR: Zip deployment failed)

in the deployment centre I can see the below error

Cleaning up temp folders from previous zip deployments and extracting pushed zip file C:\local\Temp\zipdeploy\rmfledef.zip (215.07 MB) to C:\local\Temp\zipdeploy\extracted
End of Central Directory record could not be found.

can anyone tell me how to resolve this issue

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

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2023-11-22T06:31:19.28+00:00

    @Spino Inc Apologies for late response! Thanks for reaching here!

    The error message

    "Central Directory record could not be found"

    usually indicates that the ZIP file is corrupted or invalid. You can try to create a new ZIP file and redeploy your web app. Here are the steps to deploy a PHP web app from a ZIP package:

    1. Create a ZIP file of your PHP web app. Make sure that the ZIP file contains all the necessary files and directories for your app to run.
    2. Enable running from package by setting the WEBSITE_RUN_FROM_PACKAGE app setting. You can set it by running the following command with Azure CLI: `az webapp config appsettings set --resource-group <group- name> --name <app-name> --settings WEBSITE_RUN_FROM_PACKAGE="1"`
    3. Deploy the ZIP file to your web app using the Azure CLI az webapp deployment source config-zip command. For example: az webapp deployment source config-zip --resource-group <group-name> --name <app-name> --src <filename>.zip This command uploads the ZIP file to your web app and restarts the app. Because WEBSITE_RUN_FROM_PACKAGE is set, App Service mounts the uploaded package as the read-only wwwroot directory and runs the app directly from that mounted directory.

    If you still face the same issue, please provide more information about your deployment process and the error message you are seeing.

    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.