-
Notifications
You must be signed in to change notification settings - Fork 614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable trusted launch for existing-WVD-host-pool-arm #656
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -409,6 +409,27 @@ | |
"description": "System data is used for internal purposes, such as support preview features." | ||
}, | ||
"defaultValue": {} | ||
}, | ||
"securityType": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Specifies the SecurityType of the virtual machine. It is set as TrustedLaunch to enable UefiSettings. Default: UefiSettings will not be enabled unless this property is set as TrustedLaunch." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it would be helpful to include a link to the docs for this here https://docs.microsoft.com/en-us/azure/templates/microsoft.compute/2021-07-01/virtualmachines?tabs=bicep#securityprofile so the customer has more context about this. |
||
}, | ||
"defaultValue": "" | ||
}, | ||
"secureBoot": { | ||
"type": "bool", | ||
"metadata": { | ||
"description": "Specifies whether secure boot should be enabled on the virtual machine." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should say this is only used if securityType is set to "TrustedLaunch". |
||
}, | ||
"defaultValue": false | ||
}, | ||
"vTPM": { | ||
"type": "bool", | ||
"metadata": { | ||
"description": "Specifies whether vTPM (Virtual Trusted Platform Module) should be enabled on the virtual machine." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should say this is only used if securityType is set to "TrustedLaunch". |
||
}, | ||
"defaultValue": false | ||
} | ||
}, | ||
"variables": { | ||
|
@@ -634,6 +655,15 @@ | |
}, | ||
"SessionHostConfigurationVersion": { | ||
"value": "[if(contains(parameters('systemData'), 'hostpoolUpdate'), parameters('systemData').sessionHostConfigurationVersion, '')]" | ||
}, | ||
"securityType": { | ||
"value": "[parameters('securityType')]" | ||
}, | ||
"secureBoot": { | ||
"value": "[parameters('secureBoot')]" | ||
}, | ||
"vTPM": { | ||
"value": "[parameters('vTPM')]" | ||
} | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -305,6 +305,27 @@ | |
"description": "Session host configuration version of the host pool." | ||
}, | ||
"defaultValue": "" | ||
}, | ||
"securityType": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These parameters aren't passed to the virtual machine so it doesn't do anything. |
||
"type": "string", | ||
"metadata": { | ||
"description": "Specifies the SecurityType of the virtual machine. It is set as TrustedLaunch to enable UefiSettings. Default: UefiSettings will not be enabled unless this property is set as TrustedLaunch." | ||
}, | ||
"defaultValue": "" | ||
}, | ||
"secureBoot": { | ||
"type": "bool", | ||
"metadata": { | ||
"description": "Specifies whether secure boot should be enabled on the virtual machine." | ||
}, | ||
"defaultValue": false | ||
}, | ||
"vTPM": { | ||
"type": "bool", | ||
"metadata": { | ||
"description": "Specifies whether vTPM (Virtual Trusted Platform Module) should be enabled on the virtual machine." | ||
}, | ||
"defaultValue": false | ||
} | ||
}, | ||
"variables": { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -305,6 +305,27 @@ | |
"description": "Session host configuration version of the host pool." | ||
}, | ||
"defaultValue": "" | ||
}, | ||
"securityType": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These parameters aren't passed to the virtual machine so it doesn't do anything. |
||
"type": "string", | ||
"metadata": { | ||
"description": "Specifies the SecurityType of the virtual machine. It is set as TrustedLaunch to enable UefiSettings. Default: UefiSettings will not be enabled unless this property is set as TrustedLaunch." | ||
}, | ||
"defaultValue": "" | ||
}, | ||
"secureBoot": { | ||
"type": "bool", | ||
"metadata": { | ||
"description": "Specifies whether secure boot should be enabled on the virtual machine." | ||
}, | ||
"defaultValue": false | ||
}, | ||
"vTPM": { | ||
"type": "bool", | ||
"metadata": { | ||
"description": "Specifies whether vTPM (Virtual Trusted Platform Module) should be enabled on the virtual machine." | ||
}, | ||
"defaultValue": false | ||
} | ||
}, | ||
"variables": { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the only valid value for this is an empty string or TrustedLaunch then you should specify "allowedValues" with those values so the customer will get an error if they enter something else.
This applies to the other ARM templates in this PR too.