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

Select-PSUDeployment

Applies a deployment to the server.

SYNOPSIS

Applies a deployment to the server.

SYNTAX

Deployment

Select-PSUDeployment -Deployment <Deployment> [-Synchronous] [-Pin] [-ComputerName <String>]
 [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate]
 [-Cookies] [<CommonParameters>]

Module

Select-PSUDeployment -ModuleName <String> -ModuleVersion <String> [-Synchronous] [-Pin]
 [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials]
 [-Integrated] [-TrustCertificate] [-Cookies] [<CommonParameters>]

DESCRIPTION

Applies a deployment to the server. Pinning a deployment will set the server to read-only.

EXAMPLES

Example 1

Applies the deployment with the name 'Production' and version '2.0.0'.

Example 2

Applies the module with the name 'MyModule' and version '1.0.0'. The module must be stored in a repository that is configured in the server.

Example 3

Applies the module with the name 'MyModule' and version '1.0.0'. The module must be stored in a repository that is configured in the server. The deployment will be pinned.

PARAMETERS

-AppToken

An application token to use for authentication.

-ComputerName

The URL of the server to connect to.

-Credential

The credentials to use for authentication.

-Deployment

The deployment to apply.

-Integrated

For use when running within PowerShell Universal.

-ModuleName

The name of the module that contains the deployment.

-ModuleVersion

The version of the module that contains the deployment.

-Pin

Pin the deployment.

-TrustCertificate

Trust the certificate when connecting to the server.

-UseDefaultCredentials

Use the default credentials for the current user.

-Synchronous

Wait for the deployment to complete before returning.

-Cookies

Reuses and persists authentication cookies for the current PowerShell session.

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

PowerShellUniversal.Deployment

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?