azure-sdk-for-net: [BUG] Azure.Identity: AzureCliCredential times out

Describe the bug Please provide the description of issue you’re seeing.

I am making a call to GetBlobContainers() from a BlobServiceClient using the AzureCliCredential. The error I receive is {“The ChainedTokenCredential failed due to an unhandled exception: Azure CLI authentication timed out.”}. I am running a C# Azure Function from within Visual Studio

Expected behavior What is the expected behavior?

This should succeed. I am logged into Azure in a PowerShell 7 window on the same machine. It is all local

Actual behavior (include Exception or Stack Trace) What is the actual behavior?

Exception thrown: ‘Azure.Identity.AuthenticationFailedException’ in System.Private.CoreLib.dll Exception thrown: ‘Azure.Identity.AuthenticationFailedException’ in System.Private.CoreLib.dll Exception thrown: ‘Azure.Identity.AuthenticationFailedException’ in System.Private.CoreLib.dll Exception thrown: ‘Azure.Identity.AuthenticationFailedException’ in Azure.Storage.Blobs.dll Exception thrown: ‘Azure.Identity.AuthenticationFailedException’ in System.Private.CoreLib.dll Exception thrown: ‘Azure.Identity.AuthenticationFailedException’ in Azure.Storage.Blobs.dll Exception thrown: ‘Azure.Identity.AuthenticationFailedException’ in System.Private.CoreLib.dll Exception thrown: ‘Azure.Identity.AuthenticationFailedException’ in System.Private.CoreLib.dll

