Skip to content

Commit b084f47

Browse files
committed
chore: add azure portal link for azure VM BB
1 parent 7ad9be8 commit b084f47

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

modules/azure/azure-virtual-machine/buildingblock/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ No modules.
202202

203203
| Name | Description |
204204
|------|-------------|
205+
| <a name="output_azure_portal_url"></a> [azure\_portal\_url](#output\_azure\_portal\_url) | Direct link to the VM in Azure Portal |
205206
| <a name="output_network_interface_id"></a> [network\_interface\_id](#output\_network\_interface\_id) | The ID of the network interface |
206207
| <a name="output_resource_group_name"></a> [resource\_group\_name](#output\_resource\_group\_name) | The name of the resource group |
207208
| <a name="output_subnet_id"></a> [subnet\_id](#output\_subnet\_id) | The ID of the subnet |

modules/azure/azure-virtual-machine/buildingblock/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ output "vm_identity_principal_id" {
4848
description = "The Principal ID of the system-assigned managed identity"
4949
}
5050

51+
output "azure_portal_url" {
52+
value = "https://portal.azure.com/#@${data.azurerm_client_config.current.tenant_id}/resource/subscriptions/${data.azurerm_subscription.current.subscription_id}/resourceGroups/${azurerm_resource_group.vm_rg.name}/providers/Microsoft.Compute/virtualMachines/${var.vm_name}/overview"
53+
description = "Direct link to the VM in Azure Portal"
54+
}
55+
5156
output "summary" {
5257
description = "Markdown summary output of the building block with connection instructions"
5358
value = <<EOT

0 commit comments

Comments
 (0)