Questions tagged [azure-managed-identity]

Azure AD managed identities for Azure resources.

For more information, see the documentation.

795 questions
1
vote
2 answers

Using Managed Identity to Access Azure OpenAI Service

I'm working with Azure OpenAI service, and want to test its Managed Identity support. According to the docs it supports Managed Identity authentication, for example - using a VM. So I did the following: Created a VM in Azure Assigned it a managed…
ml123
  • 1,059
  • 2
  • 12
  • 27
1
vote
0 answers

Permission Issues with Azure Managed Identity and Dynamics 365 CRM (C#)

Language: C# .NET6 Dynamics: 356 CRM (Cloud) Integration: Azure Function (Timer) RequestType: HttpClientFactory (Http Client) Authentication: MSAL (Managed Identity) Currently using Dynamics 365 CRM (Cloud Based) and Azure Functions to integrate…
1
vote
0 answers

How to connect to Azure Service Bus using Managed Identity from a NodeJS (typescript) application

I have a NodeJS application that connects to Azure Service Bus, earlier we used to connect using shared access connection string, not sure how to connect it using Managed identity, there doesn't seem to be enough documentation available from…
1
vote
3 answers

How to run Azure Function locally using User Assigned Managed Identity configuration

I'm trying to run an Azure Function on my local dev machine. The function is configured to use User Assigned Managed Identity to access a Service Bus resource. When I publish this function to Azure it works perfectly fine, however when I try to run…
1
vote
1 answer

What is a managed identity (MSI)?

The Azure docs define managed identities as An identity in Azure Active Directory (more specifically, a special type of service principal) that is automatically managed by Azure. You typically use managed identities when developing cloud…
toraritte
  • 6,300
  • 3
  • 46
  • 67
1
vote
2 answers

Avoiding Azure.Identity.CredentialUnavailableException on the fresh startup

Short summary When I deploy my application which uses Managed Identity to connect to the Service Bus instance, for a first couple of minutes I see a lot of Azure.Identity.CredentialUnavailableException exceptions in the logs. Then it all starts…
1
vote
1 answer

Trying to authenticate with Azure using User Managed Identity fails with 401

I have terraform code that authenticates with a Service Principal using ARM_... env variables. Now I need to run a piece of configuration using the Managed identity assigned to the build agent VM. My TF code is: provider "azurerm" { features {} …
mark
  • 59,016
  • 79
  • 296
  • 580
1
vote
1 answer

Power BI - use managed identity to get data from Azure SQL database

I have a simple scenario where I have an Azure SQL Database and I want to use the data from the DB in a Power BI report. The DB server has only Azure AD authentication enabled. So far I managed to create and refresh the dataset by using my own…
chris770
  • 15
  • 4
1
vote
1 answer

Access system assigned Principal Id of managed identity from existing azure resource

I want to create access policy for existing app service that uses System Assigned managed identity: My code looks like this: resource apiWeb 'Microsoft.Web/sites@2022-03-01' existing = { name: apiWebAppName } resource keyVault…
1
vote
4 answers

How to use Azure Key Vault from Localhost using VS2022

I have configured Managed Identities for my Web App in App Services and registered this Web App using Azure App Registrations. For development purposes, I want to be able to run this app locally and use the Key Vault secrets. I Have also created a…
Jean-François Beaulieu
  • 4,305
  • 22
  • 74
  • 107
1
vote
1 answer

Assigning Object ID of Managed Identity in key_vault_access_policy

I'm trying to assign the Object ID of my User_Managed_Identity to the KeyVault_Access_Policy The Managed_Identity will need to Get & List the Certificates from my KeyVault. I've been following Terraform…
1
vote
2 answers

Azure DevOps Pipeline Running EF Core Migrations with Managed Identity

Recently I migrated an old project to use Managed Identity in order to access an Azure SQL Server. This works fine on both the deployed Azure App Service and when running locally. The problem now is we have an Azure DevOps Pipeline for CI/CD and one…
1
vote
1 answer

ManagedIdentityCredential authentication unavailable when running from Visual Studio

I recently configured our Azure App Service and Azure SQL Server to use managed identity access. The App Service has System assigned managed identity and has the correct assigned role as Owner for the SQL database. When I publish my code to the app…
1
vote
2 answers

No option to use managed identity in azure devops to connecti with container registry

I'd like to create connection between pipeline in Azure devops and container registry. Admins created Managed identity for me. I'd like to use that one but there is no way. According to guide: …
1
vote
1 answer

AzureAD Authentication: Audience validation failed. Audiences Did not match

I'm getting an access token from AzureAD using managed identity in my calling API. This user-assigned managed identity has an app role defined by the manifest of the called-API's app registration assigned to it. The token has the app role in its…