Using multiple tf I want to run on demand in yml file using azure DevOps Pipline

Hello team,

Need help on below topic.

I have created 3 tf file structure, as below for Azure storeage account, Azure Function app, Azure VM creation.

  1. terraform/main.tf

  2. terraform/terraform.tfvars

  3. terraform/variables.tf

But from UI screen when user select any of 2 types (Azure storeage account, Azure Function app) only those resources should spin using .yml file how can we achieve this task by using terraform and .yml file?

note: we have only one .yml file is there.

I am using azure DevOps repo.

Regards,
Abhi