-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
Description
New issue checklist
- I searched for existing GitHub issues
- I read pipeline troubleshooting guide
- I checked how to collect logs
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?
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 VaultFull task logs with system.debug enabled
Details
[REPLACE THIS WITH YOUR INFORMATION]
Repro steps
Azure deployment group windows agent version is 2.202.1
lsargent0, BrianThorChristensen, adelinchis, access-domroutley, CodyF-Vel and 2 more