Thank you for reaching out.
I understand you wish to know about how to improve network performance between Azure Virtual machines. You cannot use Proximity Groups as the VM's as they are in different subscriptions.
Apart from Proximity placement groups. You can use following options to help optimize the network latency
- Use the latest version of Windows or Linux.
- Enable Accelerated Networking for increased performance.
- Create larger VMs for better performance.
The recommended approach to help reduce latency is documented here.
Use the following best practices to test and analyze network latency:
- As soon as you finish deploying, configuring, and optimizing network VMs, take baseline network latency measurements between deployed VMs to establish benchmarks.
- Test the effects on network latency of changing any of the following components:
- Operating system (OS) or network stack software, including configuration changes.
- VM deployment method, such as deploying to an availability zone or proximity placement group (PPG).
- VM properties, such as Accelerated Networking or size changes.
- Virtual network configuration, such as routing or filtering changes.
- Always compare new test results to the baseline or to the latest test results before controlled changes.
- Repeat tests whenever you observe or deploy changes.
You can do a latency test using Latte or SockPerf to set the benchmark.
You can also test the latency difference when
- The VM's are communicating with each other via their Public IP's
- The VM's are communicating with each other via their private IP's where the Virtual Network they reside in are connected via Vnet peering (You can peer virtual networks in different subscriptions and these roles are required to establish vnet peering).
Please let me know if you have any additional questions. Thank you!
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.