Azure Official Terraform Module for Azure Naming convention
Good News
A few hours back Microsoft released the first official Terraform Module for Azure Naming convention.
This module helps you to keep consistency on your resources names for Terraform The goal of this module it is that for each resource that requires a name in Terraform you would be easily able to compose this name using this module and this will keep the consistency in your repositories.