Getting "The process cannot access the file because it is being used by another process" errors with ~\.azure\logs\az.log
#30145
Labels
ARM
az resource/group/lock/tag/deployment/policy/managementapp/account management-group
Auto-Assign
Auto assign by bot
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
This issue is responsible by Azure service team.
Milestone
Describe the bug
When I call
az-cli
commands from PowerShell Core inside parallel jobs, they sometimes run into python'sPermissionError: [WinError 32]
when accessing the log file.Related command
I register some resource providers in a new RG with the following
-Parallel
loop:This is a similar loop using
ThreadJob
:Errors
Issue script & Debug output
No debug output.
Expected behavior
There shouldn't be a permission error when multiple processes or threads try to write to the
az.log
file simultaneously.Environment Summary
Additional context
No response
The text was updated successfully, but these errors were encountered: