Skip to content
DocsTry Aspire
DocsTry

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

methodaddPowerShellbuilder
addPowerShell(
name: string,
languageMode?: string,
minRunspaces?: number,
maxRunspaces?: number): PowerShellRunspacePoolResource
namestring
languageModestringoptional= ConstrainedLanguage
minRunspacesnumberoptional= 1
maxRunspacesnumberoptional= 5
PowerShellRunspacePoolResource

Applies to

This method applies to the following types: