Questions tagged [azure-managed-identity]

Azure AD managed identities for Azure resources.

For more information, see the documentation.

795 questions
3
votes
1 answer

Azure Function - Get Token from DefaultCredentials \ Managed Identity

I am working with an Azure Function that needs to authenticate into an API /APP Service with using JWT. I have been looking around a LOT of examples and settled on this as being the most appropriate public string GenerateToken() { var credential…
Simon Price
  • 3,011
  • 3
  • 34
  • 98
3
votes
2 answers

Using Azure Managed Identity in a Docker container running on an Azure VM

I have a problem in which I cannot reach my company's Container registry via Azure Container Instances and Azure Container Apps, which has to do with VNET's and a private link to the company's registry, and the fact that dynamically launched…
Josh
  • 404
  • 1
  • 5
  • 15
3
votes
4 answers

Azure Function: DefaultAzureCredential.GetTokenAsync fails when running locally

I have a C# azure function on .NET 6 running in dotnet-isolated mode. This function calls another azure function, which is using Azure AD Authentication. In order to generate the token I have the following code: var audience =…
3
votes
1 answer

How do I authenticate using a managed identity from gitlab-ci to push a docker container from gitlab registry to Azure web service?

I have researched the way to push docker images from gitlab container registry to an azure resource: Pushing Docker image from gitlab-ci to Azure Container Registry I have also found the documentation to create managed identities (both…
aknott
  • 195
  • 3
  • 11
3
votes
1 answer

Azure Function To Azure Function Request using DefaultAzureCredential and HttpClient

I need to call a Http Azure Function from another Azure Function. At present, I call an Azure Key Vault to get the target Function's Key, and put that in the URL as documented here:…
3
votes
3 answers

App Service Managed Identity and Key Vault the right way

I am currently trying to deploy out a resource group using azure bicep, however, I am running into an issue using key vault for my azure app service. I would like to know if I am actually doing this the correct way. I have a main bicep file that is…
3
votes
5 answers

Unable to use 'User-managed identity' with Azure Function App

I am trying to use 'User-managed identity' with my function app. The managed id has contributor access at resource-group level where function is hosted. It's a powershell function and at the moment it only has Write-Host "Hello World" When I run my…
Rfd
  • 115
  • 1
  • 2
  • 10
3
votes
2 answers

Azure SQL with Managed Identity (user-assigned) failed to use against AAD

I'm trying to utilize AAD identities to access Azure SQL server instead of SQL server users. I was following this article https://learn.microsoft.com/en-us/azure/azure-sql/database/authentication-aad-configure. What I need to do based on Microsoft…
3
votes
1 answer

Terraform - How to grant Azure API Management access to a key vault in a single TF run?

I have a PowerShell script that creates an Azure API Management service with a custom HTTPS domain using an SSL certificate stored in an Azure key vault. I'm converting it to Terraform but running into a problem. Terraform creates the APIM with a…
3
votes
1 answer

Start Azure VM runbook with managed identity

I am trying to run a runbook to start a VM using a managed identity. With a runas account it works but because Microsoft says it recommended to use a managed identity, I want to try it. This is part of the script that I got from internet and that…
stevenvd
  • 31
  • 4
3
votes
1 answer

Managed identities with databricks cluster

Can we use managed identities with databricks? What I'm actually trying to achieve is, I have a cluster in databricks, I want it to be able to access secrets or keys stored in an azure key vault. We generally perform this with VM, by enabling the…
3
votes
1 answer

AzureCliCredential giving error, Please run 'az login' to set up account

I am using ChainedTokenCredential and trying to get managed identity token in local debug environment using Visual Studio 2019. In windows terminal I already logged in using Azure CLI az login. var credential = new ChainedTokenCredential( …
user584018
  • 10,186
  • 15
  • 74
  • 160
3
votes
1 answer

How to properly use "get_token" of "ManagedIdentityCredential" of azure identity

I am trying to use managed identity of Azure function to access AAD protected web app, which requires a custom flow instead of using different clients. So the first step is to obtain an access token: credential = DefaultAzureCredential() scope =…
3
votes
1 answer

Use Managed Identity with Azure B2C Directly or with KeyVault

Goal: Prevent the use of client ID and secrets when making calls to Graph API. Is either of the following possible? Use Azure Managed Identity (that has been given Microsoft Graph API permissions) in applications using Azure B2C for Authentication.…
3
votes
2 answers

Azure - Accessing Key Vault using User Managed Identity in Java Spring Boot : Error Details: ManagedIdentityCredential authentication unavailable?

I have a Java Spring boot application that just reads the secret from Azure Key Vault, below are steps used Created an Application Registration Copied the App Registration details Generated Secret Granted access on Azure Key Vault and…