Closed
Description
New issue checklist
- I searched for existing GitHub issues
- I read pipeline troubleshooting guide
- I checked how to collect logs
Task name
No response
Breaking task version
242
Last working task version
241
Regression Description
Related to ADO ICM: https://portal.microsofticm.com/imp/v3/incidents/incident/526602860/summary
In release 242, a call to Update-AzConfig was added that call 'PSConfig.json'
v241...v242#diff-c520ded3c957b670319b7dbc38c894dd277ddd1127060bd29df898771fab340cL34
For this reason, customers is running parallel jobs on the same Windows agent under the same user account for each process receive an error.
The process cannot access the file 'C:\Users\Service_TSD_AZBLD.Azure\PSConfig.json' because it is being used by another process.
It might be worth considering using Get-AzConfig to check whether the Update-AzConfig call is necessary
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 11
Relevant log output
2024-07-17T00:24:20.0142774Z �[33;1mVERBOSE: Leaving Initialize-AzModule.�[0m
2024-07-17T00:24:20.0233836Z ##[debug]Error record:
2024-07-17T00:24:20.2140488Z ##[debug]Update-AzConfig: E:\Agents\EPRIAGT001_4\_work\_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\5.242.0\ps_modules\VstsAzureHelpers_\InitializeAzModuleFunctions.ps1:35
2024-07-17T00:24:20.2159863Z ##[debug]Line |
2024-07-17T00:24:20.2178804Z ##[debug] 35 | … Update-AzConfig -DisplayBreakingChangeWarning $false -App …
2024-07-17T00:24:20.2195423Z ##[debug] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-07-17T00:24:20.2224399Z ##[debug] | The process cannot access the file 'C:\Users\Service_TSD_AZBLD\.Azure\PSConfig.json' because it is being used by
2024-07-17T00:24:20.2240856Z ##[debug] | another process.
2024-07-17T00:24:20.2254450Z ##[debug]
2024-07-17T00:24:20.2284173Z ##[debug]Script stack trace:
2024-07-17T00:24:20.2337308Z ##[debug]at Initialize-AzModule, E:\Agents\EPRIAGT001_4\_work\_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\5.242.0\ps_modules\VstsAzureHelpers_\InitializeAzModuleFunctions.ps1: line 35
2024-07-17T00:24:20.2354661Z ##[debug]at <ScriptBlock>, E:\Agents\EPRIAGT001_4\_work\_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\5.242.0\CoreAz.ps1: line 31
2024-07-17T00:24:20.2391041Z ##[debug]at <ScriptBlock>, E:\Agents\EPRIAGT001_4\_work\_temp\59039b5c-a35e-4208-a2c2-6a8511eab55f.ps1: line 3
2024-07-17T00:24:20.2397155Z ##[debug]at <ScriptBlock>, <No file>: line 1
2024-07-17T00:24:20.2429434Z ##[debug]Exception:
2024-07-17T00:24:20.2505413Z ##[debug]System.IO.IOException: The process cannot access the file 'C:\Users\Service_TSD_AZBLD\.Azure\PSConfig.json' because it is being used by another process.
Pull Request:
Full task logs with system.debug enabled
No response
Repro steps
No response
Activity