๐Ÿ“Œ Azure Terraform tip: features block inside the provider definition.

tarak-brainboard - Nov 6 '23 - - Dev Community

One of the least known option in Terraform for hashtag#Azure users is the features block inside the provider definition.

โœ… This is a very useful and even a recommended way to put some of your policies that Terraform will use when manipulating the resources.

For e.g.

  • You can specify that the resource group will not be deleted if it contains resources.

  • Force the purge of the soft deletes when a key vault is deleted.

  • Even for VMs, you can define a few rules to check against.

๐Ÿ‘‰ If you want to see more examples, here is the documentation page: https://lnkd.in/eqAukBcA

๐Ÿ›ก๏ธ If you are using Brainboard.co this block is managed for you automatically and our team is always available to provider recommendations or help if needed.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .