Created
January 21, 2019 09:46
-
-
Save ahanoff/05d258bd197cc2b5c4979e63b2edc8f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "azurerm_resource_group" "test" { | |
name = "acctestRG1" | |
location = "East US" | |
} | |
resource "azurerm_log_analytics_workspace" "test" { | |
name = "acctest-01" | |
location = "${azurerm_resource_group.test.location}" | |
resource_group_name = "${azurerm_resource_group.test.name}" | |
sku = "PerGB2018" | |
retention_in_days = 30 | |
} | |
resource "azurerm_kubernetes_cluster" "test" { | |
name = "acctestaks1" | |
location = "${azurerm_resource_group.test.location}" | |
resource_group_name = "${azurerm_resource_group.test.name}" | |
dns_prefix = "acctestagent1" | |
agent_pool_profile { | |
name = "default" | |
count = 1 | |
vm_size = "Standard_D1_v2" | |
os_type = "Linux" | |
os_disk_size_gb = 30 | |
} | |
service_principal { | |
client_id = "00000000-0000-0000-0000-000000000000" | |
client_secret = "00000000000000000000000000000000" | |
} | |
addon_profile { | |
oms_agent { | |
enabled = true | |
log_analytics_workspace_id = "${azurerm_log_analytics_workspace.test.id}" | |
} | |
} | |
tags { | |
Environment = "Production" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment