I have a simple microservice to read json and save it in a local postgresdb but now i want to use azure postgres and i have already created a database in azure. How can i migrate from local db to azure cloud db ?
Application property file looks like this
spring.datasource.url=jdbc:postgresql://localhost:5432/MyDB
spring.datasource.username=postgres
spring.datasource.password=1234
spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.platform=postgres
Azure database properties
Server name : myapp.postgres.database.azure.com
Admin username: adminmyapp@myappdb
password: 123456
I'm new to programming so i need to know how to connect azure cloud db from my microservice