Editar

Compartilhar via


New-AzWvdMsixPackage

Create or update a MSIX package.

Syntax

New-AzWvdMsixPackage
   -HostPoolName <String>
   -ResourceGroupName <String>
   -FullName <String>
   [-SubscriptionId <String>]
   [-DisplayName <String>]
   [-ImagePath <String>]
   [-IsActive]
   [-IsRegularRegistration]
   [-LastUpdated <DateTime>]
   [-PackageApplication <IMsixPackageApplications[]>]
   [-PackageDependency <IMsixPackageDependencies[]>]
   [-PackageFamilyName <String>]
   [-PackageName <String>]
   [-PackageRelativePath <String>]
   [-Version <String>]
   [-DefaultProfile <PSObject>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzWvdMsixPackage
   -HostPoolName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String>]
   [-DisplayName <String>]
   [-ImagePath <String>]
   [-IsActive]
   [-IsRegularRegistration]
   -PackageAlias <String>
   [-DefaultProfile <PSObject>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Create or update a MSIX package.

Examples

Example 1: Creates New MSIX Package in the HostPool via Package Alias

New-AzWvdMsixPackage -HostPoolName HostPoolName `
                     -ResourceGroupName resourceGroupName `
                     -SubscriptionId SubscriptionId `
                     -PackageAlias packagealias `
                     -ImagePath ImagePathURI

This command adds MSIX package from specified image path to HostPool

Example 2: Creates New MSIX Package in the HostPool

$apps = "<PackagedApplication>"
$deps = "<PackageDependencies>"
New-AzWvdMsixPackage -FullName PackageFullName `
                     -HostPoolName HostPoolName `
                     -ResourceGroupName ResourceGroupName `
                     -SubscriptionId SubscriptionId `
                     -DisplayName displayname `
                     -ImagePath imageURI `
                     -IsActive:$false `
                     -IsRegularRegistration:$false `
                     -LastUpdated datelastupdated `
                     -PackageApplication $apps `
                     -PackageDependency $deps `
                     -PackageFamilyName packagefamilyname `
                     -PackageName packagename `
                     -PackageRelativePath packagerelativepath `
                     -Version packageversion

Name                              Type
----                              ----
HotPoolName/PackageFullName       Microsoft.DesktopVirtualization/hostpools/msixpackages

This command adds MSIX Package in the specified HostPool

Parameters

-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

-DisplayName

User friendly Name to be displayed in the portal.

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

-FullName

The version specific package full name of the MSIX package within specified hostpool

Type:String
Aliases:MsixPackageFullName
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-HostPoolName

The name of the host pool within the specified resource group

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ImagePath

VHD/CIM image path on Network Share.

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

-IsActive

Make this version of the package the active one across the hostpool.

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

-IsRegularRegistration

Specifies how to register Package in feed.

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

-LastUpdated

Date Package was last updated, found in the appxmanifest.xml.

Type:DateTime
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PackageAlias

Package Alias from extract MSIX Image

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-PackageApplication

List of package applications.

To construct, see NOTES section for PACKAGEAPPLICATION properties and create a hash table.

Type:IMsixPackageApplications[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PackageDependency

List of package dependencies.

To construct, see NOTES section for PACKAGEDEPENDENCY properties and create a hash table.

Type:IMsixPackageDependencies[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PackageFamilyName

Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.

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

-PackageName

Package Name from appxmanifest.xml.

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

-PackageRelativePath

Relative Path to the package inside the image.

Type:String
Position:Named
Default value:None
Required:False
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

-SubscriptionId

The ID of the target subscription.

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

-Version

Package Version found in the appxmanifest.xml.

Type:String
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

Outputs

IMsixPackage