Skip to content

Unexpected deployment status on Azure WebApp Slot using getDeploymentStatusAsync from SupportsOneDeploy #41478

Open
@vlica-harness

Description

@vlica-harness

We are trying to get the deployment status of a package deployment which has been deployed to azure WebApp slot.
During the deployment and once the deployment is successful we are getting only this status in case of linux: BuildSuccessful

  • Tried with .war to a linux java tomcat stack.
  • Tried with .jar to a linux java SE (Embedded web server) stack.
  • Tried with .jar to a windows java code stack.

We are using this SDK version: azure-resourcemanager-appservice_2.26.1

We are following this example withTrackDeployment(true): https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/OneDeployTests.java#L104, but never got a RuntimeSuccessful.

Any idea why we always get only BuildSuccessful in case of linux?
Can we rely on this SupportsOneDeploy implementation in order to see if the application is getting successfully deployed?

Ref: https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-appservice_2.26.1/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/SupportsOneDeploy.java#L128

We have tried to call the API directly for windows java code WebApp, and there we always get when first time checking the status: BuildSuccessful, and all next time we check the status is: RuntimeStarting, even after the deployment is done on azure WebApp we anyway get: RuntimeStarting and never got RuntimeSuccessful
https://learn.microsoft.com/en-us/rest/api/appservice/web-apps/get-production-site-deployment-status?view=rest-appservice-2022-09-01&tabs=HTTP

Metadata

Metadata

Labels

ARMMgmtThis issue is related to a management-plane library.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions