Questions tagged [azure-managed-identity]

Azure AD managed identities for Azure resources.

For more information, see the documentation.

795 questions
28
votes
3 answers

Referencing a Managed Service Identity in ARM-template deploy

When deploying a Microsoft.Web resource with the new MSI feature the principleId GUID for the created user is visible after deployment. Screenshot below shows the structure in the ARM-template. What would be the best way to fetch this GUID later in…
soderstromOlov
  • 384
  • 1
  • 5
  • 11
19
votes
1 answer

The system cannot find the file specified - azure key vault certificate

I have added a pfx certificate in azure key vault. I have one asp.net web api application where through one of the endpoint I am trying to access certificate information from key vault. public class ValuesController : ControllerBase { public…
16
votes
2 answers

ManagedIdentityCredential authentication unavailable, no managed identity endpoint found

Im trying to allow an app service (python) to get secrets from azure keyvault without the usage of hardcoded client id/secrets, therefore I`m trying to use ManagedIdentity. I have enabled system & user assigned functions in my service app I have…
lior
  • 161
  • 1
  • 1
  • 4
16
votes
3 answers

How to use Azure Managed Identity in Azure Function to access Service Bus with a trigger?

I have created a ServiceBus namespace in Azure, along with a topic and a subscription. I also have a simple Azure version 1 function that triggers on a received topic in the ServiceBus, like this: [FunctionName("MyServiceBusTriggerFunction")] public…
14
votes
6 answers

Net core Key vault configuration using Azure.Security.KeyVault.Secrets

I have found out it is easy to connect to Azure KeyVault using Managed Identity. The documentation shows how to do it : var azureServiceTokenProvider = new AzureServiceTokenProvider(); var keyVaultClient = new…
Sam
  • 13,934
  • 26
  • 108
  • 194
14
votes
4 answers

How to use MSI for development in visual studio?

I need to get access to my Key Vault during development and debugging. Is it possible via using managed service identity? I see that my code can get this credentials when the app is deployed on VM, but what if I need them during development on my…
Kostya Vyrodov
  • 6,257
  • 5
  • 23
  • 34
13
votes
10 answers

Unable to get access to Key Vault using Azure MSI on App Service

I have enabled Managed Service Identities on an App Service. However, my WebJobs seem unable to access the keys. They report: Tried the following 3 methods to get an access token, but none of them worked. Parameters: Connectionstring: [No connection…
12
votes
3 answers

Use managed identities in Azure DevOps build pipeline

I managed to get the below code to work (complete code here) to use Azure managed identity to authenticate (via Visual Studio) and have access to Azure storage account without using credentials. const string storageResource =…
Fabio Milheiro
  • 8,100
  • 17
  • 57
  • 96
11
votes
1 answer

Managed Identity - how to debug locally

I am using the following code to test system managed identity on my web app and it works fine when I deploy in Azure but is there a way to test locally(without giving permissions to my Azure account for the resource?)? AzureServiceTokenProvider…
Pratik Mehta
  • 1,310
  • 4
  • 15
  • 37
11
votes
2 answers

Access Key Vault from local Service Fabric cluster with MSI

I want to access the Key Vault from my Service Fabric application via Managed Service Identity (MSI). I have enabled MSI on the virtual machine scale set in the Azure Portal and given it access to my Key Vault resource. This works like a charm up in…
9
votes
4 answers

How to authenticate with Azure ACR from Azure container app service

I'm trying to set up my App Container Service so that it can pull docker images from our ACR using Managed Identity, rather than storing the username and password in the app settings (apart from anything else we want to script these deployments and…
Richiban
  • 5,569
  • 3
  • 30
  • 42
9
votes
4 answers

.NET Core - Create SqlConnection with AccessToken

My understanding is that in order to implement Azure AD Managed Service Identity access to a SQL Database in Azure, I would need to create a SqlConnection with a retrieved token. To add that token to the SqlConnection, .NET 4.6+ has an AccessToken…
KickinMhl
  • 1,218
  • 3
  • 14
  • 32
8
votes
2 answers

Login failed for user '' when web app is in an AAD Group

My Web App fails to login to the DB server when the Azure Active Directory Admin is an AAD Group I have been rolling out the 'new' Managed Identity feature on my Azure Web Apps with varying levels of success. In a nutshell, we would like to be able…
8
votes
0 answers

Connecting from Azure Databricks to Azure SQL using User Managed Identity

I am trying to read data on an Azure SQL instance from an Azure Databricks workspace, avoiding using username/password personal credentials for automated, regular data fetch & analysis. I thought using a managed identity would do the job, however it…
8
votes
1 answer

Azure DevOps Hosted Build Agent MSI

I have an ASP.Net Core 2.1 project with a test project that contains some integration tests that require/need Azure Managed Service Identity access to run successfully (getting secrets from KeyVault). I am using an Azure DevOps VS2017 Hosted Build…
1
2 3
52 53