Build agents, and other automation, often require specialized setup and configuration. While there is detailed documentation on GCM configuration options, below are common recommendations for settings agents often require to operate.
Build agents cannot manage modal dialogs, therefore we recommended the following configuration.
git config --global credential.interactive never
Build agents often need to minimize the amount of network traffic they generate.
To avoid Microsoft Account vs. Azure Active Directory look-up against a Visual Studio Team Services account use...
... for Azure Directory backed authentication:
git config --global credential.authority Azure
... for Microsoft Account backed authentication:
git config --global credential.authority Microsoft
If your agents rely on an on premise instance of Team Foundation Server and Windows Domain Authentication, use:
git config --global credential.authority Windows
To avoid unnecessary service account credential validation, when relying on Microsoft Account or Azure Active Directory use:
git config --global credential.validate false