Azure powershell script files(PS1) are not working after hosting in IIS. We invoke PS1 files from C#(using Runspace and pipeline). The PS1 files are working fine if I debug through powershell ISE.But following logs found after hosting in IIS.
yet to invoke pipe line
Invoked pipe line
result count is : 0
An internal error occurred.
An error occurred while sending the request.
However,when the APIs are debugged,the pipeline does not throw any error. Is there any environment issue such as publishsettings file? How to resolve this kind of exceptions?