If SQL server database is configured in HA, you can give HA listener name while connecting to SQL server database in portal. If you have already configured repository database details for TDM portal, change the details in application.properties file as below:
spring.datasource.url =jdbc:sqlserver://<DB_listener_name>:1435;database=gtrep
spring.datasource.username=sa
spring.datasource.password=<password>