How do I deploy SSIS packages with Powershell?

Oblio 51 Reputation points
2022-03-30T20:00:48.977+00:00

I'm trying to follow the directions on this guide: https://learn.microsoft.com/en-us/sql/integration-services/ssis-quickstart-deploy-powershell?view=sql-server-ver15

The prerequisites talk about ports, but they fail to mention what I need installed on my machine to execute the script. Can someone help with that? Let's suppose I just checked out a project with SSIS packages. What do I need to do to run the powershell script to deploy to a server?

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
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 60,161 Reputation points
    2022-03-30T20:21:30.827+00:00

    Depends upon which approach you're taking. After the Supported authentication method section it shows you 2 different ways to do the same thing. The first approach is using the SSIS Powershell provider. The installation is available here.

    The second approach is just using raw PS and doesn't require anything extra. It does assume you're running SSIS on the same machine as it dynamically loads the needed SSIS binaries to do its work. However note that it requires a full assembly name and therefore where it is using Assembly.Load to load the SSIS binaries it requires that you set the Version= value to the correct version for your instance of SSIS. Other than that it is pure PS.


  2. Oblio 51 Reputation points
    2022-03-31T12:34:22.597+00:00
    1. SSDT is no longer a separate install, but is acquired through the VS installer. I've done that.
    2. I know where the SqlServer Module came from, but not the assemblies in the GAC.
    3. So, I still don't have a command Load-Module...

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.