Hi, @Pallavi Acharya Welcome to the Microsoft Q&A forum, Thanks for posting your question.
As I understand you want to know if you can create Postgres SQL DB in the visual studio, correct me if my understanding is wrong
Yes you create and use a database on Azure with Visual Studio Code for Postgres SQL please follow this document here
Please let me know if you are looking for any additional questions.
Regards
Geetha
Please don't forget to click on or upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer.