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

Publish-PSUDeployment

Creates a deployment to a PowerShell Universal server.

SYNOPSIS

Creates a deployment to a PowerShell Universal server.

SYNTAX

Version (Default)

Publish-PSUDeployment -Name <String> -Version <String> [-Synchronous] [-ComputerName <String>]
 [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate]
 [-Cookies] [<CommonParameters>]

Module

Publish-PSUDeployment -Name <String> [-Repository <String>] -Version <String> [-Module] [-Synchronous]
 [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials]
 [-Integrated] [-TrustCertificate] [-Cookies] [<CommonParameters>]

DESCRIPTION

Creates a deployment to a PowerShell Universal server.

EXAMPLES

Example 1

Creates a deployment for the application named 'MyApp' with the

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.

-ComputerName

The HTTP address of the PSU Management API.

-Credential

The credentials used to connect to the PowerShell Universal server. This is only used if the server is not using default credentials.

-Integrated

Whether to use integrated mode for this cmdlet.

-Name

The name of the deployment.

-Synchronous

Whether to wait for the deployment to complete before returning.

-TrustCertificate

Whether to trust the certificate of the PowerShell Universal server.

-UseDefaultCredentials

Whether to use default credentials when connecting to the PowerShell Universal server.

-Version

The version of the deployment.

-Cookies

Reuses and persists authentication cookies for the current PowerShell session.

-Module

Specifies the PowerShell module name to use.

-Repository

Specifies the PowerShell repository to use.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?