New issue checklist
Task name
IISWebAppDeploymentOnMachineGroupV0
Breaking task version
0.274.0
Last working task version
0.269.0
Regression Description
When attempting to run the task IISWebAppDeploymentOnMachineGroupV0, it fails with the error "globalThis is not defined." The expectation is that running the task is successful.
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows Server 2012 R2
Relevant log output
2026-06-04T14:20:59.1822757Z ##[error]Unhandled: globalThis is not defined
2026-06-04T14:20:59.1872910Z ##[error]ReferenceError: globalThis is not defined
at Object.<anonymous> (C:\azagent\A1\_work\_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.274.2\node_modules\readable-stream\lib\ours\errors.js:15:24)
at Module._compile (internal/modules/cjs/loader.js:778:30)
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\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.274.2\node_modules\readable-stream\lib\ours\util.js:7:5)
at Module._compile (internal/modules/cjs/loader.js:778:30)
Full task logs with system.debug enabled
2026-06-04T14:20:56.7754069Z ##[section]Starting: IIS Web App Deploy
2026-06-04T14:20:57.0221621Z ==============================================================================
2026-06-04T14:20:57.0221868Z Task : IIS web app deploy
2026-06-04T14:20:57.0222032Z Description : Deploy a website or web application using Web Deploy
2026-06-04T14:20:57.0222176Z Version : 0.274.2
2026-06-04T14:20:57.0222340Z Author : Microsoft Corporation
2026-06-04T14:20:57.0222566Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/iis-web-app-deployment-on-machine-group
2026-06-04T14:20:57.0222781Z ==============================================================================
2026-06-04T14:20:59.1822757Z ##[error]Unhandled: globalThis is not defined
2026-06-04T14:20:59.1872910Z ##[error]ReferenceError: globalThis is not defined
at Object. (C:\azagent\A1_work_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.274.2\node_modules\readable-stream\lib\ours\errors.js:15:24)
at Module._compile (internal/modules/cjs/loader.js:778:30)
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\A1_work_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.274.2\node_modules\readable-stream\lib\ours\util.js:7:5)
at Module._compile (internal/modules/cjs/loader.js:778:30)
2026-06-04T14:20:59.1876159Z ##[section]Finishing: IIS Web App Deploy
Repro steps
New issue checklist
Task name
IISWebAppDeploymentOnMachineGroupV0
Breaking task version
0.274.0
Last working task version
0.269.0
Regression Description
When attempting to run the task IISWebAppDeploymentOnMachineGroupV0, it fails with the error "globalThis is not defined." The expectation is that running the task is successful.
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows Server 2012 R2
Relevant log output
Full task logs with system.debug enabled
2026-06-04T14:20:56.7754069Z ##[section]Starting: IIS Web App Deploy
2026-06-04T14:20:57.0221621Z ==============================================================================
2026-06-04T14:20:57.0221868Z Task : IIS web app deploy
2026-06-04T14:20:57.0222032Z Description : Deploy a website or web application using Web Deploy
2026-06-04T14:20:57.0222176Z Version : 0.274.2
2026-06-04T14:20:57.0222340Z Author : Microsoft Corporation
2026-06-04T14:20:57.0222566Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/iis-web-app-deployment-on-machine-group
2026-06-04T14:20:57.0222781Z ==============================================================================
2026-06-04T14:20:59.1822757Z ##[error]Unhandled: globalThis is not defined
2026-06-04T14:20:59.1872910Z ##[error]ReferenceError: globalThis is not defined
at Object. (C:\azagent\A1_work_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.274.2\node_modules\readable-stream\lib\ours\errors.js:15:24)
at Module._compile (internal/modules/cjs/loader.js:778:30)
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\A1_work_tasks\IISWebAppDeploymentOnMachineGroup_1b467810-6725-4b6d-accd-886174c09bba\0.274.2\node_modules\readable-stream\lib\ours\util.js:7:5)
at Module._compile (internal/modules/cjs/loader.js:778:30)
2026-06-04T14:20:59.1876159Z ##[section]Finishing: IIS Web App Deploy
Repro steps