Using the AzApi Terraform provider
The azurerm
provider is an open source project that is maintained by HashiCorp, Microsoft, and by the community.
Its evolution depends on multiple factors like issue triage, maintenance work, and the Go Azure SDK version that is maintained by another team.
With all this, preview features of Azure are not added in real time in the azurerm
provider.
So, if we want to use the Azure preview feature or another feature that might not yet be implemented in the azurerm
provider, we can integrate it in the Terraform configuration in several ways, as we already learned:
- Use a
null_resource
resource that calls theaz cli
command, which we learned about previously in this chapter in the Executing Azure CLI commands in Terraform recipe. - Use an ARM template deployed with a resource, which we learned about previously in this chapter in the Executing ARM templates in Terraform recipe
Since April 2022, we can use the new AzApi...