I have a Azure DevOps Pipeline configured to run over Network Service account. It tries to run an application which stores its settings in the user's Roaming AppData folder.
When, I try to run the application through the pipeline, it throws errors telling settings not found.
I believe this is because Network Service account's AppData is being maintained separately.
%windir%\ServiceProfiles\NetworkService\AppData\Roaming
I was thinking to copy the AppData files from the user's AppData folder to this location. However, I don't think this is the correct way to handle this problem.
What if I copy the AppData to the the ProgramData folder? Would that work?
%ProgramData%\
Is there a better way to do this?
Update
I copied the Application's settings file from the user's appdata to the NetworkService account's roaming folder. It works fine.
%windir%\ServiceProfiles\NetworkService\AppData\Roaming
I recieve the error if the application's settings file is not found. the pipeline is working perfectly.