Using PowerShell modules in Runbooks running on Octopus Server

Hi Team,

we want to use your new Runbook feature in order to schedule some Azure database tasks.
Invoke-ProcessASDatabase is part of the SqlServer module which is not bundled with PowerShell on OctopusServer.
What is the preferred way to make this module avaliable for runbooks?

It would be great if we could avoid to install the module directly onto the server.
If we were required to install all needed powershell modules directly on the server, we would need to migrate all runbooks once a new module release with breaking changes enters the scene.

Any suggestions for a runbook life cycle with non bundled PowerShell modules?

Kind regards,

Hi Team,
we followed your blog post Worker friendly custom step templates in order to solve this problem.

It works without problems.

Kind regards,

1 Like

HI Michael,

Thanks for the update on this! I’m sorry that I wasn’t able to get back to you in a timely fashion, though I’m very happy to see that you found our blog and got to the bottom of this. It’s great to see our blog posts helping the readers be successful with our new features.

If you still have any troubles with this, or any questions at all, please don’t hesitate to let me know. I’d be happy to help however I can.

Thanks again for the update.

Best regards,