Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
frasdav committed Jan 9, 2024
1 parent bb8436a commit 359ba86
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions modules/vpn-server-configuration/src/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ resource "azurerm_vpn_server_configuration" "main" {
vpn_authentication_types = var.vpn_authentication_types
vpn_protocols = var.vpn_protocols

azure_active_directory_authentication {
audience = data.azuread_service_principal.azure_vpn.client_id
issuer = "https://sts.windows.net/${data.azurerm_client_config.main.tenant_id}/"
tenant = "https://login.microsoftonline.com/${data.azurerm_client_config.main.tenant_id}/"
dynamic "azure_active_directory_authentication" {
for_each = contains(var.vpn_authentication_types, "AAD") ? [{}] : []

content {
audience = data.azuread_service_principal.azure_vpn.client_id
issuer = "https://sts.windows.net/${data.azurerm_client_config.main.tenant_id}/"
tenant = "https://login.microsoftonline.com/${data.azurerm_client_config.main.tenant_id}/"
}
}

tags = merge(var.tags, local.tags)
Expand Down

0 comments on commit 359ba86

Please sign in to comment.