The device is showing online but in sketch section of Arduino IOT showing "No associated device found"

Hi @tor-arne5000. The information I shared above is specific to uploading to an ESP8266 or ESP32 board that is connected to the computer via a USB cable.

I don't have experience using these boards with Arduino IoT Cloud, but the information I'm aware of indicates that Arduino Cloud does not currently provide support for OTA on them:

From https://docs.arduino.cc/cloud/iot-cloud/tutorials/ota-getting-started

OTA is compatible with the Arduino NANO 33 IoT and Arduino MKR WiFi 1010 boards.

And also some discussion on the subject here:

But you can definitely upload to them over USB by using Arduino Web Editor. You can also download your Thing sketch from Arduino Cloud and then do OTA uploads of the sketch to your board using the standard Arduino IDE as usual.