你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Update-AzWvdApplication
update an application.
Syntax
Update-AzWvdApplication
-GroupName <String>
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
[-ApplicationType <String>]
[-CommandLineArgument <String>]
[-CommandLineSetting <String>]
[-Description <String>]
[-FilePath <String>]
[-FriendlyName <String>]
[-IconIndex <Int32>]
[-IconPath <String>]
[-MsixPackageApplicationId <String>]
[-MsixPackageFamilyName <String>]
[-ShowInPortal]
[-Tag <Hashtable>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzWvdApplication
-GroupName <String>
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-JsonString <String>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzWvdApplication
-GroupName <String>
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-JsonFilePath <String>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzWvdApplication
-Name <String>
-ApplicationGroupInputObject <IDesktopVirtualizationIdentity>
[-ApplicationType <String>]
[-CommandLineArgument <String>]
[-CommandLineSetting <String>]
[-Description <String>]
[-FilePath <String>]
[-FriendlyName <String>]
[-IconIndex <Int32>]
[-IconPath <String>]
[-MsixPackageApplicationId <String>]
[-MsixPackageFamilyName <String>]
[-ShowInPortal]
[-Tag <Hashtable>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzWvdApplication
-Name <String>
-ApplicationGroupInputObject <IDesktopVirtualizationIdentity>
-Application <IApplicationPatch>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzWvdApplication
-InputObject <IDesktopVirtualizationIdentity>
[-ApplicationType <String>]
[-CommandLineArgument <String>]
[-CommandLineSetting <String>]
[-Description <String>]
[-FilePath <String>]
[-FriendlyName <String>]
[-IconIndex <Int32>]
[-IconPath <String>]
[-MsixPackageApplicationId <String>]
[-MsixPackageFamilyName <String>]
[-ShowInPortal]
[-Tag <Hashtable>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
update an application.
Examples
Example 1: Update a Windows Virtual Desktop Application
Update-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 updates a Windows Virtual Desktop Application in an applicaton Group.
Parameters
-Application
Application properties that can be patched.
Type: | IApplicationPatch |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ApplicationGroupInputObject
Identity Parameter
Type: | IDesktopVirtualizationIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ApplicationType
Resource Type of Application.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CommandLineArgument
Command Line Arguments for Application.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
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: | String |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
Description of Application.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FriendlyName
Friendly name of Application.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-GroupName
The name of the application group
Type: | String |
Aliases: | ApplicationGroupName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IconIndex
Index of the icon.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IconPath
Path to icon.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Identity Parameter
Type: | IDesktopVirtualizationIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-JsonFilePath
Path of Json file supplied to the Update operation
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JsonString
Json string supplied to the Update operation
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MsixPackageApplicationId
Specifies the package application Id for MSIX applications
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MsixPackageFamilyName
Specifies the package family name for MSIX applications
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | True |
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 |
Required: | True |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
The ID of the target subscription. The value must be an UUID.
Type: | String |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Tag
tags to be updated
Type: | Hashtable |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
IDesktopVirtualizationIdentity