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

`instance_memory_in_mb ` change in `azurerm_function_app_flex_consumption` does not get applied

Open hemalshah-gradientedge opened this issue 5 months ago • 2 comments

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.11.2

AzureRM Provider Version

4.30.0

Affected Resource(s)/Data Source(s)

azurerm_function_app_flex_consumption

Terraform Configuration Files

instance_memory_in_mb = '4096'

Debug Output/Panic Output

~ resource "azurerm_function_app_flex_consumption" "test-function" {
                          id                                             = "/subscriptions/***/resourceGroups/testfunction/providers/Microsoft.Web/sites/testfunction"
                        ~ instance_memory_in_mb                          = 2048 -> 4096
                          name                                           = "testfunction"
                          tags                                           = {
                              "environment"             = "dev"
                          }
                          # (29 unchanged attributes hidden)

                          # (2 unchanged blocks hidden)
                      }

Expected Behaviour

Memory on the function app should change from 2048 to 4096 successfully

Actual Behaviour

Terraform completes successfully however the memory change does not actually get reflected in the function app flex consumption

Steps to Reproduce

  1. Set instance_memory_in_mb to 2048
  2. Run terraform apply to Create a new function app
  3. change instance_memory_in_mb to 4096
  4. run terraform apply to update existing function app

Important Factoids

No response

References

No response

hemalshah-gradientedge avatar Jun 16 '25 10:06 hemalshah-gradientedge

I was able to reproduce this issue. The instance_memory_in_mb does not seeem to change the memory size of the app. @xiaxyi FYI.

nzthiago avatar Jun 16 '25 17:06 nzthiago

Thanks @hemalshah-gradientedge , let me take a look

xiaxyi avatar Jun 17 '25 01:06 xiaxyi

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

github-actions[bot] avatar Sep 28 '25 02:09 github-actions[bot]