Create infra by using terraform

HI , I need to create Azure infra in my environmnet
10 VM ( for DB )
3 VM for App (compute power changes )
storage Account
… etc
How can I architecture terraform code , so that I create some re usable code .
and is there any way to create module for this architecture

How can I architecture terraform code , so that I create some re usable code .

That’s a very vague question which makes it difficult to give a specific answer.

is there any way to create module for this architecture

Yes, there is a way. I suggest getting familiar with how to use terraform to manage Azure resources by following the tutorials at Azure | Terraform | HashiCorp Developer