New-AzWvdApplication

Create or update an application.

Syntax

New-AzWvdApplication
   -CommandLineSetting <CommandLineSetting>
   -GroupName <String>
   -Name <String>
   -ResourceGroupName <String>
   [-Description <String>]
   [-FriendlyName <String>]
   [-ShowInPortal]
   [-SubscriptionId <String>]
   [-ApplicationType <RemoteApplicationType>]
   [-CommandLineArgument <String>]
   [-FilePath <String>]
   [-IconIndex <Int32>]
   [-IconPath <String>]
   [-MsixPackageApplicationId <String>]
   [-MsixPackageFamilyName <String>]
   [-DefaultProfile <PSObject>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]
New-AzWvdApplication
   -AppAlias <String>
   -CommandLineSetting <CommandLineSetting>
   -GroupName <String>
   -Name <String>
   -ResourceGroupName <String>
   [-Description <String>]
   [-FriendlyName <String>]
   [-ShowInPortal]
   [-SubscriptionId <String>]
   [-DefaultProfile <PSObject>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

Create or update an application.

Examples

Example 1: Create a Windows Virtual Desktop Application

PS C:\> New-AzWvdApplication -ResourceGroupName ResourceGroupName `
                             -GroupName ApplicationGroupName `
                             -Name ApplicationName `
                             -FilePath 'C:\windows\system32\mspaint.exe' `
                             -FriendlyName 'Friendly name' `
                             -Description 'Description' `
                             -IconIndex 0 `
                             -IconPath 'C:\windows\system32\mspaint.exe' `
                             -CommandLineSetting 'Allow' `
                             -ShowInPortal:$true

Name                                 Type
----                                 ----
ApplicationGroupName/ApplicationName Microsoft.DesktopVirtualization/applicationgroups/applications

This command creates a Windows Virtual Desktop Application in an applicaton Group.

Parameters

-AppAlias

App Alias from start menu item

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ApplicationType

Resource Type of Application.

Type:Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.RemoteApplicationType
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CommandLineArgument

Command Line Arguments for Application.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CommandLineSetting

Specifies whether this published application can be launched with command line arguments provided by the client, command line arguments specified at publish time, or no command line arguments at all.

Type:Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Support.CommandLineSetting
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Description

Description of Application.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-FilePath

Specifies a path for the executable file for the application.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-FriendlyName

Friendly name of Application.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-GroupName

The name of the application group

Type:String
Aliases:ApplicationGroupName
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IconIndex

Index of the icon.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IconPath

Path to icon.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MsixPackageApplicationId

Specifies the package application Id for MSIX applications

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MsixPackageFamilyName

Specifies the package family name for MSIX applications

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

The name of the application within the specified application group

Type:String
Aliases:ApplicationName
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceGroupName

The name of the resource group. The name is case insensitive.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ShowInPortal

Specifies whether to show the RemoteApp program in the RD Web Access server.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SubscriptionId

The ID of the target subscription.

Type:String
Position:Named
Default value:(Get-AzContext).Subscription.Id
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api20201102Preview.IApplication

Notes

ALIASES