Questions tagged [defaultazurecredential]

The DefaultAzureCredential class enables to connect and retrieve tokens from Azure Active Directory

The DefaultAzureCredential class enables to connect and retrieve tokens from Azure Active Directory.
There are implementations for:

39 questions
0
votes
0 answers

not able to fetch token using DefaultAzureCredential and VS 2022

I am using Azure.Identity 1.7 and using VS 2022 , trying to get the token using DefaultAzureCredential, var tokenCredential = new DefaultAzureCredential(); var accessToken = await tokenCredential.GetTokenAsync(new TokenRequestContext(new[]…
0
votes
0 answers

AzureCLI Credential fails on Tabular Object Model authentication

I am writing code to connect to power bi via TOM (Tabular Object Model) as opposed to the Rest API. Apparently the same authentication token can be used for both the REST API as well as TOM connectivity. As per here…
0
votes
1 answer

Creating Evenhub topic with EventHubManagementClient

I'm trying to create an EventHub topic within a namespace through my .net core application. I'm a bit struggling with the authentication and couldn't figure out exactly what should I do to get the Token credentials from Azure. Should I use…
0
votes
1 answer

How can I retrieve secret from Azure Key Vault from my Controller code

I have created an Azure Key Vault which saves my application secrets. And I want to retrieve the secrets from my Controller code. My controller code is based on ASP.Net core. From here,…
si Hwang
  • 317
  • 3
  • 14
0
votes
1 answer

How to Get Azure Access Token using DefaultAzureCredential without storing secrets

I am trying to setup my environment to be able to to access Azure resources from outside Azure. While looking at different options I cam across mainly below options of many others Option 1: Creating a Service Principal with the Azure CLI and use…
s s
  • 15
  • 1
  • 6
0
votes
1 answer

Retry failed after 4 tries. Retry settings can be adjusted in ClientOptions.Retry. (The SSL connection could not be established) accessing keyvault

We were able to connect to the keyvault from .NET 5 api running from my local machine till 2 days back. It is giving the below error recently Retry failed after 4 tries. Retry settings can be adjusted in ClientOptions.Retry. (The SSL connection…
ezycoder
  • 103
  • 2
  • 9
0
votes
1 answer

Performance issue for Managed identity for SQL authentication via azure function App

Below code works fine but cause performance issue as for every request it took avg 3 seconds more. What could be another approach for this? public QuoteContext(DbContextOptions options) : base(options) { var conn =…
0
votes
1 answer

DefaultAzureCredential doesn't work with User Assigned Managed Identity in Azure App Service while thats not the case with Azure VMSS

Enabled same "user assigned managed identity" for Azure VMSS as well as for Azure function app. Added the MI to the access policy of Azure key vault. On below application hosts, using "DefaultAzureCredential" trying connect to the Azure key vault to…
0
votes
1 answer

AAD to Sql Server - DefaultAzureCredential in IIS

what is the trick to use your AAD credentials using Azure.Identity and Sql Server when using IIS? Ultimately i want to use User Assigned Managed Identity with Sql Server, but i also need to debug locally. This code works locally and in Azure when…
randy
  • 253
  • 4
  • 17
1 2
3