Issues icon indicating copy to clipboard operation
Issues copied to clipboard

Deploy an Azure App Service reports success when the deployment fails

Open pbertie opened this issue 6 months ago • 1 comments

Severity

Underlying reason for deployment failure has been resolved. This is a reliability issue.

Version

Present in 2025.1.10159

Latest Version

I could reproduce the problem in the latest build

What happened?

When using the Deploy an Azure App Service task to deploy an App Service, if the deployment fails then the task still marks itself as successful and continues.

Reproduction

  1. On the App Server set the environment variable WEBSITE_NODE_DEFAULT_VERSION to 6.9.1, you may need to enable App insights too. This is to cause an error on deployment.
  2. Use the Deploy an Azure App Service task in Octopus to deploy to this App Service.
  3. The task should report it has completed successfully.
  4. Open Azure portal and navigate to the App Service.
  5. Open the Deployment Center and open the Logs tab.
  6. The deployment will show as Failed.
  7. Opening the details of the failure will show:
    • Updating submodules.
    • Preparing deployment for commit id '9cd85a6d1f'.
    • ❌ Generating deployment script.
    • Deployment Failed.

Error and Stacktrace


More Information

No response

Workaround

No response

pbertie avatar Jul 08 '25 16:07 pbertie