Skip to content

[BUG]: Azure pipeline task 2.264.0 Azure Key Vault access issue #21589

@kenthellck

Description

@kenthellck

New issue checklist

Task name

AzureKeyVault@2

Task version

2.264.0

Issue Description

We noticed that azure key vault task is having issues and failing the job when running a key vault task. Can someone please have a look?

Image

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Windows 2019 Datacenter

Relevant log output

2025-12-15T21:08:37.6292238Z ##[section]Starting: Azure Key Vault
2025-12-15T21:08:38.0570535Z ==============================================================================
2025-12-15T21:08:38.0572059Z Task         : Azure Key Vault
2025-12-15T21:08:38.0573223Z Description  : Download Azure Key Vault secrets
2025-12-15T21:08:38.0573712Z Version      : 2.264.0
2025-12-15T21:08:38.0575050Z Author       : Microsoft Corporation
2025-12-15T21:08:38.0576086Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-key-vault
2025-12-15T21:08:38.0576902Z ==============================================================================
2025-12-15T21:08:41.0586054Z ##[error]Unhandled: Unexpected token .
2025-12-15T21:08:41.0832467Z ##[error]C:\azagent\A1\_work\_tasks\AzureKeyVault_<changed_the_id>\2.264.0\node_modules\@azure\msal-node\lib\msal-node.cjs:48
                tenantProfiles: accountEntity.tenantProfiles?.map((tenantProfile) => {
                                                             ^

SyntaxError: Unexpected token .
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (C:\azagent\A1\_work\_tasks\AzureKeyVault_1e244d32-2dd4-4165-96fb-b7441ca9331e\2.264.0\node_modules\@azure\identity\dist\index.js:5:18)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
2025-12-15T21:08:41.0913594Z ##[section]Finishing: Azure Key Vault

Full task logs with system.debug enabled

Details
 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

Azure deployment group windows agent version is 2.202.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions