Skip to content

[REGRESSION]: AzureFunctionApp@V2 2.66.0 Broken #21585

@johnmwork

Description

@johnmwork

New issue checklist

Task name

AzureFunctionApp

Breaking task version

2.66.0

Last working task version

2.64.0

Regression Description

There's a syntax error in msal-node.cjs that's causing the the AzureFunctionApp deployment task to fail.
It looks like it updated to 2.66.0 today.

2025-12-15T16:50:22.6360318Z ##[error]Unhandled: Unexpected token .
2025-12-15T16:50:22.6379272Z ##[error]C:\azagent\A2_work_tasks\AzureFunctionApp_501dd25d-1785-43e4-b4e5-a5c78ccc0573\2.266.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. (C:\azagent\A2_work_tasks\AzureFunctionApp_501dd25d-1785-43e4-b4e5-a5c78ccc0573\2.266.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)

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 10

Relevant log output

2025-12-15T16:50:22.6360318Z ##[error]Unhandled: Unexpected token .
2025-12-15T16:50:22.6379272Z ##[error]C:\azagent\A2\_work\_tasks\AzureFunctionApp_501dd25d-1785-43e4-b4e5-a5c78ccc0573\2.266.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\A2\_work\_tasks\AzureFunctionApp_501dd25d-1785-43e4-b4e5-a5c78ccc0573\2.266.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)

Full task logs with system.debug enabled

UNSUCCESSFUL RUN
 [REPLACE THIS WITH YOUR INFORMATION] 
SUCCESSFUL RUN
 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions