Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddPowerShell

Method
📦 CommunityToolkit.Aspire.Hosting.PowerShell v13.6.1
func (DistributedApplicationBuilder) AddPowerShell(
name string,
options ...*AddPowerShellOptions,
) PowerShellRunspacePoolResource

Signature

methodAddPowerShellbuilder
AddPowerShell(
name string,
options ...*AddPowerShellOptions,
) PowerShellRunspacePoolResource
namestring
options...*AddPowerShellOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddPowerShellOptions argument.

LanguageMode*string
MinRunspaces*float64
MaxRunspaces*float64
PowerShellRunspacePoolResource

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder