Finding deployment ID or commit hash with Azure Web Apps Node.JS
in Cloud & Serverless #node-js #microsoft-azure
You deploy your Node.js code to Azure Web Apps. In your code, you want to know the latest deployment commit ID/hash. Since Azure does not keep the information in environment variables, we will need to call a custom script on each build from package.json.