Skip to content

Commit 74dee56

Browse files
Merge pull request #124 from Barts-Life-Science/feature/encrypt-vm
added encryption at host for user resource vms
2 parents f3c004d + 52f0046 commit 74dee56

File tree

4 files changed

+5
-0
lines changed
  • templates/workspace_services/guacamole/user_resources

4 files changed

+5
-0
lines changed

templates/workspace_services/guacamole/user_resources/guacamole-azure-export-reviewvm/terraform/windowsvm.tf

+2
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ resource "azurerm_windows_virtual_machine" "windowsvm" {
124124
allow_extension_operations = true
125125
admin_username = random_string.username.result
126126
admin_password = random_password.password.result
127+
encryption_at_host_enabled = true
128+
127129

128130
custom_data = base64encode(data.template_file.download_review_data_script.rendered)
129131

templates/workspace_services/guacamole/user_resources/guacamole-azure-import-reviewvm/terraform/windowsvm.tf

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ resource "azurerm_windows_virtual_machine" "windowsvm" {
4545
allow_extension_operations = true
4646
admin_username = random_string.username.result
4747
admin_password = random_password.password.result
48+
encryption_at_host_enabled = true
4849

4950
custom_data = base64encode(data.template_file.download_review_data_script.rendered)
5051

templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/linuxvm.tf

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ resource "azurerm_linux_virtual_machine" "linuxvm" {
4444
disable_password_authentication = false
4545
admin_username = random_string.username.result
4646
admin_password = random_password.password.result
47+
encryption_at_host_enabled = true
4748

4849
custom_data = data.template_cloudinit_config.config.rendered
4950

templates/workspace_services/guacamole/user_resources/guacamole-azure-windowsvm/terraform/windowsvm.tf

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ resource "azurerm_windows_virtual_machine" "windowsvm" {
4545
allow_extension_operations = true
4646
admin_username = random_string.username.result
4747
admin_password = random_password.password.result
48+
encryption_at_host_enabled = true
4849

4950
custom_data = base64encode(templatefile(
5051
"${path.module}/vm_config.ps1", {

0 commit comments

Comments
 (0)