diff --git a/azurerm/internal/services/postgres/postgresql_server_resource.go b/azurerm/internal/services/postgres/postgresql_server_resource.go index 7373342328d7..9b2edca934e1 100644 --- a/azurerm/internal/services/postgres/postgresql_server_resource.go +++ b/azurerm/internal/services/postgres/postgresql_server_resource.go @@ -154,6 +154,7 @@ func resourceArmPostgreSQLServer() *schema.Resource { Type: schema.TypeString, Optional: true, Computed: true, + ForceNew: true, ConflictsWith: []string{"geo_redundant_backup_enabled"}, Deprecated: "this has been moved to the top level and will be removed in version 3.0 of the provider.", ValidateFunc: validation.StringInSlice([]string{ @@ -198,6 +199,7 @@ func resourceArmPostgreSQLServer() *schema.Resource { "geo_redundant_backup_enabled": { Type: schema.TypeBool, Optional: true, + ForceNew: true, Computed: true, // TODO: remove in 2.0 and default to false ConflictsWith: []string{"storage_profile", "storage_profile.0.geo_redundant_backup"}, }, diff --git a/website/docs/r/postgresql_server.html.markdown b/website/docs/r/postgresql_server.html.markdown index 9b199637f2bf..c5461c476bb5 100644 --- a/website/docs/r/postgresql_server.html.markdown +++ b/website/docs/r/postgresql_server.html.markdown @@ -66,7 +66,7 @@ The following arguments are supported: * `creation_source_server_id` - (Optional) For creation modes other then default the source server ID to use. -* `geo_redundant_backup_enabled` - (Optional) Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier. +* `geo_redundant_backup_enabled` - (Optional) Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not support for the Basic tier. Changing this forces a new resource to be created. * `identity` - (Optional) An `identity` block as defined below.