question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Azure.Identity: AzureCliCredential times out

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

5reactions
schaabscommented, Sep 30, 2020

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.

2reactions
Sklenicommented, Jun 21, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

not able to fetch token using DefaultAzureCredential and ...
I am using Azure.Identity 1.7 and using VS 2022 , trying to get the token using DefaultAzureCredential, var tokenCredential = new ...
Read more >
DefaultAzureCredential().GetTokenAsync fails when using ...
In Azure, I get this exception: Azure.Identity.AuthenticationFailedException: DefaultAzureCredential failed to retrieve a token from the ...
Read more >
azure-identity
This addresses scenarios where these proceses can take longer than the current default timeout values. The affected credentials are AzureCliCredential ...
Read more >
azure.identity package - Microsoft .NET
timeout (int) – seconds to wait for the user to authenticate. Defaults to the validity period of the device code as set by...
Read more >
azidentity
The Azure Identity module provides Azure Active Directory (Azure AD) token authentication support across the Azure SDK.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found