Hello @COTASPAR ,
Updated: 12/10/2020
How to create IoT Device via Azure CLI:
The below command creates a simple IoTDevice.
az iot hub device-identity create --device-id myTestDevicename --hub-name myiothubname
The below command creates an IoTEdge enabled device via CLI.
az iot hub device-identity create --device-id myEdgeDevice --edge-enabled --hub-name {hub_name}
Sample image showing the creation of Simple IoT Device via CLI.
Please refer to the documentation on azure CLI(latest) for device-identity operations:
Please refer to the documentation on az iot device send-d2c-message
Please refer to the documentation on az iot device c2d-message send
Please comment below if you need further help with this query.