-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtester.tf
30 lines (26 loc) · 947 Bytes
/
tester.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
resource "azurerm_linux_virtual_machine" "tester-node" {
count = var.tester-count
name = "${local.net-name}-app"
location = var.location
resource_group_name = azurerm_resource_group.resource.name
network_interface_ids = ["${element(azurerm_network_interface.appnic.*.id, count.index)}"]
size = var.test-size
admin_username = var.ssh-user
os_disk {
name = "${local.net-name}-app"
caching = "ReadWrite"
storage_account_type = "Premium_LRS"
}
source_image_reference {
publisher = var.test-publisher
offer = var.test-offer
sku = var.test-sku
version = var.test-version
}
admin_ssh_key {
username = var.ssh-user
public_key = file(var.ssh-key)
}
disable_password_authentication = true
tags = merge({ Name = "${local.net-name}-app" }, var.common-tags)
}