I am new to Azure . I am using terraform to deploy Azure the virtual machines from marketplace images.
I have written the code but getting an error.

```
  resource "azurerm_virtual_machine" "virtualmachine" {
  name                  = "virtualmachine01"
  location              = "centralus"
  resource_group_name   = "xyz"
  network_interface_ids = [azurerm_network_interface.nics.id]
  vm_size               = "Standard_F2"

source_image_reference {
    publisher = "cloudeteer"
    offer     = "cdt_cloud-ops"
    plan       = "cloud_pro"
    version   = "latest"
  }

 tags = module.tags.tags_output
# Creating a Virtual network interface 
esource "azurerm_network_interface" "nics01" {
   name                        = "nicsexample"
   location                    = var.location
   resource_group_name         = "rg"
   tags                        = module.tags.tags_output
   ip_configuration {
       name                          = "ipconfigexample"
       subnet_id                     = "id"
       private_ip_address_allocation = "static"
       private_ip_address            = var.vm1_private_ip_address

   }
}
}

```

Error: Unsupported block type

on virtual\_machine.tf line 21, in resource "azurerm\_virtual\_machine" "virtualmachine":
21: source\_image\_reference {

Blocks of type "source\_image\_reference" are not expected here.

Can anyone please help.