What I have done so far is:
- Created Azure Virtual Network.
- Created subnet in it and assigned a network security group to that subnet.
- In network security group I have added rules to both inbound and outbound to allow traffic from Any source to Any destination.
- In cosmos db under 'Firewall and Virtual network' I have 'Selected Networks' turned on and I have added the virtual network and subnet created above.
After trying all above things when I try to connect to cosmos db from power bi desktop application through 'Get Data' option, I am getting following error.