{“The ChainedTokenCredential failed due to an unhandled exception: Azure CLI authentication timed out.”} Data: {System.Collections.ListDictionaryInternal} HResult: -2146233088 HelpLink: null InnerException: Count = 2 Message: “The ChainedTokenCredential failed due to an unhandled exception: Azure CLI authentication timed out.” SerializationRemoteStackTraceString: null SerializationStackTraceString: " at Azure.Identity.ChainedTokenCredential.GetToken(TokenRequestContext requestContext, CancellationToken cancellationToken)\r\n at Azure.Core.Pipeline.BearerTokenAuthenticationPolicy.AccessTokenCache.GetHeaderValueFromCredentialAsync(HttpMessage message, Boolean async, CancellationToken cancellationToken)\r\n at Azure.Core.Pipeline.BearerTokenAuthenticationPolicy.AccessTokenCache.GetHeaderValueAsync(HttpMessage message, Boolean async)\r\n at Azure.Core.Pipeline.BearerTokenAuthenticationPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)\r\n at Azure.Core.Pipeline.TaskExtensions.EnsureCompleted(ValueTask task)\r\n at Azure.Core.Pipeline.BearerTokenAuthenticationPolicy.Process(HttpMessage message, ReadOnlyMemory1 pipeline)\r\n at Azure.Core.Pipeline.HttpPipelinePolicy.ProcessNext(HttpMessage message, ReadOnlyMemory1 pipeline)\r\n at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.Process(HttpMessage message, ReadOnlyMemory1 p ipeline)\r\n at Azure.Core.Pipeline.HttpPipelinePolicy.ProcessNext(HttpMessage message, ReadOnlyMemory1 pipeline)\r\n at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)\r\n at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory1 pipeline, Boolean async)\r\n at Azure.Core.Pipeline.TaskExtensions.EnsureCompleted(ValueTask task)\r\n at Azure.Core.Pipeline.RetryPolicy.Process(HttpMessage message, ReadOnlyMemory1 pipeline)\r\n at Azure.Core.Pipeline.HttpPipelinePolicy.ProcessNext(HttpMessage message, ReadOnlyMemory1 pipeline)\r\n at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.Process(HttpMessage message, ReadOnlyMemory1 pipeline)\r\n at Azure.Core.Pipeline.HttpPipelinePolicy.ProcessNext(HttpMessage message, ReadOnlyMemory1 pipeline)\r\n at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.Process(HttpMessage message, ReadOnlyMemory1 pipeline)\r\n at Azure.Core.Pipeline.HttpPipelinePolicy.Process Next(HttpMessage message, ReadOnlyMemory1 pipeline)\r\n at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.Process(HttpMessage message, ReadOnlyMemory1 pipeline)\r\n at Azure.Core.Pipeline.HttpPipeline.Send(HttpMessage message, CancellationToken cancellationToken)\r\n at Azure.Storage.Blobs.BlobRestClient.Service.ListBlobContainersSegmentAsync(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri resourceUri, String version, String prefix, String marker, Nullable1 maxresults, IEnumerable1 include, Nullable1 timeout, String requestId, Boolean async, String operationName, CancellationToken cancellationToken)\r\n at Azure.Storage.Blobs.BlobServiceClient.GetBlobContainersInternal(String continuationToken, BlobContainerTraits traits, BlobContainerStates states, String prefix, Nullable1 pageSizeHint, Boolean async, CancellationToken cancellationToken)\r\n at Azure.Storage.Blobs.Models.GetBlobContainersAsyncCollection.GetNextPageAsync(String continuationToken, Nullable1 pageSizeHint, Bool ean async, CancellationToken cancellationToken)\r\n at Azure.Core.Pipeline.TaskExtensions.EnsureCompleted[T](ValueTask1 task)\r\n at Azure.Storage.StorageCollectionEnumerator1.StoragePageable.GetEnumerator()+MoveNext()\r\n at Company.Function.HttpTriggerCSharp1.Run(HttpRequest req, ILogger log) in C:\\Users\\pfisher\\source\\repos\\secretlessvs\\secretlessvs\\Function1.cs:line 42" SerializationWatsonBuckets: null Source: "Azure.Identity" StackTrace: " at Azure.Identity.ChainedTokenCredential.GetToken(TokenRequestContext requestContext, CancellationToken cancellationToken) in /_/sdk/identity/Azure.Identity/src/ChainedTokenCredential.cs:line 73\r\n at Azure.Core.Pipeline.BearerTokenAuthenticationPolicy.AccessTokenCache.<GetHeaderValueFromCredentialAsync>d__11.MoveNext() in /_/sdk/core/Azure.Core/src/Pipeline/BearerTokenAuthenticationPolicy.cs:line 217\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in /_/src/System.Private.CoreLib/shared/System/Runtime/ExceptionServices/ExceptionDispatchInfo.cs:line 63\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in /_/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TaskAwaiter.cs:line 180\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in /_/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TaskAwaiter.cs:line 151\r\n at System.Runtime.CompilerServices .TaskAwaiter.ValidateEnd(Task task) in /_/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TaskAwaiter.cs:line 122\r\n at System.Threading.Tasks.ValueTask1.get_Result() in //src/System.Private.CoreLib/shared/System/Threading/Tasks/ValueTask.cs:line 763\r\n at System.Runtime.CompilerServices.ValueTaskAwaiter1.GetResult() in /_/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/ValueTaskAwaiter.cs:line 129\r\n at Azure.Core.Pipeline.BearerTokenAuthenticationPolicy.AccessTokenCache.<GetHeaderValueAsync>d__8.MoveNext() in /_/sdk/core/Azure.Core/src/Pipeline/BearerTokenAuthenticationPolicy.cs:line 111\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in /_/src/System.Private.CoreLib/shared/System/Runtime/ExceptionServices/ExceptionDispatchInfo.cs:line 63\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in /_/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TaskAwaiter.cs:line 180\r\n at System.Runtime .CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in /_/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TaskAwaiter.cs:line 151\r\n at System.Threading.Tasks.ValueTask1.get_Result() in //src/System.Private.CoreLib/shared/System/Threading/Tasks/ValueTask.cs:line 763\r\n at System.Runtime.CompilerServices.ValueTaskAwaiter1.GetResult() in /_/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/ValueTaskAwaiter.cs:line 129\r\n at Azure.Core.Pipeline.BearerTokenAuthenticationPolicy.<ProcessAsync>d__6.MoveNext() in /_/sdk/core/Azure.Core/src/Pipeline/BearerTokenAuthenticationPolicy.cs:line 61\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in /_/src/System.Private.CoreLib/shared/System/Runtime/ExceptionServices/ExceptionDispatchInfo.cs:line 63\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in /_/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TaskAwaiter.cs:line 180\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in /_/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TaskAwaiter.cs:line 151\r\n at System.Runtime.CompilerServices.ValueTaskAwaiter.GetResult() in /_/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/ValueTaskAwaiter.cs:line 47\r\n at Azure.Core.Pipeline.TaskExtensions.EnsureCompleted(ValueTask task) in /_/sdk/core/Azure.Core/src/Shared/TaskExtensions.cs:line 62\r\n at Azure.Core.Pipeline.BearerTokenAuthenticationPolicy.Process(HttpMessage message, ReadOnlyMemory1 pipeline) in //sdk/core/Azure.Core/src/Pipeline/BearerTokenAuthenticationPolicy.cs:line 52\r\n at Azure.Core.Pipeline.HttpPipelinePolicy.ProcessNext(HttpMessage message, ReadOnlyMemory1 pipeline) in /_/sdk/core/Azure.Core/src/Pipeline/HttpPipelinePolicy.cs:line 50\r\n at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.Process(HttpMessage message, ReadOnlyMemory1 pipeline) in //sdk/core/Azure.Core/sr c/Pipeline/HttpPipelineSynchronousPolicy.cs:line 19\r\n at Azure.Core.Pipeline.HttpPipelinePolicy.ProcessNext(HttpMessage message, ReadOnlyMemory1 pipeline) in /_/sdk/core/Azure.Core/src/Pipeline/HttpPipelinePolicy.cs:line 50\r\n at Azure.Core.Pipeline.RetryPolicy.<ProcessAsync>d__11.MoveNext() in /_/sdk/core/Azure.Core/src/Pipeline/Internal/RetryPolicy.cs:line 61\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in /_/src/System.Private.CoreLib/shared/System/Runtime/ExceptionServices/ExceptionDispatchInfo.cs:line 63\r\n at Azure.Core.Pipeline.RetryPolicy.<ProcessAsync>d__11.MoveNext() in /_/sdk/core/Azure.Core/src/Pipeline/Internal/RetryPolicy.cs:line 94\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in /_/src/System.Private.CoreLib/shared/System/Runtime/ExceptionServices/ExceptionDispatchInfo.cs:line 63\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in /_/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices /TaskAwaiter.cs:line 180\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in /_/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TaskAwaiter.cs:line 151\r\n at System.Runtime.CompilerServices.ValueTaskAwaiter.GetResult() in /_/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/ValueTaskAwaiter.cs:line 47\r\n at Azure.Core.Pipeline.TaskExtensions.EnsureCompleted(ValueTask task) in /_/sdk/core/Azure.Core/src/Shared/TaskExtensions.cs:line 62\r\n at Azure.Core.Pipeline.RetryPolicy.Process(HttpMessage message, ReadOnlyMemory1 pipeline) in //sdk/core/Azure.Core/src/Pipeline/Internal/RetryPolicy.cs:line 38\r\n at Azure.Core.Pipeline.HttpPipelinePolicy.ProcessNext(HttpMessage message, ReadOnlyMemory1 pipeline) in /_/sdk/core/Azure.Core/src/Pipeline/HttpPipelinePolicy.cs:line 50\r\n at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.Process(HttpMessage message, ReadOnlyMemory1 pipeline) in //sdk/core/Azure.Core/src/P ipeline/HttpPipelineSynchronousPolicy.cs:line 19\r\n at Azure.Core.Pipeline.HttpPipelinePolicy.ProcessNext(HttpMessage message, ReadOnlyMemory1 pipeline) in /_/sdk/core/Azure.Core/src/Pipeline/HttpPipelinePolicy.cs:line 50\r\n at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.Process(HttpMessage message, ReadOnlyMemory1 pipeline) in //sdk/core/Azure.Core/src/Pipeline/HttpPipelineSynchronousPolicy.cs:line 19\r\n at Azure.Core.Pipeline.HttpPipelinePolicy.ProcessNext(HttpMessage message, ReadOnlyMemory1 pipeline) in /_/sdk/core/Azure.Core/src/Pipeline/HttpPipelinePolicy.cs:line 50\r\n at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.Process(HttpMessage message, ReadOnlyMemory1 pipeline) in //sdk/core/Azure.Core/src/Pipeline/HttpPipelineSynchronousPolicy.cs:line 19\r\n at Azure.Core.Pipeline.HttpPipeline.Send(HttpMessage message, CancellationToken cancellationToken) in //sdk/core/Azure.Core/src/Pipeline/HttpPipeline.cs:line 81\r\n at Azure.Storage.Blobs.BlobRestClient.Service.<ListBlobCon tainersSegmentAsync>d__9.MoveNext() in //sdk/storage/Azure.Storage.Blobs/src/Generated/BlobRestClient.cs:line 530\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in //src/System.Private.CoreLib/shared/System/Runtime/ExceptionServices/ExceptionDispatchInfo.cs:line 63\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in //src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TaskAwaiter.cs:line 180\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in //src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TaskAwaiter.cs:line 151\r\n at Azure.Storage.Blobs.BlobServiceClient.<GetBlobContainersInternal>d__44.MoveNext() in //sdk/storage/Azure.Storage.Blobs/src/BlobServiceClient.cs:line 644\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in //src/System.Private.CoreLib/shared/System/Runtime/ExceptionServices/ExceptionDispatchInfo.cs:line 63\r\n at Sys tem.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in //src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TaskAwaiter.cs:line 180\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in //src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TaskAwaiter.cs:line 151\r\n at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() in /_/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TaskAwaiter.cs:line 563\r\n at Azure.Storage.Blobs.Models.GetBlobContainersAsyncCollection.<GetNextPageAsync>d__5.MoveNext() in /_/sdk/storage/Azure.Storage.Blobs/src/Models/GetBlobContainersAsyncCollection.cs:line 42\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() in /_/src/System.Private.CoreLib/shared/System/Runtime/ExceptionServices/ExceptionDispatchInfo.cs:line 63\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) in / _/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TaskAwaiter.cs:line 180\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) in /_/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TaskAwaiter.cs:line 151\r\n at System.Threading.Tasks.ValueTask1.get_Result() in //src/System.Private.CoreLib/shared/System/Threading/Tasks/ValueTask.cs:line 763\r\n at System.Runtime.CompilerServices.ValueTaskAwaiter1.GetResult() in /_/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/ValueTaskAwaiter.cs:line 129\r\n at Azure.Core.Pipeline.TaskExtensions.EnsureCompleted[T](ValueTask1 task) in //sdk/core/Azure.Core/src/Shared/TaskExtensions.cs:line 50\r\n at Azure.Storage.StorageCollectionEnumerator`1.StoragePageable.<GetEnumerator>d__5.MoveNext() in //sdk/storage/Azure.Storage.Common/src/Shared/StorageCollectionEnumerator.cs:line 103\r\n at Company.Function.HttpTriggerCSharp1.<Run>d__0.MoveNext() in C:\Users\pfis her\source\repos\secretlessvs\secretlessvs\Function1.cs:line 42" TargetSite: {Azure.Core.AccessToken GetToken(Azure.Core.TokenRequestContext, System.Threading.CancellationToken)} _HResult: -2146233088 _data: {System.Collections.ListDictionaryInternal} _dynamicMethods: null _exceptionMethod: null _helpURL: null _innerException: Count = 2 _ipForWatsonBuckets: 0x00007ffcf37818d5 _message: “The ChainedTokenCredential failed due to an unhandled exception: Azure CLI authentication timed out.” _remoteStackTraceString: null _source: null _stackTrace: {sbyte[3072]} _stackTraceString: null _watsonBuckets: null _xcode: -532462766 _xptrs: 0x0000000000000000

