Azurerm windows virtual machine - error

Just taken the example code from terraform site (link below) and I get the following error when I run a plan

Error: Invalid resource type

  • on main.tf line 32, in resource “azurerm_windows_virtual_machine” “example”:*
  • 32: resource “azurerm_windows_virtual_machine” “example” {*

The provider provider.azurerm does not support resource type
“azurerm_windows_virtual_machine”.

Any ideas?

(https://www.terraform.io/docs/providers/azurerm/r/windows_virtual_machine.html)