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

Azure DefaultAzureCredential not getting access token in Node.js application

I have a React front end, Node.js backend app with Azure SQL DB that has Azure AD auth on the React side, and managed identities in Azure. I am trying to get the access token using DefaultAzureCredential from the @azure/identity package so I can…
0
votes
0 answers

ClientAssertionCredential authentication failed when trying to access an Azure SQL Server from a pod in AKS using workload identity

I have an Azure infrastructure set up with Hub-spoke virtual network topology. In the spoke network I have an AKS cluster with workload identity enabled. Within the cluster I have deployed a few microservices, each running ASP.NET Core with the most…
0
votes
0 answers

How to resolve CredentialUnavailableError in DefaultAzureCredential?

I have written one method which creates an EventHubProducerClient using the credentials from DefaultAzureCredential. In DefaultAzureCredential, I am using options DefaultAzureCredentialResourceIdOptions with managed identity resource id. My code…
0
votes
0 answers

How to update ACR password in the Azure container app secrets without using UI?

As we have more than 50 container apps that require ACR password updates, doing it through UI is a very long task. I tried to create a Makefile which uses the az cli tool to get the secret name and update with new password. Note, the secret name was…
0
votes
1 answer

C# DefaultAzureCredentials + Visual Studio

Right now I'm converting our apps from connecting to Azure App Configs and Azure Key Vaults using Client IDs + Secrets to using the DefaultAzureCredentials. Overall, I like the additional security that I'm gaining. And that I can govern access via…
0
votes
0 answers

Connect asp.net webapp to PBI with Defaultazurecredentials 401 error

Library name and version using Azure.Identity 1.9.0 Query/Question Currently I pick up a acces token in the following way: AuthenticationResult authenticationResult = null; var authenticationContext = new AuthenticationContext(authorityUrl +…
Mark Wekking
  • 391
  • 1
  • 5
  • 14
0
votes
0 answers

Upload Blob Azure DefaultAzureCredential Input does not contain any JSON tokens

I am trying to follow the Upload to Blob tutorial from here https://learn.microsoft.com/en-us/azure/app-service/scenario-secure-app-access-storage?tabs=azure-portal - and want to use Managed Identity instead of the access key as that gets rotated…
enavuio
  • 1,428
  • 2
  • 19
  • 31
0
votes
1 answer

Managed Identity Not Assigned to the resource

I want to do various VM operations like starting a VM, deallocating it without manual login step using Azure python SDK. To do that, I have to use an user-assigned managed identity. So I created an Ubuntu VM, a user assigned managed identity. The…
0
votes
1 answer

External nuget has DefaultAzureCredential() for auth token creation, which fails while debugging in local visual studio

My Project is using a nuget which implementing auth token validation using DefaultAzureCredential() based SecretClient creation for reading azure keyvault. Due to DefaultAzureCredential follows following order for auth, my code gives mangedIdentity…
0
votes
1 answer

Azure Function app fails to retrieve secrets from Azure Key Vault in Visual Studio

I have a Visual Studio 2022 solution that includes multiple project types, one of which is a .NET Core website and the other is an Azure Function app. I'm using Azure Key Vault to store secrets, and I'm using the DefaultAzureCredential to retrieve…
0
votes
0 answers

User assigned managed identity does not work with DefaultAzureCredential

In my Az Function I have system assigned managed identity enabled and a user assigned managed identity assigned. I would like to use the user assigned managed identity to access some resources, so I put the following code to initialize…
0
votes
1 answer

Use DefaultAzureCredentials to authenticate Service bus in Docker Container

I'm trying to use DefaultAzureCredentials to authenticate my Azure function against Azure Service Bus. In my azure function azure-func-service-bus, I call to Azure Service Bus servicebus_client = ServiceBusClient( …
0
votes
1 answer

Create an AzureBlobDatastore() with SDK-V2

I am trying to create an AzureBlobDatastore() via the azure-sdk-v2. Previously, I successfully managed to perform the same operation via azure-sdk-v1 (from tutorial link in the next paragraph). I am following this tutorial :…
0
votes
1 answer

Python DefaultAzureCredential get_token set expiration or renew token

I'm using DefaultAzureCredential from azure-identity to connect to Azure with service principal environment variables (AZURE_CLIENT_SECRET, AZURE_TENANT_ID, AZURE_CLIENT_ID). I can get_token from a specific scope like databricks like this: from…
0
votes
2 answers

Azure Monitor Query client library - The provided credentials have insufficient access to perform the requested operation (InsufficientAccessError)

in order to programmatically retrive some AppTraces and AppExceptions info from an Azure Application Insights Logs resource, we followed the instructions included in the following article advicing to adopt the new Azure Monitor Query client library…