Use Azure Automation Powershell runbook configured to run on Hybrid worker to copy files from On-prem server to On prem file share

Rohit Rai 1 Reputation point
2021-12-09T05:46:31.777+00:00

I'm using Invoke-command on a server and if I do a test-path //server/share$ , it shows as false(fails) , the same test-path runs correctly(true) when running from On prem server through powershell console.
Any hints what might be issue?
I have setup Hybrid worker and Run as Account

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.