Skip to content
Snippets Groups Projects
Commit fb9eabfe authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

Add boot diagnostics URI to kafka servers

parent 85ca419f
No related branches found
No related tags found
No related merge requests found
......@@ -50,3 +50,7 @@ variable "user_admin" {
type = string
default = "tmpadmin"
}
variable "boot_diagnostics_uri" {
default = "https://swhresourcediag966.blob.core.windows.net"
}
......@@ -40,6 +40,11 @@ resource "azurerm_virtual_machine" "kafka-server" {
network_interface_ids = [azurerm_network_interface.kafka-interface[count.index].id]
vm_size = "Standard_B2s"
boot_diagnostics {
enabled = true
storage_uri = var.boot_diagnostics_uri
}
storage_os_disk {
name = format("kafka%02d-osdisk", count.index + 1)
caching = "ReadWrite"
......@@ -102,6 +107,7 @@ resource "azurerm_virtual_machine" "kafka-server" {
filesystem = "ext4",
mount_options = "defaults",
}]
raids = []
})
destination = var.firstboot_script
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment