diff --git a/README.md b/README.md index 599fdcf..cdddc83 100644 --- a/README.md +++ b/README.md @@ -41,10 +41,11 @@ No modules. ## Outputs -| Name | Description | -|------|-------------| +| Name | Description | +|----------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------| | [log\_analytics\_primary\_shared\_key](#output\_log\_analytics\_primary\_shared\_key) | The Primary shared key for the Log Analytics Workspace | -| [log\_analytics\_workspace\_id](#output\_log\_analytics\_workspace\_id) | The Log Analytics Workspace ID | +| [log\_analytics\_workspace\_id](#output\_log\_analytics\_workspace\_id) | The Log Analytics Workspace ID | +| [name\_to\_id\_map](#output\_name\_to\_id\_map) | Map of Virtual Network Name to Id | ## License diff --git a/outputs.tf b/outputs.tf index b92e872..0e082eb 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,9 +1,14 @@ -output "log_analytics_workspace_id" { - value = azurerm_log_analytics_workspace.this.id - description = "The Log Analytics Workspace ID" -} - -output "log_analytics_primary_shared_key" { - value = azurerm_log_analytics_workspace.this.primary_shared_key - description = "The Primary shared key for the Log Analytics Workspace" -} +output "log_analytics_workspace_id" { + value = azurerm_log_analytics_workspace.this.id + description = "The Log Analytics Workspace ID" +} + +output "log_analytics_primary_shared_key" { + value = azurerm_log_analytics_workspace.this.primary_shared_key + description = "The Primary shared key for the Log Analytics Workspace" +} + +output "name_to_id_map" { + value = { (azurerm_log_analytics_workspace.this.name) = azurerm_log_analytics_workspace.this.id } + description = "Map of Virtual Network Name to Id" +}