Skip to content

Commit

Permalink
adding ks8
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmordasiewicz committed Aug 6, 2024
1 parent 8ce081a commit 8161d50
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ resource "azurerm_resource_group" "azure_resource_group" {
}
}

data "external" "tenant_default_domain" {
program = ["sh", "-c", "az account show --query tenantDefaultDomain --output json | jq -r '{tenantDefaultDomain: .}'"]
}

output "resource_group_url" {
value = "https://portal.azure.com/#@${data.external.tenant_default_domain.result["tenantDefaultDomain"]}/resource${azurerm_resource_group.azure_resource_group.id}"
description = "URL to access the Azure Resource Group in the Azure Portal"
}

resource "random_pet" "admin_username" {
length = 2
separator = ""
Expand Down

0 comments on commit 8161d50

Please sign in to comment.