Calling PS script from Azure Webjobs

%3CLINGO-SUB%20id%3D%22lingo-sub-1399698%22%20slang%3D%22en-US%22%3ECalling%20PS%20script%20from%20Azure%20Webjobs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1399698%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20my%20first%20post%20here.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20from%20D365%20FO%20background%20.%20I%20am%20integrating%20azurejobs%20using%20logic%20apps.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20my%20PS%20script%3C%2FP%3E%3CP%3Eparam(%24scriptPath%2C%24inputPath%2C%24outputPath)%3CBR%20%2F%3Eperl%20%24scriptPath%20-input%20%24inputPath%20-output%20%24outputPath%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20execute%20the%20above%20command%20directly%20in%20ps%2C%20I%20am%20getting%20the%20expected%20result.%3C%2FP%3E%3CP%3E(perl%20script%20is%20called%20and%20the%20files%20are%20moved%20properly)%3C%2FP%3E%3CP%3EI%20am%20passing%20the%20value%20of%20paths%20from%20logic%20apps%20gateway.%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20I%20end%20up%20with%20the%20attached%20error%20when%20I%20call%20the%20same%20ps%20script%20from%20azure%20webjobs%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20I%20need%20to%20modify%20the%20ps%20script%20here%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1399698%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerhsell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

Hi,

 

This is my first post here. 

 

I am from D365 FO background . I am integrating azurejobs using logic apps.

 

This is my PS script

param($scriptPath,$inputPath,$outputPath)
perl $scriptPath -input $inputPath -output $outputPath

 

When I execute the above command directly in ps, I am getting the expected result.

(perl script is called and the files are moved properly)

I am passing the value of paths from logic apps gateway. 

But I end up with the attached error when I call the same ps script from azure webjobs

 

 

Do I need to modify the ps script here?

0 Replies