From 604afbe1e074ad294bcbc440da8cd74b5d26594c Mon Sep 17 00:00:00 2001 From: Shashank Bhat Date: Wed, 19 Oct 2022 12:23:44 +0530 Subject: [PATCH] IMDS timeout increased to 10 seconds In case of stressed servers 1000ms is very aggressive time. This PR is to just trying to get some attention in to this intermittent context deadline issue --- sdk/azidentity/default_azure_credential.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/azidentity/default_azure_credential.go b/sdk/azidentity/default_azure_credential.go index c2b801c4a6db..a67f31e62b2f 100644 --- a/sdk/azidentity/default_azure_credential.go +++ b/sdk/azidentity/default_azure_credential.go @@ -67,7 +67,7 @@ func NewDefaultAzureCredential(options *DefaultAzureCredentialOptions) (*Default msiCred, err := NewManagedIdentityCredential(o) if err == nil { creds = append(creds, msiCred) - msiCred.mic.imdsTimeout = time.Second + msiCred.mic.imdsTimeout =10 * time.Second } else { errorMessages = append(errorMessages, credNameManagedIdentity+": "+err.Error()) creds = append(creds, &defaultCredentialErrorReporter{credType: credNameManagedIdentity, err: err})