Created
September 16, 2023 18:38
-
-
Save rajbos/ccff6435a009cb0fc7551b2988b049d0 to your computer and use it in GitHub Desktop.
Az CLI speed up on Azure DevOps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- script: | | |
c: | |
cd %USERPROFILE% | |
md .azure | |
cd .azure | |
echo [core] > config | |
echo first_run = false >> config | |
echo collect_telemetry = false >> config | |
echo error_recommendation = off >> config | |
echo output = json >> config | |
echo only_show_errors = true >> config | |
echo no_color = true >> config | |
echo disable_progress_bar = true >> config | |
echo [auto-upgrade] >> config | |
echo enable = False >> config | |
echo [logging] >> config | |
echo enable_log_file = no >> config | |
echo [output] >> config | |
echo show_survey_link = no >> config |
Use the environment variable for best results.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Test for ongoing work from @jessehouwing which he documented here: https://jessehouwing.net/recommendations-for-using-azure-cli-in-your-workflow/ to speed up the Azure CLI in Azure Agents / GitHub hosted runners by using more sensible defaults that do not wait for certain time outs or data packages to be sent out with installation telemetry for example.