Welcome to the part two of the MSIX App attach
So, in our previous blog, we discussed how to create the MSIX package from the packaging tool. Now it's time for us to deploy the MSIX to our AVD solution.
Before we proceed there are a few things that you need to know, you need to have a storage account and a file share inside that is integrated without AD and with the relevant permission. Please follow the below steps from Microsoft to configure the required permissions for your MSIX app attach container.
Having said that I have already setup my file share,
Okay let’s get down to the business. :D
Since we have the package ready, we need to create VHD to extract the data.
I’m using the below script to create a VHD in host environment or you can simply attach a VHD to your packaging environment.
New-VHD -SizeBytes 500MB -Path c:\temp\vscode2.vhd -Dynamic -Confirm:$false
$vhdObject = Mount-VHD c:\temp\vscode2.vhd -Passthru
$disk = Initialize-Disk -Passthru -Number $vhdObject.Number
$partition = New-Partition -AssignDriveLetter -UseMaximumSize -DiskNumber $disk.Number
Once our VHD is ready, we need to extract our MSIX to the VHD
To expand the MSIX image:
- Download the msixmgr tool and save the .zip.
- Unzip the msixmgr tool .zip folder.
- Run the following cmdlet to unpack the MSIX into the VHD you created in the previous section.
.\msixmgr.exe -Unpack -packagePath “C:\temp\vscode_188.8.131.52_x64__rbh2ag737t0tm.msix” -destination "G:\vscode" -applyacls
once done, we need to upload this to the storage account we prepared by giving the required permissions earlier
Once it's uploaded, it's just a matter of adding the MSIX package to the AVD environment.
So, there are two ways that we can achieve this,
Using the portal, we can simply add the application to the user’s workspace.
Follow the below step
Head down to Azure Virtual desktop and select the host pool, go to MSIX Packages And also before you add please do note you need at least 1 host server in your host pool for this to work
Click add and provide the MSIX VHD path from the storage account
Fill in the details and set the state to Active
Once done you can create an application group and provide msix app name to give permissions to the users. If you follow this path users will see the application in their AVD Workspace as a remote application. You'll need to do this for both desktop and remote app application groups. If you don’t add the MSIX app to the Virtual Desktop Group ( by default hostpool-DAG). Application won't display inside the host
And if you just want users to access outside the host session then you can create a new app group and assign the application. So the application will be visible in the workspace.
Hope this helps someone 😊
[…] Danidu has written his second post in a series of posts he is doing around MSIX App Attach. In this post he goes through the steps to create a VHD and extract the MSIX onto the VHD, ready to be uploaded to the file share. You can view his blog post here – Azure Virtual Desktop MSIX App Attach – Pt2 – Blog of Danidu (dckloud.com) […]ReplyDelete