2 Corrected the PowerShell command
source | link

We have completed development in Stage environment on SDL Web 8.5 and DXA 2.0. The setup for Production CMS is also completed and now we are planning to replace the database on Production with Stage database.

Please bear with me as I am new to Topology Manager.

In Stage, when I run the script Get-TtmCmEnvironmentTtmCdEnvironment, I get the output:

EnvironmentPurpose   : Staging
DiscoveryEndpointUrl : http://stage.microservices.com:8082/discovery.svc
Credentials          : "AuthenticationType":"OAuth", "ClientId":"cmuser", "ClientSecret":"********"
IsOffline            : False
ScopedRepositoryKeys : {DxaSiteType, DxaExampleSite...}
Id                   : CdEnvironment1
ExtensionProperties  : {}

In Production, for the same command, I get the output as:

EnvironmentPurpose   : Live
DiscoveryEndpointUrl : http://www.microservices.com:8082/discovery.svc
Credentials          : "AuthenticationType":"OAuth", "ClientId":"cmuser", "ClientSecret":"********"
IsOffline            : False
ScopedRepositoryKeys : {DxaSiteType, DxaExampleSite}
Id                   : CdEnvironment4
ExtensionProperties  : {}

EnvironmentPurpose   : Staging
DiscoveryEndpointUrl : http://staging.microservices.com:8082/discovery.svc
Credentials          : "AuthenticationType":"OAuth", "ClientId":"cmuser", "ClientSecret":"********"
IsOffline            : False
ScopedRepositoryKeys : {DxaSiteType, DxaExampleSite}
Id                   : CdEnvironment3
ExtensionProperties  : {}

My questions is that when we do the Topology Manager DB replace, how will the environment IDs map out (Stage has CD Environment as CdEnvironment1 and Production has CdEnvironment4 & CdEnvironment3).

Will the Ids remain the same after DB replace and I can run the update scripts on the imported websites

--OR--

Will replacing the DB overwrite the Production CD Environments and I will have to run the the Add-TtmCmEnvironmentTtmCdEnvironment again and add all the websites again?

I went through this question here, but I am still confused. How should I approach this?

We have completed development in Stage environment on SDL Web 8.5 and DXA 2.0. The setup for Production CMS is also completed and now we are planning to replace the database on Production with Stage database.

Please bear with me as I am new to Topology Manager.

In Stage, when I run the script Get-TtmCmEnvironment, I get the output:

EnvironmentPurpose   : Staging
DiscoveryEndpointUrl : http://stage.microservices.com:8082/discovery.svc
Credentials          : "AuthenticationType":"OAuth", "ClientId":"cmuser", "ClientSecret":"********"
IsOffline            : False
ScopedRepositoryKeys : {DxaSiteType, DxaExampleSite...}
Id                   : CdEnvironment1
ExtensionProperties  : {}

In Production, for the same command, I get the output as:

EnvironmentPurpose   : Live
DiscoveryEndpointUrl : http://www.microservices.com:8082/discovery.svc
Credentials          : "AuthenticationType":"OAuth", "ClientId":"cmuser", "ClientSecret":"********"
IsOffline            : False
ScopedRepositoryKeys : {DxaSiteType, DxaExampleSite}
Id                   : CdEnvironment4
ExtensionProperties  : {}

EnvironmentPurpose   : Staging
DiscoveryEndpointUrl : http://staging.microservices.com:8082/discovery.svc
Credentials          : "AuthenticationType":"OAuth", "ClientId":"cmuser", "ClientSecret":"********"
IsOffline            : False
ScopedRepositoryKeys : {DxaSiteType, DxaExampleSite}
Id                   : CdEnvironment3
ExtensionProperties  : {}

My questions is that when we do the Topology Manager DB replace, how will the environment IDs map out (Stage has CD Environment as CdEnvironment1 and Production has CdEnvironment4 & CdEnvironment3).

Will the Ids remain the same after DB replace and I can run the update scripts on the imported websites

--OR--

Will replacing the DB overwrite the Production CD Environments and I will have to run the the Add-TtmCmEnvironment again and add all the websites again?

I went through this question here, but I am still confused. How should I approach this?

We have completed development in Stage environment on SDL Web 8.5 and DXA 2.0. The setup for Production CMS is also completed and now we are planning to replace the database on Production with Stage database.

Please bear with me as I am new to Topology Manager.

In Stage, when I run the script Get-TtmCdEnvironment, I get the output:

EnvironmentPurpose   : Staging
DiscoveryEndpointUrl : http://stage.microservices.com:8082/discovery.svc
Credentials          : "AuthenticationType":"OAuth", "ClientId":"cmuser", "ClientSecret":"********"
IsOffline            : False
ScopedRepositoryKeys : {DxaSiteType, DxaExampleSite...}
Id                   : CdEnvironment1
ExtensionProperties  : {}

In Production, for the same command, I get the output as:

EnvironmentPurpose   : Live
DiscoveryEndpointUrl : http://www.microservices.com:8082/discovery.svc
Credentials          : "AuthenticationType":"OAuth", "ClientId":"cmuser", "ClientSecret":"********"
IsOffline            : False
ScopedRepositoryKeys : {DxaSiteType, DxaExampleSite}
Id                   : CdEnvironment4
ExtensionProperties  : {}

EnvironmentPurpose   : Staging
DiscoveryEndpointUrl : http://staging.microservices.com:8082/discovery.svc
Credentials          : "AuthenticationType":"OAuth", "ClientId":"cmuser", "ClientSecret":"********"
IsOffline            : False
ScopedRepositoryKeys : {DxaSiteType, DxaExampleSite}
Id                   : CdEnvironment3
ExtensionProperties  : {}

My questions is that when we do the Topology Manager DB replace, how will the environment IDs map out (Stage has CD Environment as CdEnvironment1 and Production has CdEnvironment4 & CdEnvironment3).

Will the Ids remain the same after DB replace and I can run the update scripts on the imported websites

--OR--

Will replacing the DB overwrite the Production CD Environments and I will have to run the the Add-TtmCdEnvironment again and add all the websites again?

I went through this question here, but I am still confused. How should I approach this?

1
source | link

Moving Topology Manager from Staging to Production

We have completed development in Stage environment on SDL Web 8.5 and DXA 2.0. The setup for Production CMS is also completed and now we are planning to replace the database on Production with Stage database.

Please bear with me as I am new to Topology Manager.

In Stage, when I run the script Get-TtmCmEnvironment, I get the output:

EnvironmentPurpose   : Staging
DiscoveryEndpointUrl : http://stage.microservices.com:8082/discovery.svc
Credentials          : "AuthenticationType":"OAuth", "ClientId":"cmuser", "ClientSecret":"********"
IsOffline            : False
ScopedRepositoryKeys : {DxaSiteType, DxaExampleSite...}
Id                   : CdEnvironment1
ExtensionProperties  : {}

In Production, for the same command, I get the output as:

EnvironmentPurpose   : Live
DiscoveryEndpointUrl : http://www.microservices.com:8082/discovery.svc
Credentials          : "AuthenticationType":"OAuth", "ClientId":"cmuser", "ClientSecret":"********"
IsOffline            : False
ScopedRepositoryKeys : {DxaSiteType, DxaExampleSite}
Id                   : CdEnvironment4
ExtensionProperties  : {}

EnvironmentPurpose   : Staging
DiscoveryEndpointUrl : http://staging.microservices.com:8082/discovery.svc
Credentials          : "AuthenticationType":"OAuth", "ClientId":"cmuser", "ClientSecret":"********"
IsOffline            : False
ScopedRepositoryKeys : {DxaSiteType, DxaExampleSite}
Id                   : CdEnvironment3
ExtensionProperties  : {}

My questions is that when we do the Topology Manager DB replace, how will the environment IDs map out (Stage has CD Environment as CdEnvironment1 and Production has CdEnvironment4 & CdEnvironment3).

Will the Ids remain the same after DB replace and I can run the update scripts on the imported websites

--OR--

Will replacing the DB overwrite the Production CD Environments and I will have to run the the Add-TtmCmEnvironment again and add all the websites again?

I went through this question here, but I am still confused. How should I approach this?