How do we create multiple azure resources such as IaaS using terraform?

How do we create multiple azure resources such as IaaS using terraform? Is there a way to do a loop?. I am kind of a beginner at this and would appreciate a simple template for the loop.

Also just want to confirm that the configuration file either *.tf or *.tf.json can be placed in the directory where the terraform executable is located. Next from the azure cli the following order: 1) terraform init, 2) terraform plan, 3)terraform apply -auto-approve.

Take a look at the ‘count’, I believe this is what you need:
count argument

Keep in mind, Terraform is designed to be declarative, so loops and if statements are very simplistic by design, as that idea is to have a predictable end state.