Skip to content

Instantly share code, notes, and snippets.

@rajbos
Created September 16, 2023 18:38
Show Gist options
  • Save rajbos/ccff6435a009cb0fc7551b2988b049d0 to your computer and use it in GitHub Desktop.
Save rajbos/ccff6435a009cb0fc7551b2988b049d0 to your computer and use it in GitHub Desktop.
Az CLI speed up on Azure DevOps
- 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
@rajbos
Copy link
Author

rajbos commented Jan 12, 2024

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.

@jessehouwing
Copy link

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