Share via

Multiple Subscriptions Windows VM

Urszula Gryczan 136 Reputation points
2021-01-29T11:13:48.9+00:00

Hi!

Can I create a Windows VM which is assigned to two subscriptions?
I have Prod and Non-Prod subscriptions and two Azure Databases for PostgreSQL: one on prod subscription and one on non-prod subscription. I want to create one VM where I have access to both Databases through ODBC. Is it possible?

Thanks!

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.

Azure Virtual Network
Azure Virtual Network

An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.

0 comments No comments

Answer accepted by question author

Stanislav Zhelyazkov 29,586 Reputation points MVP Volunteer Moderator
2021-01-29T11:39:53.997+00:00

Hi,
One VM can be located in a single subscription and single resource group. Never the less sounds like you want to have some network connection from the VM to your databases. Who has access to your databases depends on how you have configured the network configurations for them. Nothing stops to allow access to both databases for the same public IP which the VM is using or in case you are in private network the VM can reach the databases if they are in the same network or in different there is routing between them.

Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.