So, I have a number of piplines running on WIndows-2022 Image on HOSTED agent.
And all of a sudden today ALL PowershellTasks take at least 26 seconds to run.
So, what ever use to take 2seconds, now runs as 26+2 => 28seconds and etc.
NOTHING changed in Piplines.
I tried to run with Dignostic Enabled:
2023-09-20T17:16:05.4857580Z ##[debug]Evaluating condition for step: 'Who did what?'
2023-09-20T17:16:05.4859167Z ##[debug]Evaluating: SucceededNode()
2023-09-20T17:16:05.4859587Z ##[debug]Evaluating SucceededNode:
2023-09-20T17:16:05.4860093Z ##[debug]=> True
2023-09-20T17:16:05.4860393Z ##[debug]Result: True
2023-09-20T17:16:05.4860664Z ##[section]Starting: Who did what?
2023-09-20T17:16:05.5004110Z ==============================================================================
2023-09-20T17:16:05.5004274Z Task : PowerShell
2023-09-20T17:16:05.5004333Z Description : Run a PowerShell script on Linux, macOS, or Windows
2023-09-20T17:16:05.5004417Z Version : 2.226.2
2023-09-20T17:16:05.5004470Z Author : Microsoft Corporation
2023-09-20T17:16:05.5004551Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2023-09-20T17:16:05.5004642Z ==============================================================================
2023-09-20T17:16:24.2938909Z ##[debug]VstsTaskSdk 0.11.0 commit 7ff27a3e0bdd6f7b06690ae5f5b63cb84d0f23f4
2023-09-20T17:16:24.5851462Z ##[debug]Entering D:\a\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.226.2\powershell.ps1.
2023-09-20T17:16:24.5979582Z ##[debug]Loading resource strings from: D:\a\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.226.2\task.json
2023-09-20T17:16:24.6650862Z ##[debug]Loaded 14 strings.
2023-09-20T17:16:24.6652858Z ##[debug]SYSTEM_CULTURE: 'en-US'
2023-09-20T17:16:24.6669889Z ##[debug]Loading resource strings from: D:\a\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.226.2\Strings\resources.resjson\en-US\resources.resjson
2023-09-20T17:16:24.7021900Z ##[debug]Loaded 14 strings.
2023-09-20T17:16:24.7413792Z ##[debug]INPUT_ERRORACTIONPREFERENCE: 'stop'
2023-09-20T17:16:24.7522690Z ##[debug]INPUT_WARNINGPREFERENCE: 'default'
2023-09-20T17:16:24.7523609Z ##[debug]INPUT_INFORMATIONPREFERENCE: 'default'
2023-09-20T17:16:24.7551823Z ##[debug]INPUT_VERBOSEPREFERENCE: 'default'
2023-09-20T17:16:24.7584482Z ##[debug]INPUT_DEBUGPREFERENCE: 'default'
2023-09-20T17:16:24.7617233Z ##[debug]INPUT_PROGRESSPREFERENCE: 'silentlyContinue'
2023-09-20T17:16:24.7648300Z ##[debug]INPUT_SHOWWARNINGS: 'false'
2023-09-20T17:16:24.7699442Z ##[debug] Converted to bool: False
2023-09-20T17:16:24.7721808Z ##[debug]INPUT_FAILONSTDERR: 'false'
2023-09-20T17:16:24.7746387Z ##[debug] Converted to bool: False
2023-09-20T17:16:24.7779387Z ##[debug]INPUT_IGNORELASTEXITCODE: 'false'
2023-09-20T17:16:24.7804768Z ##[debug] Converted to bool: False
2023-09-20T17:16:24.7835274Z ##[debug]INPUT_PWSH: 'false'
2023-09-20T17:16:24.7860227Z ##[debug] Converted to bool: False
2023-09-20T17:16:25.5506638Z ##[debug]INPUT_WORKINGDIRECTORY: 'D:\a\1\s'
2023-09-20T17:16:25.5507069Z ##[debug]Asserting container path exists: 'D:\a\1\s'
2023-09-20T17:16:25.5507377Z ##[debug]INPUT_TARGETTYPE: 'inline'
2023-09-20T17:16:25.5507942Z ##[debug]INPUT_SCRIPT: 'write-host "Build.Repository.ID: [??]"
2023-09-20T17:16:25.5508352Z ##[debug]write-host "Build.Repository.Name: [??]"
2023-09-20T17:16:25.5508705Z ##[debug]write-host "Build.Repository.Provider: [??]"
2023-09-20T17:16:25.5509419Z ##[debug]write-host "Build.Repository.Uri: [??]"
2023-09-20T17:16:25.5509813Z ##[debug]write-host "Build.SourceBranch: [??]"
2023-09-20T17:16:25.5510172Z ##[debug]write-host "Build.SourceBranchName: [??]"
2023-09-20T17:16:25.5510515Z ##[debug]write-host "Build.SourceVersion: [??]"
2023-09-20T17:16:25.5511069Z ##[debug]write-host "Build.SourceVersionMessage: [??]"
2023-09-20T17:16:25.5511417Z ##[debug]write-host "Build.Reason: [??]"
2023-09-20T17:16:25.5514245Z ##[debug]write-host "Build.BuildId: [??]"
2023-09-20T17:16:25.5514587Z ##[debug]write-host "Build.RequestedFor: [??]"
2023-09-20T17:16:25.5514964Z ##[debug]write-host "Build.RequestedForEmail: [??]"
2023-09-20T17:16:25.5515362Z ##[debug]write-host "Build.RequestedForId: [??]"
2023-09-20T17:16:25.5743437Z ##[debug]write-host "Manual Deploy Id: []"
2023-09-20T17:16:25.5744106Z ##[debug]
2023-09-20T17:16:25.5744412Z ##[debug]#Capture Variables
2023-09-20T17:16:25.5744781Z ##[debug]Write-Host "##vso[task.setvariable variable=build_ManualDeployId;]"'
2023-09-20T17:16:25.5745144Z ##[debug]INPUT_RUNSCRIPTINSEPARATESCOPE: 'false'
2023-09-20T17:16:25.5745461Z ##[debug] Converted to bool: False
2023-09-20T17:16:25.5745665Z Generating script.
2023-09-20T17:16:25.5745922Z ##[debug]AGENT_VERSION: '3.225.0'
2023-09-20T17:16:25.5746392Z ##[debug]AGENT_TEMPDIRECTORY: 'D:\a\_temp'
2023-09-20T17:16:25.5746903Z ##[debug]Asserting container path exists: 'D:\a\_temp'
2023-09-20T17:16:25.5747259Z ##[debug]Asserting leaf path exists: 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'
2023-09-20T17:16:25.5747699Z ========================== Starting Command Output ===========================
2023-09-20T17:16:25.5747982Z ##[debug]Entering Invoke-VstsTool.
2023-09-20T17:16:25.5748367Z ##[debug] Arguments: '-NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a\_temp\7e15613d-6ae0-4797-bdc0-6e1a43b29d77.ps1'"'
2023-09-20T17:16:25.5749891Z ##[debug] FileName: 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'
2023-09-20T17:16:25.5750240Z ##[debug] WorkingDirectory: 'D:\a\1\s'
2023-09-20T17:16:25.5751100Z ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a\_temp\7e15613d-6ae0-4797-bdc0-6e1a43b29d77.ps1'"
2023-09-20T17:16:41.9164373Z Build.Repository.ID: [??]
2023-09-20T17:16:41.9177407Z Build.Repository.Name: [??]
2023-09-20T17:16:41.9186019Z Build.Repository.Provider: [??]
2023-09-20T17:16:41.9195145Z Build.Repository.Uri: [??]
2023-09-20T17:16:41.9213578Z Build.SourceBranch: [??]
2023-09-20T17:16:41.9221836Z Build.SourceBranchName: [??]
2023-09-20T17:16:41.9231264Z Build.SourceVersion: [??]
2023-09-20T17:16:41.9241079Z Build.SourceVersionMessage: [??]
2023-09-20T17:16:41.9249894Z Build.Reason: [??]
2023-09-20T17:16:41.9258130Z Build.BuildId: [??]
2023-09-20T17:16:41.9266337Z Build.RequestedFor: [??]
2023-09-20T17:16:41.9274741Z Build.RequestedForEmail: [??]
2023-09-20T17:16:41.9283756Z Build.RequestedForId: [??]
2023-09-20T17:16:41.9291686Z Manual Deploy Id: [??]
2023-09-20T17:16:41.9309153Z ##[debug]Processed: ##vso[task.setvariable variable=build_ManualDeployId;]
2023-09-20T17:16:41.9983280Z ##[debug]$LASTEXITCODE is not set.
2023-09-20T17:16:42.0293569Z ##[debug]Exit code: 0
2023-09-20T17:16:42.0338488Z ##[debug]Leaving Invoke-VstsTool.
2023-09-20T17:16:42.0366517Z ##[debug]Leaving D:\a\_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.226.2\powershell.ps1.
2023-09-20T17:16:42.0795394Z ##[section]Finishing: Who did what?
As you can see there TWO distinct DELAYS for 19 and 16 seconds.
And it is Consistent for EVERY PowerShell Tasks.
So, is this some kind of OUTAGE or GLITCH or it is a NEW NORMAL?
I really do NOT want to merge all steps into one huge single PowerShell Script and I do not want to move to bush scripting either.
We kind invested A LOT of time into it already and it would be shame to move to something else.
Anyhow, any advise would be really appreciated!