-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.tf
48 lines (40 loc) · 1.2 KB
/
install.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
variable "virtual_machine_scale_set_id" {
type = string
}
variable "extension_name" {
type = string
}
resource "azurerm_virtual_machine_scale_set_extension" "ue4extension" {
name = var.extension_name
depends_on = []
virtual_machine_scale_set_id = var.virtual_machine_scale_set_id
publisher = "Microsoft.Compute"
type = "CustomScriptExtension"
type_handler_version = "1.10"
settings = <<SETTINGS
{
"fileUris": [
"https://github.com/Azure/Unreal-Pixel-Streaming-on-Azure/blob/main/scripts/setupBackendVMSS.ps1"],
"commandToExecute": "powershell.exe ./setupBackendVMSS.ps1"
}
SETTINGS
# protected_settings = <<PROTECTED_SETTINGS
# {
# }
# PROTECTED_SETTINGS
}
resource "azurerm_virtual_machine_scale_set_extension" "ue4_nvidia_drivers" {
name = "NvidiaGpuDriverWindows"
virtual_machine_scale_set_id = var.virtual_machine_scale_set_id
publisher = "Microsoft.HpcCompute"
type = "NvidiaGpuDriverWindows"
type_handler_version = "1.3"
settings = <<SETTINGS
{
}
SETTINGS
# protected_settings = <<PROTECTED_SETTINGS
# {
# }
# PROTECTED_SETTINGS
}