Hi,
Here's the command I used to run for doing the CDN purge job. It's alway successes at powershell window.
c:\Akamai\Invoke-AkamaiOPEN.ps1 -Method POST -ClientToken "myClientToken" -ClientAccessToken "MyClientAccessToken" -ClientSecret "MyClientSecret" -ReqURL "https://akab-xmucqzwuw3dfqxcg-aywrwrmbvp3o3wi2.purge.akamaiapis.net/ccu/v2/queues/default" -Body '{ "objects": ["http://www.MySite.com/index.asp?type=649&pop=yes&flash=yes"], "action":"invalidate", "type":"arl", "domain":"production" }'
Now I'd like to turn this command into action, so I create a powershell-run script file action.
After I test this action locally, RA retrun me an error message.
Error: Exception occurred: Cannot run program "Powershell.exe" (in directory "C:\Akamai"): CreateProcess error=2, The system cannot find the file specified
Both RA server and test agent is in the same computer and I can run the command in powershell window successfully.
I have no idea why the action can't run Powershell.exe.
Am I set something wrong?
Thanks