Closed cg-mls closed 5 months ago
Thanks for raising this issue. Service team confirmed that restarting server against static parameters is expected behavior. Here the problem is that the value content returned by GET API is sorted alphabetically.
Thanks for raising this issue. I assume you have to set the value alphabetically. See more details from here.
Thank you, will try to list em alphabetically
Thank you for taking the time to raise this! I am going to close this with @neil-yechenwei‘s response as an answer. If you have future questions, I suggest using the Community Resources, such as the Azure Provider forum.
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.
Is there an existing issue for this?
Community Note
Terraform Version
1.3.7
AzureRM Provider Version
3.44.1
Affected Resource(s)/Data Source(s)
azurerm_postgresql_flexible_server_configuration
Terraform Configuration Files
Note: I have given a plain string for the value instead of using a variable, it still didn't make a difference, and wanted to make an update in place.
Debug Output/Panic Output
Expected Behaviour
No changes required.
Actual Behaviour
Terraform will perform update-in-place
Steps to Reproduce
Run tf apply and create
shared_preload_libraries
server configuration. After apply is completed successfully, run another tf apply. You will see that tf will recognize it as a change, and run another apply. That causes server to restart after every single apply even if there are no actual changes. We could use lifecycle ignore changes temporarily, however that is not a long term solution.Important Factoids
N/A
References
I believe there was this pr https://github.com/hashicorp/terraform-provider-azurerm/pull/20044 got merged in for static parameters to cause restart on the server. Might be the root cause of the issue.