Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: configure virtual applications #224

Merged
merged 18 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,21 @@ resource "azurerm_windows_web_app" "this" {
current_stack = application_stack.value.current_stack
}
}

dynamic "virtual_application" {
for_each = var.virtual_applications

content {
virtual_path = virtual_application.value.virtual_path
physical_path = virtual_application.value.physical_path
preload = virtual_application.value.preload

virtual_directory {
physical_path = virtual_application.value.virtual_directories.physical_path
virtual_path = virtual_application.value.virtual_directories.virtual_path
}
sebastianlolv marked this conversation as resolved.
Show resolved Hide resolved
}
}
}

dynamic "identity" {
Expand Down
18 changes: 18 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,24 @@ variable "application_stack" {
default = null
}

variable "virtual_applications" {
description = "A list of virtual applications to configure for this Web App. Only applicable if value of kind is \"Windows\"."

type = list(object({
virtual_path = string
physical_path = string
preload = bool

virtual_directories = optional(list(object({
physical_path = optional(string)
virtual_path = optional(string)
})))
}))

default = []
nullable = false
}

variable "active_directory_tenant_auth_endpoint" {
description = "The endpoint of the Microsoft Entra tenant to use for authentication."
type = string
Expand Down