Azure Key Vault plugin on Jenkins throws ManagedIdentityCredential authentication unavailable.Connection to IMDS endpoint cannot be established

Jenkins setup:
Jenkins is installed on Kubernetes Cluster via Helm chart.
Jenkins Version: 2.414.2
Issue with: Azure Key Vault Plugin
Plugin Version: 214.vf667264ea_ccd

Hi Team,

We recently installed Azure Key Vault plugin on our Jenkins and configured with Azure Managed identity credentials. We followed this documentation Azure Key Vault | Jenkins plugin

Configured in Jenkins pipeline like below:

 def test() 
azureKeyVault([[envVariable: 'test-creds', name: 'test-creds', secretType: 'secret']])

Facing the below error: ManagedIdentityCredential authentication unavailable. Connection to IMDS endpoint cannot be established.
at reactor.core.publisher.FluxFlatMap.trySubscribeScalarMap(
at reactor.core.publisher.MonoFlatMap.subscribeOrReturn(
at reactor.core.publisher.Mono.subscribe(
at reactor.core.publisher.Mono.subscribeWith(
at reactor.core.publisher.Mono.toFuture(

Kindly let me know what is that i am doing wrong.


Hello @tech_savy and welcome to this community. :wave:

It looks like the Azure Managed Identity for your Jenkins instance is having trouble authenticating or connecting to the Azure IMDS (Instance Metadata Service) endpoint.

Are you sure that the Azure Managed Identity you’ve configured in Jenkins has the appropriate permissions to access the Azure Key Vault? :thinking:
I think it should have at least the “get” permission on secrets.

Dear @poddingue
Thank you for your reply !

Yes , the Managed identity has both Get and List permission on Key Vault secrets. Do we also need it on Key Vault level?