Skip to content

[BUG]: AzureKeyVault@2 times out on Linux agent #21568

@james-bristow

Description

@james-bristow

New issue checklist

Task name

AzureKeyVault

Task version

2.264.0

Issue Description

A bug happened!

The AzureKeyVault@2 task times out on our Linux pipeline agent, but runs successfully from Windows.

This same pipeline works on Windows. The last line that matches is:
##[debug][GET]https://myKeyVault.vault.azure.net/secrets/secret-name?api-version=2016-10-01

I logged into the machine this failed on and ran Get-AzKeyVaultSecret successfully against the same Key Vault.

The debug line above was traced to https://github.com/microsoft/azure-pipelines-tasks-common-packages/blob/168bf44801ce94cd45a7455cc77f66d76a0a8966/common-npm-packages/azure-arm-rest/webClient.ts#L114C5-L114C66

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

Ubuntu 24.04.3

Relevant log output

See full log below

Full task logs with system.debug enabled

2025-12-11T19:47:35.5921527Z ##[debug]Evaluating condition for step: 'AzureKeyVault'
2025-12-11T19:47:35.5923640Z ##[debug]Evaluating: SucceededNode()
2025-12-11T19:47:35.5924612Z ##[debug]Evaluating SucceededNode:
2025-12-11T19:47:35.5925974Z ##[debug]=> True
2025-12-11T19:47:35.5926942Z ##[debug]Result: True
2025-12-11T19:47:35.5927853Z ##[section]Starting: AzureKeyVault
2025-12-11T19:47:35.5944039Z ==============================================================================
2025-12-11T19:47:35.5944548Z Task : Azure Key Vault
2025-12-11T19:47:35.5944834Z Description : Download Azure Key Vault secrets
2025-12-11T19:47:35.5945200Z Version : 2.264.0
2025-12-11T19:47:35.5945487Z Author : Microsoft Corporation
2025-12-11T19:47:35.5945805Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-key-vault
2025-12-11T19:47:35.5946278Z ==============================================================================
2025-12-11T19:47:35.7942505Z ##[debug]Using node path: /home/azagent/externals/node20_1/bin/node
2025-12-11T19:47:35.8943837Z ##[debug]agent.TempDirectory=/home/azagent/_work/_temp
2025-12-11T19:47:35.8950249Z ##[debug]loading inputs and endpoints
2025-12-11T19:47:35.8958429Z ##[debug]loading INPUT_CONNECTEDSERVICENAME
2025-12-11T19:47:35.8977579Z ##[debug]loading INPUT_KEYVAULTNAME
2025-12-11T19:47:35.8983793Z ##[debug]loading INPUT_SECRETSFILTER
2025-12-11T19:47:35.8988444Z ##[debug]loading INPUT_RUNASPREJOB
2025-12-11T19:47:35.8994943Z ##[debug]loading ENDPOINT_AUTH_a8851fdc-38b6-44df-ab02-43982db24778
2025-12-11T19:47:35.9002191Z ##[debug]loading ENDPOINT_AUTH_SCHEME_a8851fdc-38b6-44df-ab02-43982db24778
2025-12-11T19:47:35.9009210Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_a8851fdc-38b6-44df-ab02-43982db24778_TENANTID
2025-12-11T19:47:35.9017898Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_a8851fdc-38b6-44df-ab02-43982db24778_WORKLOADIDENTITYFEDERATIONISSUERTYPE
2025-12-11T19:47:35.9025354Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_a8851fdc-38b6-44df-ab02-43982db24778_WORKLOADIDENTITYFEDERATIONISSUER
2025-12-11T19:47:35.9035113Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_a8851fdc-38b6-44df-ab02-43982db24778_WORKLOADIDENTITYFEDERATIONSUBJECT
2025-12-11T19:47:35.9042240Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_a8851fdc-38b6-44df-ab02-43982db24778_SCOPE
2025-12-11T19:47:35.9050156Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_a8851fdc-38b6-44df-ab02-43982db24778_SERVICEPRINCIPALID
2025-12-11T19:47:35.9073622Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2025-12-11T19:47:35.9075925Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2025-12-11T19:47:35.9077944Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2025-12-11T19:47:35.9080657Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2025-12-11T19:47:35.9089308Z ##[debug]loaded 16
2025-12-11T19:47:35.9102053Z ##[debug]Agent.ProxyUrl=undefined
2025-12-11T19:47:35.9109727Z ##[debug]Agent.CAInfo=undefined
2025-12-11T19:47:35.9114250Z ##[debug]Agent.ClientCert=undefined
2025-12-11T19:47:35.9132811Z ##[debug]Agent.SkipCertValidation=undefined
2025-12-11T19:47:36.1132386Z ##[debug]agent.proxyurl=undefined
2025-12-11T19:47:36.1134295Z ##[debug]VSTS_ARM_REST_IGNORE_SSL_ERRORS=undefined
2025-12-11T19:47:36.1136064Z ##[debug]AZURE_HTTP_USER_AGENT=VSTS_f8c0b194-42d0-4550-8704-02d05b1d8c3a_build_3617_0
2025-12-11T19:47:36.1143727Z ##[debug]check path : /home/azagent/_work/_tasks/AzureKeyVault_1e244d32-2dd4-4165-96fb-b7441ca9331e/2.264.0/node_modules/azure-pipelines-tasks-azure-arm-rest/module.json
2025-12-11T19:47:36.1146413Z ##[debug]adding resource file: /home/azagent/_work/_tasks/AzureKeyVault_1e244d32-2dd4-4165-96fb-b7441ca9331e/2.264.0/node_modules/azure-pipelines-tasks-azure-arm-rest/module.json
2025-12-11T19:47:36.1148440Z ##[debug]system.culture=en-US
2025-12-11T19:47:36.2344014Z ##[debug]Feature 'EnableMsalV3' = 'True'. Processed as 'true'.
2025-12-11T19:47:36.2346583Z ##[debug]Using msalv3
2025-12-11T19:47:36.2613945Z ##[debug]Resource file has already set to: /home/azagent/_work/_tasks/AzureKeyVault_1e244d32-2dd4-4165-96fb-b7441ca9331e/2.264.0/node_modules/azure-pipelines-tasks-azure-arm-rest/module.json
2025-12-11T19:47:36.2616819Z ##[debug]Agent.TempDirectory=/home/azagent/_work/_temp
2025-12-11T19:47:36.2618997Z ##[debug]Resource file has already set to: /home/azagent/_work/_tasks/AzureKeyVault_1e244d32-2dd4-4165-96fb-b7441ca9331e/2.264.0/node_modules/azure-pipelines-tasks-azure-arm-rest/module.json
2025-12-11T19:47:36.2644398Z ##[debug]Resource file has already set to: /home/azagent/_work/_tasks/AzureKeyVault_1e244d32-2dd4-4165-96fb-b7441ca9331e/2.264.0/node_modules/azure-pipelines-tasks-azure-arm-rest/module.json
2025-12-11T19:47:36.2647210Z ##[debug]Resource file has already set to: /home/azagent/_work/_tasks/AzureKeyVault_1e244d32-2dd4-4165-96fb-b7441ca9331e/2.264.0/node_modules/azure-pipelines-tasks-azure-arm-rest/module.json
2025-12-11T19:47:36.2655457Z ##[debug]RunAsPreJob=false
2025-12-11T19:47:36.2664322Z ##[debug]Setting resource path to /home/azagent/_work/_tasks/AzureKeyVault_1e244d32-2dd4-4165-96fb-b7441ca9331e/2.264.0/task.json
2025-12-11T19:47:36.2669061Z ##[debug]check path : /home/azagent/_work/_tasks/AzureKeyVault_1e244d32-2dd4-4165-96fb-b7441ca9331e/2.264.0/task.json
2025-12-11T19:47:36.2671576Z ##[debug]adding resource file: /home/azagent/_work/_tasks/AzureKeyVault_1e244d32-2dd4-4165-96fb-b7441ca9331e/2.264.0/task.json
2025-12-11T19:47:36.2673434Z ##[debug]system.culture=en-US
2025-12-11T19:47:36.2675027Z ##[debug]ConnectedServiceName=a8851fdc-38b6-44df-ab02-43982db24778
2025-12-11T19:47:36.2676786Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778 data SubscriptionId = 99999999-9999-9999-9999-999999999999
2025-12-11T19:47:36.2678839Z ##[debug]KeyVaultName=myKeyVault
2025-12-11T19:47:36.2680401Z ##[debug]SecretsFilter=secret-name
2025-12-11T19:47:36.2682313Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778 data AzureKeyVaultDnsSuffix = vault.azure.net
2025-12-11T19:47:36.2684328Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778 auth param serviceprincipalid = ***
2025-12-11T19:47:36.2686441Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778 auth scheme = WorkloadIdentityFederation
2025-12-11T19:47:36.2688208Z ##[debug]USE_MSAL=true
2025-12-11T19:47:36.2689746Z ##[debug]MSAL - USE_MSAL override is found: true
2025-12-11T19:47:36.2692067Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778 auth scheme = WorkloadIdentityFederation
2025-12-11T19:47:36.2706653Z ##[debug]Overriding useMSAL to true as workloadidentityfederation supports only MSAL
2025-12-11T19:47:36.2708634Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778 data subscriptionid = 99999999-9999-9999-9999-999999999999
2025-12-11T19:47:36.2710619Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778 data subscriptionname = sub-test
2025-12-11T19:47:36.2714540Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778 auth param serviceprincipalid = ***
2025-12-11T19:47:36.2716437Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778 data activeDirectoryAuthority = https://login.microsoftonline.com/
2025-12-11T19:47:36.2719724Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778 auth param tenantid = 01234567-890a-bcde-f123-4567890abcde
2025-12-11T19:47:36.2724934Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778=https://management.azure.com/
2025-12-11T19:47:36.2726723Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778 data environment = AzureCloud
2025-12-11T19:47:36.2728521Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778 auth scheme = WorkloadIdentityFederation
2025-12-11T19:47:36.2730263Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778 data msiclientId = undefined
2025-12-11T19:47:36.2732438Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778 data activeDirectoryServiceEndpointResourceId = https://management.core.windows.net/
2025-12-11T19:47:36.2734463Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778 data AzureKeyVaultServiceEndpointResourceId = https://vault.azure.net
2025-12-11T19:47:36.2736321Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778 data AzureKeyVaultDnsSuffix = vault.azure.net
2025-12-11T19:47:36.2738337Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778 data ScopeLevel = Subscription
2025-12-11T19:47:36.2740168Z ##[debug]MSAL - getEndpoint - useGraphActiveDirectoryResource=false
2025-12-11T19:47:36.2744023Z ##[debug]MSAL - getEndpoint - useMSAL=true
2025-12-11T19:47:36.2753139Z ##[debug]MSAL - getEndpoint - endpoint={"subscriptionID":"99999999-9999-9999-9999-999999999999","subscriptionName":"sub-test","servicePrincipalClientID":"","environmentAuthorityUrl":"https://login.microsoftonline.com/","tenantID":"01234567-890a-bcde-f123-4567890abcde","url":"https://management.azure.com/","environment":"AzureCloud","scheme":"WorkloadIdentityFederation","activeDirectoryResourceID":"https://management.core.windows.net/","azureKeyVaultServiceEndpointResourceId":"https://vault.azure.net","azureKeyVaultDnsSuffix":"vault.azure.net","scopeLevel":"Subscription"}
2025-12-11T19:47:36.2756748Z ##[debug]MSAL - getEndpoint - connectedServiceName=a8851fdc-38b6-44df-ab02-43982db24778
2025-12-11T19:47:36.2758801Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778 auth param authenticationType = undefined
2025-12-11T19:47:36.2760583Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778 data EnableAdfsAuthentication = false
2025-12-11T19:47:36.2762504Z ##[debug]Feature 'ALLOWSCOPELEVELTOKEN' not found. Returning false as default.
2025-12-11T19:47:36.2764198Z ##[debug]a8851fdc-38b6-44df-ab02-43982db24778 auth param apitoken = undefined
2025-12-11T19:47:36.2769308Z ##[debug]{"subscriptionID":"99999999-9999-9999-9999-999999999999","subscriptionName":"sub-test","servicePrincipalClientID":"
","environmentAuthorityUrl":"https://login.microsoftonline.com/","tenantID":"01234567-890a-bcde-f123-4567890abcde","url":"https://management.azure.com/","environment":"AzureCloud","scheme":"WorkloadIdentityFederation","activeDirectoryResourceID":"https://management.azure.com/","azureKeyVaultServiceEndpointResourceId":"https://vault.azure.net","azureKeyVaultDnsSuffix":"vault.azure.net","scopeLevel":"Subscription","isADFSEnabled":false,"applicationTokenCredentials":{"connectedServiceName":"a8851fdc-38b6-44df-ab02-43982db24778","clientId":"***","tenantId":"01234567-890a-bcde-f123-4567890abcde","baseUrl":"https://management.azure.com/","authorityUrl":"https://login.microsoftonline.com/","activeDirectoryResourceId":"https://management.azure.com/","isAzureStackEnvironment":false,"scheme":2,"isADFSEnabled":false,"useMSAL":true,"allowScopeLevelToken":false,"tokenMutex":{"_semaphore":{"_value":1,"_cancelError":{},"_weightedQueues":[],"_weightedWaiters":[]}}}}
2025-12-11T19:47:36.2776222Z SubscriptionId: 99999999-9999-9999-9999-999999999999.
2025-12-11T19:47:36.2777075Z Key vault name: myKeyVault.
2025-12-11T19:47:36.2778386Z ##[debug]set SYSTEM_UNSAFEALLOWMULTILINESECRET=true
2025-12-11T19:47:36.2791498Z ##[debug]Processed: ##vso[task.setvariable variable=SYSTEM_UNSAFEALLOWMULTILINESECRET;isOutput=false;issecret=false;]true
2025-12-11T19:47:36.2793685Z ##[debug]Downloading selected secrets from subscriptionId: 99999999-9999-9999-9999-999999999999, vault: myKeyVault
2025-12-11T19:47:36.2795549Z ##[debug]Downloading part [0 - 1] (total 1 secrets)
2025-12-11T19:47:36.2797329Z ##[debug]Promise for downloading secret value for: secret-name
2025-12-11T19:47:36.2798433Z Downloading secret value for: secret-name.
2025-12-11T19:47:36.2799794Z ##[debug]MSAL - getMSALToken called. force=undefined
2025-12-11T19:47:36.2801478Z ##[debug]system.debug=True
2025-12-11T19:47:36.2802918Z ##[debug]system.debug=True
2025-12-11T19:47:36.2804710Z ##[debug]agent.proxyurl=undefined
2025-12-11T19:47:36.2806280Z ##[debug]agent.proxybypasslist=undefined
2025-12-11T19:47:36.2807830Z ##[debug]MSAL - FederatedAccess - OIDC is used.
2025-12-11T19:47:36.2809423Z ##[debug]System.TeamProjectId=acf22ae0-1ecd-4932-9ffb-6447ce1b0154
2025-12-11T19:47:36.2811498Z ##[debug]System.HostType=build
2025-12-11T19:47:36.2813175Z ##[debug]System.PlanId=1449f6a8-8bc8-4945-8540-d9463f2980b6
2025-12-11T19:47:36.2814826Z ##[debug]System.JobId=12f1170f-54f2-53f3-20dd-22fc7dff55f9
2025-12-11T19:47:36.2816728Z ##[debug]System.CollectionUri=https://dev.azure.com/ashcompanies/
2025-12-11T19:47:36.2818480Z ##[debug]Getting credentials for local feeds
2025-12-11T19:47:36.2820049Z ##[debug]SYSTEMVSSCONNECTION exists true
2025-12-11T19:47:36.2821715Z ##[debug]Got auth token
2025-12-11T19:47:36.2823345Z ##[debug]Feature 'UseOIDCToken2InAzureArmRest' = 'True'. Processed as 'true'.
2025-12-11T19:47:36.4923108Z ##[debug]Got OIDC token
2025-12-11T19:47:36.4945741Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Info - acquireTokenByClientCredential called
2025-12-11T19:47:36.4954379Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Verbose - initializeRequestScopes called
2025-12-11T19:47:36.4967080Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [7a2f07b2-1df3-4150-914e-7942c3248dae] : @azure/[email protected] : Verbose - createAuthority called
2025-12-11T19:47:36.4983164Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Executing function authorityResolveEndpointsAsync
2025-12-11T19:47:36.4993140Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Retrieving all cache keys
2025-12-11T19:47:36.5006075Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Getting cache key-value store
2025-12-11T19:47:36.5010224Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Executing function authorityUpdateCloudDiscoveryMetadata
2025-12-11T19:47:36.5017714Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Verbose - Attempting to get cloud discovery metadata from authority configuration
2025-12-11T19:47:36.5020111Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Verbose - Known Authorities:
2025-12-11T19:47:36.5022245Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Verbose - Authority Metadata: N/A
2025-12-11T19:47:36.5042316Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Verbose - Canonical Authority: https://login.microsoftonline.com/01234567-890a-bcde-f123-4567890abcde/
2025-12-11T19:47:36.5045153Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Verbose - Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the hardcoded values.
2025-12-11T19:47:36.5047505Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Verbose - Found cloud discovery metadata from hardcoded values.
2025-12-11T19:47:36.5049605Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Returning result from authorityUpdateCloudDiscoveryMetadata
2025-12-11T19:47:36.5065057Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Executing function authorityUpdateEndpointMetadata
2025-12-11T19:47:36.5067879Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Verbose - Attempting to get endpoint metadata from authority configuration
2025-12-11T19:47:36.5070300Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Verbose - Did not find endpoint metadata in the config... Attempting to get endpoint metadata from the hardcoded values.
2025-12-11T19:47:36.5072568Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Returning result from authorityUpdateEndpointMetadata
2025-12-11T19:47:36.5074848Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Item key: authority-metadata--login.windows.net
2025-12-11T19:47:36.5102241Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Getting cache key-value store
2025-12-11T19:47:36.5104337Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Setting cache key value store
2025-12-11T19:47:36.5106380Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Returning result from authorityResolveEndpointsAsync
2025-12-11T19:47:36.5108760Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [7a2f07b2-1df3-4150-914e-7942c3248dae] : @azure/[email protected] : Verbose - buildOauthClientConfiguration called
2025-12-11T19:47:36.5112762Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Verbose - Replacing tenant domain name 01234567-890a-bcde-f123-4567890abcde with id {tenantid}
2025-12-11T19:47:36.5115321Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [7a2f07b2-1df3-4150-914e-7942c3248dae] : @azure/[email protected] : Info - Building oauth client configuration with the following authority: https://login.microsoftonline.com/01234567-890a-bcde-f123-4567890abcde/oauth2/v2.0/token.
2025-12-11T19:47:36.5117894Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Verbose - Replacing tenant domain name 01234567-890a-bcde-f123-4567890abcde with id {tenantid}
2025-12-11T19:47:36.5305597Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Verbose - Replacing tenant domain name 01234567-890a-bcde-f123-4567890abcde with id {tenantid}
2025-12-11T19:47:36.5307954Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [7a2f07b2-1df3-4150-914e-7942c3248dae] : @azure/[email protected] : Verbose - Client credential client created
2025-12-11T19:47:36.5309881Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Getting in-memory cache
2025-12-11T19:47:36.5311820Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Getting cache key-value store
2025-12-11T19:47:36.5313759Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Verbose - Replacing tenant domain name 01234567-890a-bcde-f123-4567890abcde with id {tenantid}
2025-12-11T19:47:36.5315942Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Item key: server-telemetry-

