Score:0

How to access postgres in private vnet from another VM in azure?

cn flag

I have created postgres flexible server with private vnet option. So, no direct access to posgres from internet.

private vnet

But, when I try to create a new windows 10 VM, I can't select the subnet of database here, even if I select the same VNet.

subnet greyed out in dropdown

The main purpose of this new VM is to connect the database and run any queries.

How to implement this?

Score:0
ng flag

Postgres vnet integration requires a subnet delegation, so the subnet it is in is dedicated to Postgres, you cannot deploy other resources into it. You will need to create a second subnet in your vNet for your VM. See here for more details.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.