Creation of IOT hub device

Hi folks,
I am trying to automate setting up of IOTHub. But I am not able to find any code related to creating a device in the IOTHub. I found the below command:
resource “azurerm_iothub_device” “example” {
name = “device_name”
iothub_name =
but it does not seem to be valid.
I have installed the extensions : azure IoT Hub and IoT Device Workbench
any suggestions will be appreciated
thank you