Azure App Service Deployment Error

Umer Rashid 85 Reputation points
2024-08-20T00:31:19.46+00:00

I am trying to deploy a NodeJS app to Azure App Service using Bitbucket Pipeline. But I am getting this error

"ERROR: There may be an ongoing deployment or your app setting has WEBSITE_RUN_FROM_PACKAGE. ... and ensure the WEBSITE_RUN_FROM_PACKAGE app setting is removed. Use 'az webapp config appsettings list --name MyWebapp --resource-group MyResourceGroup --subscription MySubscription' to list app settings and 'az webapp config appsettings delete --name MyWebApp --resource-group MyResourceGroup --setting-names <setting-names> to delete them".

Can please get to know how to fix that?

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

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 21,346 Reputation points
    2024-08-20T13:15:17.2033333+00:00

    @Umer Rashid Thanks for reaching here!

    The error message you are seeing indicates that there may be an ongoing deployment or that the WEBSITE_RUN_FROM_PACKAGE app setting is set. Here are a few things you can try to resolve the issue:

    1. Check for ongoing deployments: You can check if there are any ongoing deployments by going to the Azure portal and selecting your app service. From there, go to the "Deployment Center" section and check if there are any ongoing deployments. If there are, wait for them to complete before trying to deploy again.
    2. Remove the WEBSITE_RUN_FROM_PACKAGE app setting: If the WEBSITE_RUN_FROM_PACKAGE app setting is set, you can remove it by going to the Azure portal and selecting your app service. From there, go to the "Configuration" section and look for the WEBSITE_RUN_FROM_PACKAGE app setting. If it is set, remove it and try deploying again. User's image
    3. Check your deployment script: Ensure that your deployment script is correctly configured to deploy your Node.js app to Azure App Service. You can refer to the Azure documentation for guidance on how to deploy a Node.js app to Azure App Service using Bitbucket Pipeline- https://learn.microsoft.com/en-us/azure/app-service/deploy-continuous-deployment?tabs=github%2Cgithubactions#overview
    4. Check your app settings: Ensure that your app settings are correctly configured for your Node.js app. You can check your app settings by going to the Azure portal and selecting your app service. From there, go to the "Configuration" section and look for your app settings. Ensure that they are correctly configured for your Node.js app.

    Please let us know if further query or issue remains.

    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.