Terraform apply fails to create an EC2 instance. Virtualization type hvm is required

I am new to Terraform and trying to create an EC2 instance following Terraform tutorials. Contents of main.tf are:
terraform {
required_providers {
aws = {
source = “hashicorp/aws”
version = “~> 4.16”

required_version = “>= 1.2.0”

provider “aws” {
region = “us-east-1”

resource “aws_instance” “app_server” {
ami = “ami-075a86d91e6db7f81”
instance_type = “t2.micro”

tags = {
Name = “PD_ExampleAppServerInstance”

I got the ami id from Amazon EC2 AMI Locator web page. I got 3 AMI ids for us-east-1.

I tried all of them but all failed with the same reason. Can somebody guide me where I am going wrong?
I am running the Terraform commands from Ubuntu linux on Windows Subsystem for Linux on Windows 11 laptop. Please help.