terraform-provider-azurerm icon indicating copy to clipboard operation
terraform-provider-azurerm copied to clipboard

Changing daily_memory_time_quota in azurerm_linux_function_app has no effect

Open bve-wd opened this issue 1 year ago • 0 comments
trafficstars

Is there an existing issue for this?

  • [X] I have searched the existing issues

Community Note

  • Please vote on this issue by adding a :thumbsup: 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.8

AzureRM Provider Version

4.5.0

Affected Resource(s)/Data Source(s)

azurerm_linux_function_app

Terraform Configuration Files

resource "azurerm_resource_group" "rg" {
  name     = "testgroup"
  location = "swedencentral"
}

resource "azurerm_service_plan" "sp" {
  name                = "testserviceplan"
  location            = azurerm_resource_group.rg.location
  resource_group_name = azurerm_resource_group.rg.name
  os_type             = "Linux"
  sku_name            = "Y1"
}

resource "azurerm_storage_account" "storacc" {
  name                     = "abc9040ad58eab28"
  resource_group_name      = azurerm_resource_group.rg.name
  location                 = azurerm_resource_group.rg.location
  account_tier             = "Standard"
  account_replication_type = "LRS"
}


resource "azurerm_linux_function_app" "my-test-appabc9040ad58eab28" {
  name = "func-my-test-appabc9040ad58eab28"
  location                      = azurerm_resource_group.rg.location
  resource_group_name           = azurerm_resource_group.rg.name
  service_plan_id               = azurerm_service_plan.sp.id
  storage_account_name          = azurerm_storage_account.storacc.name
  storage_account_access_key    = azurerm_storage_account.storacc.primary_access_key
  daily_memory_time_quota       = 2000
  functions_extension_version   = "~4"
  site_config {
    application_stack {
      dotnet_version = "8.0"
      use_dotnet_isolated_runtime = true
    }
  }
}

Debug Output/Panic Output

Terraform will perform the following actions:

  # azurerm_linux_function_app.my-test-appabc9040ad58eab28 will be updated in-place
  ~ resource "azurerm_linux_function_app" "my-test-appabc9040ad58eab28" {
      ~ daily_memory_time_quota                        = 1000 -> 2000
        id                                             = "/subscriptions/.../func-my-test-appabc9040ad58eab28"
        name                                           = "func-my-test-appabc9040ad58eab28"
        tags                                           = {}
        # (32 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

....

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

azurerm_linux_function_app.my-test-appabc9040ad58eab28: Modifying... [id=/subscriptions/.../func-my-test-appabc9040ad58eab28]
azurerm_linux_function_app.my-test-appabc9040ad58eab28: Still modifying... [id=/subscriptions/.../func-my-test-appabc9040ad58eab28, 10s elapsed]
azurerm_linux_function_app.my-test-appabc9040ad58eab28: Still modifying... [id=/subscriptions/.../func-my-test-appabc9040ad58eab28, 20s elapsed]
azurerm_linux_function_app.my-test-appabc9040ad58eab28: Still modifying... [id=/subscriptions/.../func-my-test-appabc9040ad58eab28, 30s elapsed]
azurerm_linux_function_app.my-test-appabc9040ad58eab28: Modifications complete after 36s [id=/subscriptions/.../func-my-test-appabc9040ad58eab28]

...

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.

Expected Behaviour

Changing the value of daily_memory_time_quota should update the value of "Daily Usage Quota (GB-Sec)".

Actual Behaviour

Changing the value of daily_memory_time_quota has no effect. It is set correctly when a resource is created but not updated if the value is changed.

Steps to Reproduce

  1. Create a linux function app with daily_memory_time_quota set to 1000
  2. run terraform apply
  3. Update the value of daily_memory_time_quota to 2000
  4. run terraform apply

Important Factoids

No response

References

No response

bve-wd avatar Oct 17 '24 17:10 bve-wd