Terraform Azure: Tests

<h1>Intro</h1> <p>With the exciting new announcement for&nbsp;<a href="https://developer.hashicorp.com/terraform/language/tests" rel="noopener ugc nofollow" target="_blank">Terraform Tests</a>&nbsp;I couldn&rsquo;t help but take them for a test drive. For our use case we will build on a prior post&nbsp;<a href="https://dataartisans.tech/terraform-azure-reusable-sql-database-configurations/" rel="noopener ugc nofollow" target="_blank">Terraform Azure: Reusable SQL Database Configurations</a>. In the last post we created a module to deploy SQL Servers. Today we will add a new default prefix to SQL Server name and then build a test to check the name of the server.</p> <h1>Update SQL Server Module</h1> <p>We have decided we want all of our SQL Servers to have a standard prefix in their name. For Data Artisans we want to use the prefix&nbsp;<strong>dart-</strong>. To update the module with this functionality we can use&nbsp;<a href="https://developer.hashicorp.com/terraform/language/expressions/strings#interpolation" rel="noopener ugc nofollow" target="_blank">string interpolation</a>.</p> <p><a href="https://chris-albert-blog.medium.com/terraform-azure-tests-8260655f97c7"><strong>Website</strong></a></p>