Importing FlexApp One Packages and Assigning via PowerShell (Optional)

  1. PowerShell can be used to create the App Packages source, discover the FlexApp One packages, and assign the applications to the requisite Delivery Group.
  2. Install the Citrix DaaS PowerShell SDK https://www.citrix.com/downloads/citrix-cloud/product-software/xenapp-and-xendesktop-service.html
  3. Run PowerShell as Administrator.
  4. Authenticate to Citrix DaaS:
  5. Copy
    Get-XdAuthentication
  6. Enumerate Citrix Delivery Groups and Get the Uid of the Delivery Group to Perform Discovery:
  7. Copy
    Get-BrokerDesktopGroup | Format-Table uid, Name

    Note: Make a note of the Uid number of the proper Delivery Group for the next command.

  8. Add New App Packages Source and Discover FlexApp One Packages:
  9. Copy
    $DP = New-AppLibPackageDiscoveryProfile –Name FlexApp – DesktopGroupUid 189 –Path \\server.domain.com\fa1share\ -DiscoverFlexApp $true

    Note: Replace FlexApp after –Name with the desired display name of the new source, replace 189 with delivery group number from above command, and replace \\server.domain.com\fa1share with the actual share where the FlexApp One Packages reside.

  10. Mount Citrix Virtual Apps and Desktop 7 2311 or later iso.
  11. Import PowerShell Module from iso to Allow for App Package Assignment:
  12. Copy
    Import-Module "D:\Support\Tools\Scripts\Citrix.Cloud.AppLibrary.Admin.V1.psm1"

    Note: Change D:\ to the drive letter for the mounted iso.

  13. List App Packages and Enumerate the Uid of Each Application:
  14. Copy
    Get-AppLibAppVApplication | Format-Table uid, Name

    Note: Make a note of the Uid of the application to be assigned to Delivery Group in the next command.

  15. Assigning Application Package to the Delivery Group:
  16. Copy
    Publish-PackagedApplication –DesktopGroupUid 189 -AppLibraryApplicationUid