Based on your response time you still seem to be having trouble.
I’ve created project GitHub - maxgerhardt/pio-azure-iot-arduino-demo: PlatformIO compilable version of the azure-iot-arduino repository for ESP32. as a compilable PlatformIO project example. Have a look if something is not working.