how do i get webapp deployment information using AZ CLI

I am trying to get the app deployment information from a webapp using az cli

basically this info that i can get from AZ portal deployment center, but i am trying to get this using az cli:

enter image description here

information i am trying to get is:

Branch, build and release, with date of deployment.


Solution 1:

Using az webapp deployment module you can configure the CI/CD of the webapp but there is no command to list the deployments from CLI . So , after looking into resources.azure.com , Found that the Deployment details can be received from Azure Rest Api's.

https://management.azure.com/subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.Web/sites/<WebAppName>/deployments?api-version=2020-12-01

Example:

enter image description here

enter image description here