I have a .net 8.0 application deployed to a server which when invoked directly on the server works as expected, but when invoked via a PowerShellOnTargetMachines@3 Azure ‘Classic’ Pipeline task the appsettings.json file seems to not be loaded.
The first attempt to get a valude from the file is returning null.
The application works locally, it works on the remote server when invoked directly by double clicking on the executable but is not picking up the appsettings.json configuration settings when invoked via the Powershell script on the target server.
Has anyone encountered a similar issue?