Skip to content

Invoke UniversalDeploymentUpload

github-actions[bot] edited this page Jul 19, 2026 · 1 revision

Invoke-UniversalDeploymentUpload

SYNOPSIS

Uploads a deployment package to PowerShell Universal.

SYNTAX

Invoke-UniversalDeploymentUpload [-Uri] <String> [-AppToken] <String> [-Path] <String>
 [<CommonParameters>]

DESCRIPTION

Sends a module package or automation repository archive to a PowerShell Universal deployment endpoint using bearer authentication.

EXAMPLES

EXAMPLE 1

Invoke-UniversalDeploymentUpload -Uri $uri -AppToken $token -Path $packagePath

PARAMETERS

-AppToken

Application token used to authenticate the deployment request.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Path

Path to the package that is uploaded as the request body.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Uri

Complete PowerShell Universal deployment endpoint URI.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

OUTPUTS

System.Object

NOTES

RELATED LINKS