Edit

Share via


Publish-AzureRemoteAppProgram

Publishes an Azure RemoteApp program.

Note

The cmdlets referenced in this documentation are for managing legacy Azure resources that use Azure Service Manager (ASM) APIs. This legacy PowerShell module isn't recommended when creating new resources since ASM is scheduled for retirement. For more information, see Azure Service Manager retirement.

The Az PowerShell module is the recommended PowerShell module for managing Azure Resource Manager (ARM) resources with PowerShell.

Syntax

App Id (Default)

Publish-AzureRemoteAppProgram
    [-CollectionName] <String>
    [-StartMenuAppId] <String>
    [-CommandLine <String>]
    [-DisplayName <String>]
    [-Profile <AzureSMProfile>]
    [<CommonParameters>]

App Path

Publish-AzureRemoteAppProgram
    [-CollectionName] <String>
    [-FileVirtualPath] <String>
    [-CommandLine <String>]
    [-DisplayName <String>]
    [-Profile <AzureSMProfile>]
    [<CommonParameters>]

Description

The Publish-AzureRemoteAppProgram cmdlet publishes an Azure RemoteApp program, which makes it available to users of the Azure RemoteApp collection.

Examples

Example 1: Publish a program in a collection

PS C:\> Publish-AzureRemoteAppProgram -CollectionName "ContosoApps" -StartMenuAppId "00001111-aaaa-2222-bbbb-3333cccc4444" -DisplayName "Finance App"

This command publishes the program in the ContosoApps collection with the specified StartMenuAppId to add the program to the Start Menu. The published app will have a display name of "Finance App".

Parameters

-CollectionName

Specifies the name of the Azure RemoteApp collection.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Name

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-CommandLine

Specifies command-line arguments for the program that this cmdlet publishes.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DisplayName

Specifies the user-friendly display name of the Azure RemoteApp program. Users see this as the name of the application.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-FileVirtualPath

Specifies the path of the program within the template image of the program.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

App Path
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Parameter properties

Type:AzureSMProfile
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-StartMenuAppId

Specifies a GUID that this cmdlet uses to add the program to the Start Menu.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

App Id
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

CommonParameters

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