Initial performance of az is terrible on windows.
#8296
Labels
Area: Common Tools
awaiting-deployment
Code complete; awaiting deployment and/or deployment in progress
bug report
investigate
Collect additional information, like space on disk, other tool incompatibilities etc.
OS: Windows
Description
The first call to
azseems to take ages, subsequent calls are much faster. This is especially true on Windows.The following azure pipeline takes 1 minute+ to execute the first
az pipelinescall. subsequent calls execute in less than 3 seocnds:A comparison in time:
Turning off a number of features such as auto-upgrade and telemetry speeds up things quite a bit, but still not within acceptable range, but not consistently
After this the time for the first call drops from the 80 second range to around 30 seconds:
Still not great, but a marked improvement
I wonder whether calling
az --versionand potentiallyaz devops configure -land possibly a few other with a sufficiently longcache_ttlsetting may work to gain super-quick speeds in actual first use. This could potentially save quite a bit of time for each pipeline that usesazand its extensions.Explicitly logging in also seems to be faster than relying on the environment variable:
is faster than using
It's not a shocking improvement, but still a few seconds. In the grand scheme of things that would save a few a few trees...
Platforms affected
Runner images affected
Image version and build link
https://github.com/actions/runner-images/releases/tag/win22%2F20230910.1
Is it regression?
no
Expected behavior
First call is within acceptable speed (less than 20 seconds)
Actual behavior
First call take 80+ seconds
Repro steps
Create a pipeline as follows (Azure Pipelines example):
The text was updated successfully, but these errors were encountered: