Create a Simulated Gateway Device
You can create a simulated gateway device using the IoT digital twin simulator. You can then use this gateway to link to indirectly connected simulated devices.
You can now create indirectly-connected simulated devices that connect through this gateway.