Import-Module Az.Accounts fails with "Access to the path 'Global\AzurePowerShellConfigInit' is denied" when used concurrent #26907
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
needs-triage
This is a new issue that needs to be triaged to the appropriate team.
Description
This is how to ‘build’ an environment to reproduce the issue on a windows computer:
Create 4 local accounts with no additional permissions
Create a folder for powershell scripts
Create a powershell script called test-azaccounts.ps1 with the following content:
. "$PSScriptRoot\test-azaccounts2.ps1" *>> "$home\Documents\test-azaccounts.log"
Create a powershell script called test-azaccounts2.ps1 with the following content:
The script will create a logfile in the document folder of each local account.
You will notice that only 1 scheduled task will succeed, the other 3 will fail.
Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: