rahul kaushik
rahul kaushik

Reputation: 11

Key vault authentication for .net console app

I am using Az key vault to retrieve Client Secret to Authentication. But when I run my console app using visual studio it return Client Secret based on the account I logged into the Visual Studio. But I try to execute the .exe , it give me error

-Azure.Identity.CredentialUnavailableException: DefaultAzureCredential failed to retrieve a token from the included credentials. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/defaultazurecredential/troubleshoot

I try to retrieve Client secret based on Client Id ,Secret Name , Tenant Id on a console app that is running on our onprim env. as .exe

Upvotes: 1

Views: 1005

Answers (0)

Related Questions