You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ERROR] provider.terraform-provider-azurerm_v3.103.1_x5: Response contains error diagnostic: @caller=github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov5/internal/diag/diagnostics.go:58 @module=sdk.proto diagnostic_detail= tf_resource_type=azurerm_postgresql_flexible_server tf_rpc=PlanResourceChange diagnostic_severity=ERROR diagnostic_summary="1 error occurred: * invalid 'storage_tier' "P20" for defined 'storage_mb' size '1048576', expected one of ["P30", "P40" or "P50"]
Expected Behaviour
The storage_tier is not explicitly mentioned in postgres.tf.json. The provider picks the default storage_tier (i.e P30 as per the documentation here) for the storage_mb of 1048576.
Actual Behaviour
Changing storage_mb from 524288 to 1048576 fails due to invalid storage_tier "P20".
Steps to Reproduce
Setup a new Azure PostgreSQL Flexible Server with storage_mb as 524288.
Change the storage_mb to 1048576.
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
Hi @anoopjb, thank you for opening this issue. Just so I understand the ask here, what you are saying is that you expect the storage_tier, if not defined in the configuration file, to follow the default storage_tier assignment semantics of the create function during an update operation? Basically, given your above example, if you change the configuration files storage_mb value from 524288 to 1048576 you expect the terraform provider to automatically update the storage_tier value that will be passed to the API to be the default value for the newly defined storage_mb value (e.g., P30) instead of passing/keeping the original defaultstorage_tier value of P20 from the initial create of the resource?
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
0.15.5
AzureRM Provider Version
3.103.1
Affected Resource(s)/Data Source(s)
azurerm_postgresql_flexible_server
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The
storage_tier
is not explicitly mentioned inpostgres.tf.json
. The provider picks the defaultstorage_tier
(i.eP30
as per the documentation here) for the storage_mb of1048576
.Actual Behaviour
Changing
storage_mb
from524288
to1048576
fails due to invalidstorage_tier
"P20".Steps to Reproduce
storage_mb
as524288
.1048576
.Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: