Azure Bastion deployment does not work - Error: Invalid resource type azurerm_bastion_host

Terraform documents says we could use it to deploy Bastion

But i am getting error as

terraform apply
var.prefix
Enter a value: testbast

var.resource_group_name
Enter a value: bt

var.resource_location
Enter a value: eastus

Error: Invalid resource type

on vmwithbastion.tf line 92, in resource “azurerm_bastion_host” “vmbastion”:
92: resource “azurerm_bastion_host” “vmbastion” {

Does not appear request even goes to Azure side, fails while running at terraform itself.

Updated to latest terraform build but no luck.