[Feature Request] - Integrate Deployment Status API in 'azd up' and 'azd deploy' for Azure App Service
Azure App Service has a new "deployment status" API that provides a lot more insight and stateful information for all the things that happen server side after binary copy is complete and before the app is ready to serve the first request.
This is the documentation for the API https://learn.microsoft.com/en-us/rest/api/appservice/web-apps/get-production-site-deployment-status?view=rest-appservice-2022-03-01&tabs=HTTP
Integrating this with azd will give more insights into the web app deployment - both for Build and Runtime states. We have already integrated the API with Azure CLI and this is the blog for it. https://azure.github.io/AppService/2024/01/10/Deployment-Status-API-CLI.html
Please also refer to https://github.com/Azure/azure-dev/issues/2669.
Note that deployment status is only available for Linux Web Apps currently.
The simplest change we can make here is to update our existing zipdeploy submission to append trackStatus=true to the URL query. I believe that the server will return a Location header. The Location header will point to the polling location of either the old deploy API or the new deploymentstatus API. We'd handle both and provide better interactivity messages + error messaging with the new API.
Assuming this works as expected, this design would be mean that the enriched deployment status will automatically light up when the server-side changes are made to support more host platforms.