To Reproduce Steps to reproduce the behavior (include a code snippet, screenshot, or any additional information that might help us reproduce the issue)

This is the code I am using. config[“UserAssignedIdentity”] is null. config[“StorageAccountName”] is a url to a storage account where I am the owner and I am a data reader contributor.

        var config = new ConfigurationBuilder()
            .SetBasePath(Directory.GetCurrentDirectory())
            .AddJsonFile("local.settings.json", optional: true, reloadOnChange: true)
            .AddEnvironmentVariables()
            .Build();

        var existingContainers = new List<string>();

        var credential = new ChainedTokenCredential(
            new ManagedIdentityCredential(string.IsNullOrEmpty(config["UserAssignedIdentity"])
                ? null
                : config["UserAssignedIdentity"]),
            new AzureCliCredential());

        try
        {
            var blobServiceClient = new BlobServiceClient(new Uri(config["StorageAccountName"]), credential);
            var containers = blobServiceClient.GetBlobContainers();
            foreach (var container in containers) //Error occurs here
            {
                existingContainers.Add(container.Name);
            }
        }
        catch (Exception e) //exception always caught here
        {
            return new BadRequestObjectResult(e);
        }

Environment:

  • Name and version of the Library package used: Azure.Storage.Blobs 12.5.1, Azure.Identity 1.2.2, Microsoft.NET.Sdk.Functions 3.0.9

  • Hosting platform or OS and .NET runtime version (dotnet --info output for .NET Core projects): [e.g. Azure AppService or Windows 10 .NET Framework 4.8]

