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

public_network_access_enabled not working on linux_function_app #27555

Open
1 task done
cbell38 opened this issue Oct 2, 2024 · 1 comment
Open
1 task done

public_network_access_enabled not working on linux_function_app #27555

cbell38 opened this issue Oct 2, 2024 · 1 comment

Comments

@cbell38
Copy link

cbell38 commented Oct 2, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Terraform Version

1.9.7

AzureRM Provider Version

4.3.0

Affected Resource(s)/Data Source(s)

azurerm_linux_function_app

Terraform Configuration Files

resource "azurerm_linux_function_app" "datadog_fa" {
  name                          = "name"
  location                      = var.location
  resource_group_name           = "resource_group_name"
  storage_account_name          = "storage_account_name"
  storage_account_access_key    = "primary_access_key"
  service_plan_id               = "service_plan_id"
  https_only                    = true
  client_certificate_enabled    = true
  client_certificate_mode       = "Required"
  public_network_access_enabled = false
  virtual_network_subnet_id     = "subnet_id"

  site_config {
    always_on = true
    application_stack {
      node_version = "18"
    }
  }

  app_settings = {
    WEBSITE_RUN_FROM_PACKAGE = "0"
  }

  identity {
    type = "SystemAssigned"
  }

  lifecycle {
    ignore_changes = [
      tags
    ]
  }
}

Debug Output/Panic Output

Error: Unsupported argument
on .terraform/modules/dd_integration/dd-logs.tf line 88, in resource "azurerm_linux_function_app" "datadog_fa":
  public_network_access_enabled = false
An argument named "public_network_access_enabled" is not expected here.

Expected Behaviour

Expected behavior is to create the Function App with public network access disabled.

Actual Behaviour

Plan fails with an unsupported argument error.

Steps to Reproduce

terraform apply

Important Factoids

No response

References

No response

@Chambras
Copy link
Contributor

Chambras commented Oct 5, 2024

@cbell38 the plan runs without any issues for me. I was looking at your error again and it seems you are using modules?
do you have a variable for public_network_access_enabled in your module?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants