Skip to content

Commit

Permalink
Merge pull request #393 from recognizegroup/feature/18558-add-dotnet-…
Browse files Browse the repository at this point in the history
…version

add usage of dotnet version in linux app AB#18558
  • Loading branch information
tom-reinders authored Feb 19, 2024
2 parents 0edfcec + b6c2f23 commit cde5adc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/azure/function_app_linux_managed_identity/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,19 @@ resource "azurerm_linux_function_app" "function_app" {
app_settings = merge(var.app_settings, {
MICROSOFT_PROVIDER_AUTHENTICATION_SECRET = "${local.should_create_app ? azuread_application_password.password[0].value : var.managed_identity_provider.existing.client_secret}"
})

site_config {
always_on = var.always_on
vnet_route_all_enabled = var.route_all_outbound_traffic
use_32_bit_worker = var.use_32_bit_worker

dynamic "application_stack" {
for_each = var.dotnet_version != "" ? [var.dotnet_version] : []
content {
dotnet_version = application_stack.value
use_dotnet_isolated_runtime = var.dotnet_isolated
}
}

dynamic "ip_restriction" {
for_each = var.ip_restrictions

Expand Down
12 changes: 12 additions & 0 deletions modules/azure/function_app_linux_managed_identity/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ variable "name" {
description = "Specifies the name of the function app."
}

variable "dotnet_version" {
type = string
description = "Specifies the version of dotnet."
default = ""
}

variable "dotnet_isolated" {
type = string
description = "Specifies if it is isolated function app."
default = false
}

variable "managed_identity_provider" {
type = object({
existing = optional(object({
Expand Down

0 comments on commit cde5adc

Please sign in to comment.