2025-12-11T19:47:36.5317728Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Getting cache key-value store
2025-12-11T19:47:36.5357273Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Item key: server-telemetry-***
2025-12-11T19:47:36.5369909Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Getting cache key-value store
2025-12-11T19:47:36.5372006Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Verbose - Replacing tenant domain name 01234567-890a-bcde-f123-4567890abcde with id {tenantid}
2025-12-11T19:47:36.5374345Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [7a2f07b2-1df3-4150-914e-7942c3248dae] : @azure/[email protected] : Info - Sending token request to endpoint: https://login.microsoftonline.com/01234567-890a-bcde-f123-4567890abcde/oauth2/v2.0/token
2025-12-11T19:47:36.5377063Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Item key: throttling.{"clientId":"","authority":"https://login.microsoftonline.com/01234567-890a-bcde-f123-4567890abcde","scopes":["https://vault.azure.net/.default"],"authenticationScheme":"Bearer"}
2025-12-11T19:47:36.5379686Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Getting cache key-value store
2025-12-11T19:47:36.5381775Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [7a2f07b2-1df3-4150-914e-7942c3248dae] : @azure/[email protected] : Trace - Executing function networkClientSendPostRequestAsync
2025-12-11T19:47:36.7803761Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [7a2f07b2-1df3-4150-914e-7942c3248dae] : @azure/[email protected] : Trace - Returning result from networkClientSendPostRequestAsync
2025-12-11T19:47:36.7811998Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Item key: server-telemetry-

