| external help file | |
|---|---|
| Module Name | Az.DesktopVirtualization |
| online version | https://learn.microsoft.com/powershell/module/az.desktopvirtualization/new-azwvdappattachpackage |
| schema | 2.0.0 |
Create an App Attach package.
New-AzWvdAppAttachPackage -Name <String> -ResourceGroupName <String> -Location <String>
[-SubscriptionId <String>] [-CustomData <String>] [-DeploymentScope <String>]
[-FailHealthCheckOnStagingFailure <String>] [-HostPoolReference <String[]>]
[-ImageCertificateExpiry <DateTime>] [-ImageCertificateName <String>] [-ImageDisplayName <String>]
[-ImageIsActive] [-ImageIsPackageTimestamped <String>] [-ImageIsRegularRegistration]
[-ImageLastUpdated <DateTime>] [-ImagePackageAlias <String>]
[-ImagePackageApplication <IMsixPackageApplications[]>]
[-ImagePackageDependency <IMsixPackageDependencies[]>] [-ImagePackageFamilyName <String>]
[-ImagePackageFullName <String>] [-ImagePackageName <String>] [-ImagePackageRelativePath <String>]
[-ImagePath <String>] [-ImageVersion <String>] [-KeyVaultUrl <String>] [-PackageLookbackUrl <String>]
[-PackageOwnerName <String>] [-Tag <Hashtable>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf]
[<CommonParameters>]
New-AzWvdAppAttachPackage -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
New-AzWvdAppAttachPackage -Name <String> -ResourceGroupName <String> -JsonString <String>
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
New-AzWvdAppAttachPackage [-AppAttachPackage] <AppAttachPackage> -Name <String> -ResourceGroupName <String>
-Location <String> [-SubscriptionId <String>] [-FailHealthCheckOnStagingFailure <String>]
[-HostPoolReference <String[]>] [-ImageDisplayName <String>] [-ImageIsActive] [-ImageIsRegularRegistration]
[-PassThru] [-DefaultProfile <PSObject>] [<CommonParameters>]
Create an App Attach package.
$apps = "<PackagedApplication>"
$deps = "<PackageDependencies>"
New-AzWvdAppAttachPackage -Name PackageArmObjectName `
-ResourceGroupName ResourceGroupName `
-SubscriptionId SubscriptionId `
-Location location `
-ImageDisplayName displayname `
-ImagePath imageURI `
-ImageIsActive:$false `
-ImageIsRegularRegistration:$false `
-ImageLastUpdated datelastupdated `
-ImagePackageApplication $apps `
-ImagePackageDependency $deps `
-ImagePackageFamilyName packagefamilyname `
-ImagePackageName packagename `
-ImagePackageFullName packagefullname `
-ImagePackageRelativePath packagerelativepath `
-ImageVersion packageversion `
-ImageCertificateExpiry certificateExpiry `
-ImageCertificateName certificateName `
-KeyVaultUrl keyvaultUrl `
-FailHealthCheckOnStagingFailure 'Unhealthy'Location Name Type
-------- ---- ----
eastus PackageArmObjectName Microsoft.DesktopVirtualization/appattachpackages
This command creates or updates an Azure Virtual Desktop App attach package in a resource group.
Example 2: Create or update an Azure Virtual Desktop app attach package from an appAttachPackage object
New-AzWvdAppAttachPackage -Name PackageArmObjectName `
-ResourceGroupName ResourceGroupName `
-SubscriptionId SubscriptionId `
-Location location `
-DisplayName displayname `
-AppAttachPackage imageObject `
-IsActive:$false `
-IsLogonBlocking:$false `
-KeyVaultUrl keyvaultUrl `
-FailHealthCheckOnStagingFailure 'Unhealthy' `
-HostpoolReference hostpoolReference `
-PassThru
Location Name Type
-------- ---- ----
eastus PackageArmObjectName Microsoft.DesktopVirtualization/appattachpackages
This command creates or updates an Azure Virtual Desktop App Attach Package in a resource group using the output of the Import-AzWvdAppAttachPackageInfo command.
Type: Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.AppAttachPackage
Parameter Sets: ImageObject
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseField that can be populated with custom data and filtered on in list GET calls
Type: System.String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Type: System.Management.Automation.PSObject
Parameter Sets: (All)
Aliases: AzureRMContext, AzureCredential
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseDeploymentScope type for AppAttachPackage.
Type: System.String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseParameter indicating how the health check should behave if this package fails staging
Type: System.String
Parameter Sets: CreateExpanded, ImageObject
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseList of Hostpool resource Ids.
Type: System.String[]
Parameter Sets: CreateExpanded, ImageObject
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseDate certificate expires, found in the appxmanifest.xml.
Type: System.DateTime
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseCertificate name found in the appxmanifest.xml.
Type: System.String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseUser friendly Name to be displayed in the portal.
Type: System.String
Parameter Sets: CreateExpanded, ImageObject
Aliases: DisplayName
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseMake this version of the package the active one across the hostpool.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: CreateExpanded, ImageObject
Aliases: IsActive
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseIs package timestamped so it can ignore the certificate expiry date
Type: System.String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecifies how to register Package in feed.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: CreateExpanded, ImageObject
Aliases: IsRegularRegistration, IsLogonBlocking
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseDate Package was last updated, found in the appxmanifest.xml.
Type: System.DateTime
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseAlias of App Attach Package. Assigned at import time
Type: System.String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseList of package applications.
Type: Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageApplications[]
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseList of package dependencies.
Type: Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackageDependencies[]
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalsePackage Family Name from appxmanifest.xml. Contains Package Name and Publisher name.
Type: System.String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalsePackage Full Name from appxmanifest.xml.
Type: System.String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalsePackage Name from appxmanifest.xml.
Type: System.String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseRelative Path to the package inside the image.
Type: System.String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseVHD/CIM image path on Network Share.
Type: System.String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalsePackage version found in the appxmanifest.xml.
Type: System.String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalsePath of Json file supplied to the Create operation
Type: System.String
Parameter Sets: CreateViaJsonFilePath
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseJson string supplied to the Create operation
Type: System.String
Parameter Sets: CreateViaJsonString
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseURL path to certificate name located in keyVault
Type: System.String
Parameter Sets: CreateExpanded, ImageObject
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe geo-location where the resource lives
Type: System.String
Parameter Sets: CreateExpanded, ImageObject
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe name of the App Attach package
Type: System.String
Parameter Sets: (All)
Aliases: AppAttachPackageName
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseLookback url to third party control plane, is null for native app attach packages
Type: System.String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSpecific name of package owner, is "AppAttach" for native app attach packages
Type: System.String
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseType: System.Management.Automation.SwitchParameter
Parameter Sets: ImageObject
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe name of the resource group. The name is case insensitive.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe ID of the target subscription. The value must be an UUID.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: FalseResource tags.
Type: System.Collections.Hashtable
Parameter Sets: CreateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalsePrompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseShows what would happen if the cmdlet runs. The cmdlet is not run.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.