PowerShell CommandNotFoundException error

Raj D 616 Reputation points
2022-07-18T18:28:37.68+00:00

Greetings!!!

I'm trying to execute an SSIS package from Azure Data Factory and run into PowerShell CommandNotFoundException error. Everything works as expected when I run the package from my machine. When run on Azure Data Factory I get the below error.

Error:

The term   '\\storacc.file.core.windows.net\psscript\Test.ps1' 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.  
CategoryInfo          : ObjectNotFound: (\\storacc...Test.ps1:String) [], CommandNotFoundException      +   
FullyQualifiedErrorId : CommandNotFoundException   

The powershell script path is in Azure Fileshare ('\storacc.file.core.windows.net\psscript\Test.ps1').

Thank you

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
Windows for business Windows Server User experience PowerShell
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,916 Reputation points
    2022-07-19T15:28:12.083+00:00

    Hi there,

    This issue usually means the data source or destination is inaccessible from the SSIS integration runtime. The reasons can vary. Try these actions:

    -Make sure you're passing the data source or destination name/IP correctly.
    -Make sure the firewall is set properly.
    -Make sure your virtual network is configured properly if your data source or destination is on-premises

    I hope this information helps. If you have any questions please let me know and I will be glad to help you out.

    -----------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer--


Your answer

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