Skip to content

Commit a681f8b

Browse files
authored
azurerm_postgresql_flexible_server - support importing PGSQL replica servers (hashicorp#30350)
Co-authored-by: Matt Heitzenroder <[email protected]>
1 parent e74b6cd commit a681f8b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/services/postgres/postgresql_flexible_server_resource.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,7 @@ func resourcePostgresqlFlexibleServerRead(d *pluginsdk.ResourceData, meta interf
692692
d.Set("zone", props.AvailabilityZone)
693693
d.Set("version", pointer.From(props.Version))
694694
d.Set("fqdn", props.FullyQualifiedDomainName)
695+
d.Set("source_server_id", props.SourceServerResourceId)
695696

696697
// Currently, `replicationRole` is set to `Primary` when `createMode` is `Replica` and `replicationRole` is updated to `None`. Service team confirmed it should be set to `None` for this scenario. See more details from https://github.com/Azure/azure-rest-api-specs/issues/22499
697698
d.Set("replication_role", d.Get("replication_role").(string))

0 commit comments

Comments
 (0)