I have a Microsoft Azure account with 2 subscriptions.
In "subscription 1" I have a VNet with a Virtual Network Gateway with Point-To-Site configuration. I can VPN to this network from my local PC and enjoy its empty beauty. To fill this in I added a Virtual Machine into this network without a public access and only a private IP. And I can ssh into this VM when connected to VPN - all as expected.
Now, inside the "subscription 2" I have another VNet with a VM. No gateways. How can I allow ssh access to that 2nd VM when I have VPN to my 1st network?
I tried to add VNet peering between those 2 VNets - from both ends, but with no luck. Those 2 subnets are in 2 different locations, because of that "Allow gateway transit" and "Use remote gateways" checkboxes for peering are not available.
Is there a way to configure it correctly? Or do I need to recreate the VPN network in the same location as the 2nd one?
Tried to add a 3rd VNet in the same location as the VPN one. With them I am able to setup peering with "Allow Gateway transit" and "Use remote gateways" on separate ends of this connection. And with this I can see the VM inside the 3rd VNet while connected via VPN to the 1st one.
So the clarification I need - is this the only viable option? To have VNets created in the same location?