I am trying to access IoT Hub from a device via private endpoint. So basically, all public access to IoT Hub is denied and I have allowed private access to this IoT Hub only through a private endpoint.
This private endpoint has it's own subnet and it sits between the IoT Hub and device. I am simulating data using C# wherein I am using Symmetric keys for device to IoT Hub authentication.
So do I need to change the device connection string hostname from "HostName=HubName.azure-devices.net;DeviceId=deviceName;SharedAccessKey=KeyAlphabets" to something else ?
(Because this device will be pointing to the endpoint instead of IoT Hub)
If yes, then with what should I replace this connection string ?