2025-12-11T19:47:36.7815262Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Getting cache key-value store
2025-12-11T19:47:36.7817868Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Item key: server-telemetry-***
2025-12-11T19:47:36.7820841Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Getting cache key-value store
2025-12-11T19:47:36.7830603Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [7a2f07b2-1df3-4150-914e-7942c3248dae] : @azure/[email protected] : Warning - No client info in response
2025-12-11T19:47:36.7838422Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Getting in-memory cache
2025-12-11T19:47:36.7840278Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Getting cache key-value store
2025-12-11T19:47:36.7842784Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Item key: -login.windows.net-accesstoken-***-01234567-890a-bcde-f123-4567890abcde-https://vault.azure.net/.default--
2025-12-11T19:47:36.7844872Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Getting cache key-value store
2025-12-11T19:47:36.7846667Z ##[debug][Thu, 11 Dec 2025 19:47:36 GMT] : [] : @azure/[email protected] : Trace - Setting cache key value store
2025-12-11T19:47:36.7848959Z ##[debug]MSAL - retrieved token - isFromCache?: false
2025-12-11T19:47:36.7854778Z ##[debug]CLIENT_RESETSTREAMONRETRY=undefined
2025-12-11T19:47:36.7857622Z ##[debug][GET]https://myKeyVault.vault.azure.net/secrets/secret-name?api-version=2016-10-01
2025-12-11T19:47:38.5623422Z ##[debug]Agent environment resources - Disk: / Available 3499.90 MB out of 31570.93 MB, Memory: Used 2367.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:47:43.5627272Z ##[debug]Agent environment resources - Disk: / Available 3499.90 MB out of 31570.93 MB, Memory: Used 2356.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:47:48.5632077Z ##[debug]Agent environment resources - Disk: / Available 3499.90 MB out of 31570.93 MB, Memory: Used 2349.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:47:53.5635643Z ##[debug]Agent environment resources - Disk: / Available 3499.90 MB out of 31570.93 MB, Memory: Used 2350.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:47:59.6650809Z ##[debug]Agent environment resources - Disk: / Available 3499.94 MB out of 31570.93 MB, Memory: Used 2350.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:48:04.6656470Z ##[debug]Agent environment resources - Disk: / Available 3499.94 MB out of 31570.93 MB, Memory: Used 2350.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:48:09.6663624Z ##[debug]Agent environment resources - Disk: / Available 3499.94 MB out of 31570.93 MB, Memory: Used 2350.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:48:14.6665346Z ##[debug]Agent environment resources - Disk: / Available 3499.94 MB out of 31570.93 MB, Memory: Used 2350.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:48:19.6668024Z ##[debug]Agent environment resources - Disk: / Available 3499.94 MB out of 31570.93 MB, Memory: Used 2350.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:48:25.7674621Z ##[debug]Agent environment resources - Disk: / Available 3499.93 MB out of 31570.93 MB, Memory: Used 2350.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:48:31.8702870Z ##[debug]Agent environment resources - Disk: / Available 3499.93 MB out of 31570.93 MB, Memory: Used 2350.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:48:36.8711441Z ##[debug]Agent environment resources - Disk: / Available 3499.93 MB out of 31570.93 MB, Memory: Used 2350.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:48:41.8728778Z ##[debug]Agent environment resources - Disk: / Available 3499.93 MB out of 31570.93 MB, Memory: Used 2350.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:48:46.8725316Z ##[debug]Agent environment resources - Disk: / Available 3499.93 MB out of 31570.93 MB, Memory: Used 2350.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:48:52.9768867Z ##[debug]Agent environment resources - Disk: / Available 3499.93 MB out of 31570.93 MB, Memory: Used 2350.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:48:57.9769155Z ##[debug]Agent environment resources - Disk: / Available 3499.93 MB out of 31570.93 MB, Memory: Used 2350.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:49:02.9773056Z ##[debug]Agent environment resources - Disk: / Available 3499.93 MB out of 31570.93 MB, Memory: Used 2348.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:49:09.0791471Z ##[debug]Agent environment resources - Disk: / Available 3499.93 MB out of 31570.93 MB, Memory: Used 2348.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:49:14.0798630Z ##[debug]Agent environment resources - Disk: / Available 3499.93 MB out of 31570.93 MB, Memory: Used 2350.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:49:19.0801913Z ##[debug]Agent environment resources - Disk: / Available 3499.93 MB out of 31570.93 MB, Memory: Used 2350.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:49:24.0802756Z ##[debug]Agent environment resources - Disk: / Available 3499.93 MB out of 31570.93 MB, Memory: Used 2350.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:49:29.0807257Z ##[debug]Agent environment resources - Disk: / Available 3499.93 MB out of 31570.93 MB, Memory: Used 2350.00 MB out of 15994.00 MB, CPU: Usage NaN%
2025-12-11T19:49:34.2460102Z ##[debug]Re-evaluate condition on job cancellation for step: 'AzureKeyVault'.
2025-12-11T19:49:34.2470584Z ##[error]The Operation will be canceled. The next steps may not contain expected logs.
2025-12-11T19:49:34.2483845Z ##[debug]Agent environment resources - Disk: / Available 3499.93 MB out of 31570.93 MB, Memory: Used 2350.00 MB out of 15994.00 MB, Unable to get CPU info, exception: A task was canceled.
2025-12-11T19:49:34.2635950Z ##[error]The operation was canceled.
2025-12-11T19:49:34.2641881Z ##[debug]System.OperationCanceledException: The operation was canceled.
at System.Threading.CancellationToken.ThrowOperationCanceledException()
at System.Threading.CancellationToken.ThrowIfCancellationRequested()
at Microsoft.VisualStudio.Services.Agent.Util.ProcessInvoker.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, Boolean continueAfterCancelProcessTreeKillAttempt, CancellationToken cancellationToken) in /mnt/vss/_work/1/s/src/Agent.Sdk/ProcessInvoker.cs:line 384
at Microsoft.VisualStudio.Services.Agent.ProcessInvokerWrapper.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, Boolean continueAfterCancelProcessTreeKillAttempt, CancellationToken cancellationToken) in /mnt/vss/_work/1/s/src/Microsoft.VisualStudio.Services.Agent/ProcessInvoker.cs:line 329
at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.DefaultStepHost.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, Boolean inheritConsoleHandler, Boolean continueAfterCancelProcessTreeKillAttempt, TimeSpan sigintTimeout, TimeSpan sigtermTimeout, Boolean useGracefulShutdown, CancellationToken cancellationToken) in /mnt/vss/_work/1/s/src/Agent.Worker/Handlers/StepHost.cs:line 85
at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.NodeHandler.RunAsync() in /mnt/vss/_work/1/s/src/Agent.Worker/Handlers/NodeHandler.cs:line 267
at Microsoft.VisualStudio.Services.Agent.Worker.TaskRunner.RunAsyncInternal() in /mnt/vss/_work/1/s/src/Agent.Worker/TaskRunner.cs:line 447
at Microsoft.VisualStudio.Services.Agent.Worker.TaskRunner.RunAsync() in /mnt/vss/_work/1/s/src/Agent.Worker/TaskRunner.cs:line 76
at Microsoft.VisualStudio.Services.Agent.Worker.StepsRunner.RunStepAsync(IStep step, CancellationToken jobCancellationToken) in /mnt/vss/_work/1/s/src/Agent.Worker/StepsRunner.cs:line 264
2025-12-11T19:49:34.2645277Z ##[section]Finishing: AzureKeyVault

Repro steps

trigger:
- main

pool:
  name: 'mypool'

steps:
- task: AzureKeyVault@2
  inputs:
    azureSubscription: 'sub-test'
    KeyVaultName: 'mykeyvault'
    SecretsFilter: 'secret-name'
    RunAsPreJob: false

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