Skip to content
Docs Try Aspire
Docs Try

addPowerShell

Method
📦 CommunityToolkit.Aspire.Hosting.PowerShell v13.4.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addPowerShell(
name: string,
languageMode?: string,
minRunspaces?: number,
maxRunspaces?: number): PowerShellRunspacePoolResource;
}

Signature

method addPowerShell builder
addPowerShell(
name: string,
languageMode?: string,
minRunspaces?: number,
maxRunspaces?: number): PowerShellRunspacePoolResource
name string
languageMode string optional = ConstrainedLanguage
minRunspaces number optional = 1
maxRunspaces number optional = 5
PowerShellRunspacePoolResource

Applies to

This method applies to the following types: