Issues
Issues copied to clipboard
Deploy an Azure App Service reports success when the deployment fails
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
- On the App Server set the environment variable
WEBSITE_NODE_DEFAULT_VERSIONto6.9.1, you may need to enable App insights too. This is to cause an error on deployment. - Use the Deploy an Azure App Service task in Octopus to deploy to this App Service.
- The task should report it has completed successfully.
- Open Azure portal and navigate to the App Service.
- Open the Deployment Center and open the Logs tab.
- The deployment will show as Failed.
- 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