Hi,
I’m suffering and error i can’t understand. I have a process that generate a file and one this has been generated the idea is upload the file to Azure Data lake gen2.
I have prepared a powershell script that perform all those actions. If i run the powershell script manually on the server, works perfect but if when i run the script in using the Uipath task is showing that error:
The term ‘Connect-AzAccount’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
RemoteException wrapping System.Management.Automation.CommandNotFoundException: The term ‘Connect-AzAccount’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
I’m preatty confident that the Connect-AzAccount is installe din the machine because as i said , running the script manually is ok.
Here you can see the options i have in the invoke
I hope you can help me with this