Error- ActivityId: 0f4babe9-d940-43fe-868a-06141dee810a Error: The MSIX Application metadata expand request failed on all Session Hosts that it was sent to. Session Host: Azeus2pl1, Error: No signature was present in the subject. (Exception from HRESULT: 0x800B0100). (Code: 400)
Cause – MSIX app attach required package signing using valid certificate which is trusted by all session host under hostpool. if you have selected “no signing” during MSIX application packaging then you will get this error.
if the AppxSignature.p7x is missing from the MSIX package then definatly you will see this error.
if you are using self sign certificate and in case the certificate is not trusted on the AVD session host then you will see this error.
Solution – Signing is mandatory for MSIX package so make sure you have correct certificate while creating package. if you are using self-sign certificate in case of POC then you must generate correct certificate using below commands.
$cert = New-SelfSignedCertificate -CertStoreLocation Cert:\LocalMachine\My ` -DnsName "www.powershelltalk.com" -Type CodeSigningCert -Subject "powershelltalk.com" -Verbose $cert $secPassword = ConvertTo-SecureString -String '******' -Force -AsPlainText $certPath = "Cert:\LocalMachine\My\$($Cert.Thumbprint)" Export-PfxCertificate -Cert $certPath -FilePath 'C:\Users\Aruns\CodeSigning.pfx' -Password $secPassword