Skip to content

Commit 0f517fe

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

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

outputs.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ output "azure_policy_enabled" {
5959
value = azurerm_kubernetes_cluster.main.azure_policy_enabled
6060
}
6161

62+
output "azurerm_log_analytics_workspace_id" {
63+
description = "The id of the created Log Analytics workspace"
64+
value = try(azurerm_log_analytics_workspace.main[0].id, null)
65+
}
66+
67+
output "azurerm_log_analytics_workspace_name" {
68+
description = "The name of the created Log Analytics workspace"
69+
value = try(azurerm_log_analytics_workspace.main[0].name, null)
70+
}
71+
6272
output "client_certificate" {
6373
description = "The `client_certificate` in the `azurerm_kubernetes_cluster`'s `kube_config` block. Base64 encoded public certificate used by clients to authenticate to the Kubernetes cluster."
6474
sensitive = true
@@ -187,3 +197,4 @@ output "username" {
187197
sensitive = true
188198
value = azurerm_kubernetes_cluster.main.kube_config[0].username
189199
}
200+

0 commit comments

Comments
 (0)