Skip to content

Commit

Permalink
azurerm_postgresql_server - Add ForceNew to `geo_redundant_backup_e…
Browse files Browse the repository at this point in the history
…nabled` (#9694)
  • Loading branch information
favoretti authored Dec 4, 2020
1 parent e76046d commit 2ce5708
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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"},
},
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/postgresql_server.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 2ce5708

Please sign in to comment.