Azure / AVDSessionHostReplacer

MIT License
33 stars 19 forks source link

Unable to deploy vm's without trusted launch. #6

Closed nandosie012 closed 1 month ago

nandosie012 commented 4 months ago

Why am i not able to deploy vm's without the trusted launch option using powershell,

Tried editting the parameters in de tempaltespecs file and also in the confguration my function app but unfortunately the only way for me to do this will be using trusted launch and not enabeling the vtpm and secure boot options. this works but that means a bunch of image rewriting..

WillyMoselhy commented 4 months ago

This seems really annoying. I would love to take a look. Can you please leave your email on this form so I can reach you? Let's Connect

ankurvvvv commented 2 months ago

Same issue. My images are build with Standard boot (No Trusted or confidentials boot).

When i hit review & create, i got this error:

{"code":"InvalidTemplate","message":"Deployment template validation failed: 'The value for the template parameter 'SecureBootEnabled' at line '94' and column '26' is not provided. Please see https://aka.ms/arm-create-parameter-file for usage details.'."}

joshbasquez commented 2 months ago

@ankurvvvv @nandosie012 -- are you both using portal-ui deployment from this repo? I saw that it returns the value of the checkboxes but those are hidden when standard mode is selected. Could be fixed there on the ui definition file portal-ui.json, but I was able to fix by setting a default value in the arm template file:

deploy\arm\DeployAVDSessionHostReplacer.json

I added "defaultValue": false around line 98 for securebootenabled and tpmenabled.

"SecureBootEnabled": { "type": "bool", "defaultValue": false }, "TpmEnabled": { "type": "bool", "defaultValue": false },

I'll reach out to Willy

WillyMoselhy commented 1 month ago

Fixed in v.0.2.8