Using Terraform to populate select Azure Pipeline variables dynamically

Is there anyway to populate pipeline variables with dynamic values. Example, their is an existing group variable call “ADX_Database”. I am looking for a way to populate that value dynamically. So each stage in the pipeline the variable will change ie, dev_db, qa_dv, usat_db, etc