Powershell warning during custom script execution on tentacle

We see this warning when executing our custom create-virtualApp function that is contained in a Octopus powershell module.

Tentacle script execution
Info 16:19:39
WARNING: The names of some imported commands from the module
Info 16:19:39
’Library_IISutils_635386187783656954’ include unapproved verbs that might make
Info 16:19:39
them less discoverable. To find the commands with unapproved verbs, run the
Info 16:19:39
Import-Module command again with the Verbose parameter. For a list of approved
Info 16:19:39
verbs, type Get-Verb.

How can we avoid this warning in the context of Octopus.?


This is because your command starts with “Create” - most PowerShell commands would use “New-” as a prefix instead. If you change your command to “New-VirtualApp” the warnings should go away. Hope that helps!