Reputation: 11
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