For the complete documentation index, see llms.txt. This page is also available as Markdown.

New-PSUDashboard

Creates a new app in PowerShell Universal.

Synopsis

Creates a new app in PowerShell Universal.

Syntax

New-PSUDashboard [-AppToken <String>] [-Authenticated] [-AutoDeploy] [-BaseUrl <String>] [-Command <String>] [-Component <DashboardComponent[]>] [-ComputerName <String>] [-Credential <String>] [-Description <String>] [-DisableAutoStart] [-DisableErrorToast] [-DisableInteractiveHost] [-DisableStartupLog] [-Environment <String>] [-FavIcon <String>] [-GrantAppToken] [-IdleTimeout <Int32>] [-Integrated] [-Maintenance] [-Module <String>] -Name <String> [-Role <String[]>] [-SessionTimeout <Int32>] [-Tag <Tag[]>] [-UseDefaultCredentials] [-VerboseErrorMessages] [-ComputerGroup <String[]>] [-OnSessionTimeout <ScriptBlock>] [-AvailableInBranch <String[]>] [-TrustCertificate] [-Critical] [<CommonParameters>]

    New-PSUDashboard [-AppToken <String>] [-Authenticated] [-AutoDeploy] [-BaseUrl <String>] [-Component <DashboardComponent[]>] [-ComputerName <String>] -Content <ScriptBlock> [-Credential <String>] [-Description <String>] [-DisableAutoStart] [-DisableErrorToast] [-DisableInteractiveHost] [-DisableStartupLog] [-Environment <String>] [-FavIcon <String>] [-GrantAppToken] [-IdleTimeout <Int32>] [-Integrated] [-Maintenance] -Name <String> [-Role <String[]>] [-SessionTimeout <Int32>] [-Tag <Tag[]>] [-UseDefaultCredentials] [-VerboseErrorMessages] [-ComputerGroup <String[]>] [-OnSessionTimeout <ScriptBlock>] [-AvailableInBranch <String[]>] [-TrustCertificate] [-Critical] [<CommonParameters>]

    New-PSUDashboard [-AppToken <String>] [-Authenticated] [-AutoDeploy] [-BaseUrl <String>] [-Component <DashboardComponent[]>] [-ComputerName <String>] [-Credential <String>] [-Description <String>] [-DisableAutoStart] [-DisableErrorToast] [-DisableInteractiveHost] [-DisableStartupLog] [-Environment <String>] [-FavIcon <String>] [-FilePath <String>] [-GrantAppToken] [-IdleTimeout <Int32>] [-Integrated] [-Maintenance] -Name <String> [-Role <String[]>] [-SessionTimeout <Int32>] [-Tag <Tag[]>] [-UseDefaultCredentials] [-VerboseErrorMessages] [-ComputerGroup <String[]>] [-OnSessionTimeout <ScriptBlock>] [-AvailableInBranch <String[]>] [-TrustCertificate] [-Critical] [<CommonParameters>]

Description

Creates a new app in PowerShell Universal.

Parameters

-AppToken

The AppToken that is used for calling the PowerShell Universal Management API. You can also call Connect-PSUServer before calling this cmdlet to set the AppToken for the entire session.

Required?                    false
Position?                    named
Default value                None
Accept pipeline input?       False
Aliases                      none
Accept wildcard characters?  false

    -Authenticated [<SwitchParameter>]
        When specified, authentication is enabled for this app.

Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       False
Aliases                      none
Accept wildcard characters?  false

    -AutoDeploy [<SwitchParameter>]
        Whether to deploy this app when changes are made. If not specified, the app needs to be restarted before changes are applied.

Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       False
Aliases                      none
Accept wildcard characters?  false

-BaseUrl

The base URL to access this app. You can use / to serve the app at the root of the server or /app to serve the app at /app.

-Command

The command used to create this app.

-Component <DashboardComponent[]>

Not used. Only present for backwards compatibility.

-ComputerName

Specifies the computer name or URL that should be called when accessing the PowerShell Universal Management API. You can also use Connect-PSUServer before calling this cmdlet to set the computer name for the entire session.

-Content

The content of this app.

-Credential

The user credential to run this app under.

-Description

A description of this app.

-Environment

The environment to run this app under.

-FavIcon

The URL to the favicon for this app.

-FilePath

The path to the file that contains the content for this app.

-IdleTimeout

The idle timeout for this app.

-Module

The module that contains the command used to define this app.

-Name

The name of this app.

-Role <String[]>

Roles that have access to this app.

-SessionTimeout

The session timeout for this app.

-Tag <Tag[]>

Tags to apply to this app.

-ComputerGroup <String[]>

{{ Fill ComputerGroup Description }}

-OnSessionTimeout

{{ Fill OnSessionTimeout Description }}

-AvailableInBranch <String[]>

When specified, this app will only be displayed and running the specified branches.

Inputs

None

Outputs

System.Object

Notes

-------------------------- Example 1 --------------------------

Last updated

Was this helpful?