From 401240c1c54feb8746c19335895650b7f3c6e1a9 Mon Sep 17 00:00:00 2001 From: Jelle den Burger Date: Fri, 31 Jul 2026 13:29:19 +0200 Subject: [PATCH] feat: add resource URL to azure storage account --- modules/azure/storage-account/buildingblock/README.md | 1 + modules/azure/storage-account/buildingblock/outputs.tf | 4 ++++ modules/azure/storage-account/meshstack_integration.tf | 6 ++++++ 3 files changed, 11 insertions(+) diff --git a/modules/azure/storage-account/buildingblock/README.md b/modules/azure/storage-account/buildingblock/README.md index e1fca08d..bb28a035 100644 --- a/modules/azure/storage-account/buildingblock/README.md +++ b/modules/azure/storage-account/buildingblock/README.md @@ -69,4 +69,5 @@ No modules. | [storage\_account\_id](#output\_storage\_account\_id) | n/a | | [storage\_account\_name](#output\_storage\_account\_name) | n/a | | [storage\_account\_resource\_group](#output\_storage\_account\_resource\_group) | n/a | +| [storage\_account\_url](#output\_storage\_account\_url) | n/a | diff --git a/modules/azure/storage-account/buildingblock/outputs.tf b/modules/azure/storage-account/buildingblock/outputs.tf index 1444bdaf..0ddff1e0 100644 --- a/modules/azure/storage-account/buildingblock/outputs.tf +++ b/modules/azure/storage-account/buildingblock/outputs.tf @@ -9,3 +9,7 @@ output "storage_account_name" { output "storage_account_resource_group" { value = azurerm_resource_group.storage_account_rg.name } + +output "storage_account_url" { + value = "https://portal.azure.com/#@${data.azurerm_client_config.current.tenant_id}/resource${azurerm_storage_account.storage_account.id}/overview" +} diff --git a/modules/azure/storage-account/meshstack_integration.tf b/modules/azure/storage-account/meshstack_integration.tf index 129ea184..5ab8aca8 100644 --- a/modules/azure/storage-account/meshstack_integration.tf +++ b/modules/azure/storage-account/meshstack_integration.tf @@ -207,6 +207,12 @@ resource "meshstack_building_block_definition" "this" { description = "The name of the resource group containing the storage account." assignment_type = "NONE" } + storage_account_url = { + type = "STRING" + display_name = "Open Storage Account" + description = "Azure Portal URL to the storage account" + assignment_type = "RESOURCE_URL" + } } } }