This is an example of creating multiple private DNS records in Microsoft Azure from list of objects. Here I am starting with variables.tf, I am using below list of objects as type in variable.
#variables.tf variable "dns_records" { type = list(object({ name =