PS C:\Users\pfisher> dotnet --info .NET Core SDK (reflecting any global.json): Version: 3.1.401 Commit: 5b6f5e5005

Runtime Environment: OS Name: Windows OS Version: 10.0.19041 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\3.1.401\

Host (useful for support): Version: 3.1.7 Commit: fcfdef8d6b

.NET Core SDKs installed: 1.1.13 [C:\Program Files\dotnet\sdk] 1.1.14 [C:\Program Files\dotnet\sdk] 2.1.602 [C:\Program Files\dotnet\sdk] 2.1.604 [C:\Program Files\dotnet\sdk] 2.1.700 [C:\Program Files\dotnet\sdk] 2.1.701 [C:\Program Files\dotnet\sdk] 2.1.801 [C:\Program Files\dotnet\sdk] 2.2.300 [C:\Program Files\dotnet\sdk] 3.1.300 [C:\Program Files\dotnet\sdk] 3.1.401 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 1.0.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 1.0.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 1.1.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 1.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.21 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.2.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.1.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download

  • IDE and version : [e.g. Visual Studio 16.3] Visual Studio 16.7.1

Other things to note: I do have access to many subscriptions. However, I sepecifically set the subscription appropriately in the CLI window using az account set

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 5
  • Comments: 17 (6 by maintainers)

Most upvoted comments

The issue is due to a deadlock waiting for the process to exit due to the way ProcessRunner reads the process output as @gabrielweyer suggested above. I have a prototype fix but I still need to do some refining and add testing. I’ll link the PR once it’s available.

I just encountered the same problem, no load here either.

Not sure why it’s closed - just ran into this myself. It’s pretty reproducible, nothing to do with load though might be a race condition when multiple requests are being made in parallel.