New-OctopusArtifact From External Program

Im using my .net app with some powershell script in it :
The term ‘New-OctopusArtifact’ 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. The module ‘Scripts’ could not be loaded. For more information, run ‘Import-Module Scripts’.

The .net app is deployed via octopus, how can i access those functions from octopus ?

Hi @fbrunetgirard,

Thank you for contacting Octopus Support.

New-OctopusArtifact is a PowerShell function that is only available when loaded via the Octopus bootstrapper. However, you may be able to use our API instead:

Hopefully proves useful for your scenario. Let me know if you have any additional questions.


Yes I think the boostrap work if I call powershell script , but if my powershell script call the .net app + some powershell , it doesnt do all the chain thanks

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.