azure-search-openai-demo-java icon indicating copy to clipboard operation
azure-search-openai-demo-java copied to clipboard

prepdocs.ps1 should be updated to use the Invoke-ExternalCommand method

Open jongio opened this issue 2 years ago • 4 comments

This allows the code to execute outside of user profile settings:

See example here: https://github.com/Azure-Samples/azure-search-openai-demo-csharp/blob/main/scripts/prepdocs.ps1

jongio avatar Nov 06 '23 23:11 jongio

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this issue will be closed.

github-actions[bot] avatar Jan 06 '24 01:01 github-actions[bot]

@dantelmomsft any thoughts on this one?

brunoborges avatar May 02 '24 00:05 brunoborges

I've tried to update the script using the Invoke-ExternalCommand function definition as provided in the example ( see attached file prepdocs.md)

. It didn't worked as expected:

  1. 'log' in STDOUT or STDERR is omitted. so as user not sure what's going on.
  2. it fails to run mvn command even if it's available. Same command works when using "Start-Process". See error below: image

@jongio any idea?

dantelmomsft avatar May 03 '24 09:05 dantelmomsft

@jongio ping

brunoborges avatar Jul 11 '24 21:07 brunoborges