Description
Library name and version
Azure.Identity 1.7.0
Describe the bug
At some point over the last two years, the IMDS token acquisition flow was updated to the current model used by ImdsManagedIdentitySource and, as a part of this new model, the token acquisition timeout was updated to 1 second, as configured in DefaultAzureCredentialFactory
(see InitialImdsConnectionTimeout
on line 105).
This is in direct contrast to the three-second timeout that the Managed Identity team previously updated this sdk to observe back in 2020 (see AzureVmImdsProbeTimeoutInSeconds
). As far as we're aware, the MI/IMDS team were not involved in the conversation to change this timeout and now we're receiving tickets from partners complaining that these calls are timing out and failing to acquire a token.
Expected behavior
The timeout for calls to the IMDS token endpoint should be three seconds.
Actual behavior
The timeout for calls to the IMDS token is one second.
Reproduction Steps
N/A
Environment
Azure VM/VMSS