Skip to content

Commit 0ae63b3

Browse files
committed
Add outputs for created Log Analytics workspace
1 parent eb3d8f1 commit 0ae63b3

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

outputs.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,3 +187,13 @@ output "username" {
187187
sensitive = true
188188
value = azurerm_kubernetes_cluster.main.kube_config[0].username
189189
}
190+
191+
output "azurerm_log_analytics_workspace_id" {
192+
description = "The id of the created Log Analytics workspace"
193+
value = try(azurerm_log_analytics_workspace.main[0].id, null)
194+
}
195+
196+
output "azurerm_log_analytics_workspace_name" {
197+
description = "The name of the created Log Analytics workspace"
198+
value = try(azurerm_log_analytics_workspace.main[0].name, null)
199+
}

0 commit comments

Comments
 (0)