How to check / log deployment history for azure app service?

Viewed 2571

In in azure app service, how could we log a complete record (like user/alias) when a code is deployed or published to app service from visual studio ? Can it be monitored using application insights ?

I had overcome few similar questions here like Find recent deployment date time (History) in Azure App Service but it does not display information alias / user deployed code. Also CI/CD is not enabled.

1 Answers

Thanks for asking question! There are few ways you can check deployment history.

• Kudu API shows a log for previous deployments in Json.

Access Kudu for your app service: https://[app_service_name].scm.azurewebsites.net

Click Deployments from Rest API section.

Direct link: https://[app_service_name]/api/deployments

It shows the list of previous deployments with most recent at the top.

• You can go to your App Service, click 'Activity log' and set the timespan in which you think the deployment might have occurred (with a maximum of 90 days in the past). In Activity log default Timespan is Last 6 hours, you could choose the Timespan you need. Check the status of deployment for some more information.

Check this link: https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/view-activity-logs

• You may also View deployment history with Azure Resource Manager

Refer to this blog might be helpful.

Related