Using Git Revision in Windows Azure Cloud Deployments
Here's a quick approach for including git versions of your codebase into Windows Azure Deployment labels (as visible in the Portal). This applies to Azure SDK 1.6 and probably higher. Versions are appended automatically whenever you trigger a publish from Visual Studio.
git versions usually are reported by
git describe and could look like
r40 (if there is
r40 tag on the last commit) or
r39-31-g48ac07c (if last tag
r39 was 31 commits ago).
It works like this.
Step 1: Create new Azure Deployment profile for your deployment project. It will be saved somewhere to