forked from HoussemDellai/azure-monitoring-course
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvm-extension-ama.tf
More file actions
17 lines (16 loc) · 763 Bytes
/
Copy pathvm-extension-ama.tf
File metadata and controls
17 lines (16 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
resource "azurerm_virtual_machine_extension" "ama_linux" {
name = "AzureMonitorLinuxAgent"
virtual_machine_id = azurerm_linux_virtual_machine.vm_linux.id
publisher = "Microsoft.Azure.Monitor"
type = "AzureMonitorLinuxAgent"
type_handler_version = "1.0"
auto_upgrade_minor_version = true
}
resource "azurerm_virtual_machine_extension" "ama_windows" {
name = "AzureMonitorWindowsAgent"
virtual_machine_id = azurerm_windows_virtual_machine.vm_windows.id
publisher = "Microsoft.Azure.Monitor"
type = "AzureMonitorWindowsAgent"
type_handler_version = "1.21"
auto_upgrade_minor_version = true
}